Telegram 一直是大家關注的重要資訊點,也是現在開源情報的寶貴資源之一了,我推薦一個使用很順手的工具 telegram-phone-number-checker,用於查電話號碼是否有註冊過 telegram 和獲取信息的工具。
代碼地址是:https://github.com/bellingcat/telegram-phone-number-checker
工具是用 python 寫的,可以一次查一個或多個號碼,時間也是一秒左右完成,信息結果也是好用的 JSON 格式。測試效果如下:
工具介紹:
telegram-phone-number-checker 工具用於通過電話號碼識別 Telegram 用戶。使用此工具,您將收集與 Telegram 上的目標電話號碼相關的用戶名、顯示名稱和其他有價值的信息。
該工具需要 Telegram API 密鑰才能工作。獲取 Telegram API 密鑰是免費的。首先,請前往 Telegram 並使用有效的電話號碼創建一個帳戶(如果還沒有的話)。
建議使用一次性電話號碼;但是,您的個人設備沒問題。請記住,有人可以通過您的電話號碼使用此工具。
運行這個工具需要:
具有有效電話號碼的 Telegram 帳戶;
TelegramAPI_ID 和 API_HASH,您可以通過在https://my.telegram.org/ 創建開發者帳戶來獲取。將這些值.env 與您的 Telegram 帳戶的電話號碼一起放入文件中:
API_ID=
API_HASH=
PHONE_NUMBER=
如果您不創建此文件,您也可以在調用該工具時提供這 3 個值,也可以運行程序交互提示輸入它們。
用法:
該工具接受要檢查的以逗號分隔的電話號碼列表,您可以在調用該工具時或以交互方式傳遞此信息。
請參閱下面的示例:
查一個號碼
telegram-phone-number-checker --phone-numbers +1234567890
查多個號碼
telegram-phone-number-checker --phone-numbers +1234567890,+9876543210,+111111111
交互式版本,系統會提示您輸入電話號碼
telegram-phone-number-checker
覆蓋.env 中的 telegram API 密鑰(或者如果找不到.env)
telegram-phone-number-checker --api-id YOUR_API_KEY --api-hash YOUR_API_HASH --api-phone-number YOUR_PHONE_NUMBER --phone-numbers +1234567890
查詢結果將輸出控制台,同時也會以 JSON 形式寫入文件,您可以通過添加到命令 results.json 將其寫入另一個文件。--output your_filename.json
對於每個電話號碼,您可能會得到以下可能的響應:
如果可用,您將收到與該號碼相關的 Telegram 用戶名、姓名和 ID。
"未檢測到用戶名"。這意味著該號碼似乎用於創建 Telegram 帳戶,但用戶並未選擇 Telegram 用戶名。可以選擇在 Telegram 上創建用戶名。
"錯誤:無響應,用戶不存在或已阻止添加聯繫人。":導致此響應的原因可能有多種。該電話號碼尚未用於創建 Telegram 帳戶。或者:電話號碼已連接到 Telegram 帳戶,但用戶限制了通過電話號碼找到他 / 她的選項。
或者:發生另一個錯誤。