Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
工具/GitHubGitHub/iojw/socialscan
OSINT (开源情报)侦察信息收集实用工具与框架电子邮件收集
GitHubiojw/socialscan

socialscan

用于准确查询在线平台上用户名和电子邮件使用情况的Python库

查看仓库
1.8k21616天前Kitploit 审核通过

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享
socialscan — 用于准确查询在线平台上用户名和电子邮件使用情况的Python库 | Kitploit

socialscan

Build Status Downloads MPL 2.0 license Python 3.6+ Code style: black

socialscan 为在线平台上的电子邮件地址和用户名使用提供准确且快速的检查。

给定一个电子邮件地址或用户名,socialscan 返回该地址或用户名在在线平台上是可用、已被占用还是无效。

socialscan 与类似工具(例如 knowem.com、Namechk 和 Sherlock)的不同之处在于:

  1. 100% 准确率:socialscan 的查询方法消除了类似工具中常见的误报和漏报,确保结果始终准确。

  2. 速度:socialscan 使用 asyncio 和 aiohttp 同时执行所有查询,即使涉及数百个用户名和电子邮件地址的批量查询也能快速完成。在一台配置和网速一般的测试计算机上,100 次查询在约 4 秒内完成。

  3. 库/命令行界面(CLI):socialscan 可通过 CLI 执行,或作为 Python 库导入以用于现有代码。

  4. 电子邮件支持:socialscan 支持查询电子邮件地址和用户名。

目前支持以下平台:

背景

其他类似工具通过请求所查询用户名的个人资料页面,并根据 HTTP 状态码或请求页面上的错误文本等信息来判断用户名是否已被占用。这是一种朴素的方法,存在以下不足:

  • 保留关键字:大多数平台都有一组不允许在用户名中使用的关键字
    (一个简单的测试:尝试检查 'admin'、'home' 或 'root' 等保留字,看看其他服务是否将它们标记为可用)

  • 已删除/已封禁的账户:已删除或已封禁的账户用户名往往不可用,即使其个人资料页面可能不存在

因此,这些工具容易产生误报和漏报。这种检查方法还依赖于平台设有基于网页的个人资料页面,并且无法扩展到电子邮件地址。

socialscan 旨在弥补这些不足,它直接查询平台的注册服务器,获取相应的 CSRF 令牌、请求头和 Cookie。

安装

pip

root@kitploit:~
> pip install socialscan

从源码安装

root@kitploit:~
> git clone https://github.com/iojw/socialscan.git  
> cd socialscan  
> pip install .

用法

root@kitploit:~
usage: socialscan [list of usernames/email addresses to check]

optional arguments:
  -h, --help            show this help message and exit
  --platforms [platform [platform ...]], -p [platform [platform ...]]
                        list of platforms to query (default: all platforms)
  --view-by {platform,query}
                        view results sorted by platform or by query (default:
                        query)
  --available-only, -a  only print usernames/email addresses that are
                        available and not in use
  --cache-tokens, -c    cache tokens for platforms requiring more than one
                        HTTP request (Snapchat, GitHub, Instagram. Lastfm &
                        Tumblr), reducing total number of requests sent
  --input input.txt, -i input.txt
                        file containg list of queries to execute
  --proxy-list proxy_list.txt
                        file containing list of HTTP proxy servers to execute
                        queries with
  --verbose, -v         show query responses as they are received
  --show-urls           display profile URLs for usernames on supported platforms
                        (profiles may not exist if usernames are reserved or belong to deleted/banned accounts)
  --json json.txt       output results in JSON format to the specified file
  --version             show program's version number and exit

作为库使用

socialscan 也可以导入到现有代码中作为库使用。

v1.0.0 引入了异步方法 execute_queries 及其对应的同步封装器 sync_execute_queries,该方法接受一个查询列表以及可选的平台和代理列表,并发执行所有查询。之后该方法按原顺序返回结果列表。

root@kitploit:~
from socialscan.util import Platforms, sync_execute_queries

queries = ["username1", "[email protected]", "[email protected]"]
platforms = [Platforms.GITHUB, Platforms.LASTFM]
results = sync_execute_queries(queries, platforms)
for result in results:
    print(f"{result.query} on {result.platform}: {result.message} (Success: {result.success}, Valid: {result.valid}, Available: {result.available})")

输出:

root@kitploit:~
username1 on GitHub: Username is already taken (Success: True, Valid: True, Available: False)
username1 on Lastfm: Sorry, this username isn't available. (Success: True, Valid: True, Available: False)
[email protected] on GitHub: Available (Success: True, Valid: True, Available: True)
[email protected] on Lastfm: Sorry, that email address is already registered to another account. (Success: True, Valid: True, Available: False)
[email protected] on GitHub: Available (Success: True, Valid: True, Available: True)
[email protected] on Lastfm: Looking good! (Success: True, Valid: True, Available: True)

文本文件输入

对于使用 --input 选项的批量查询,请在 .txt 文件中每行放置一个用户名或电子邮件地址:

root@kitploit:~
username1
[email protected]
username3

捐赠

如果您觉得这个工具有用并希望支持其持续开发,可以在此处捐赠。感谢您的支持。

Donate Via PayPal

BTC: bc1qwrnukyc6xh9aygu5ps2geh8stmvagsj5u4v7j6
ETH: 0x45a0F91666391078eA521A6123559E49DAb1275f

贡献

发现错误、有建议或想添加站点?提交问题。

始终欢迎拉取请求(PR)🙂

在提交 PR 之前,请确保使用 pyproject.toml 中的配置通过 black 格式化代码。

许可证

MPL 2.0

下载工具
用户名电子邮件
Instagram✔️✔️
Twitter✔️✔️
GitHub✔️✔️
Tumblr✔️✔️
Lastfm✔️✔️
Snapchat✔️
GitLab✔️
Reddit✔️
Yahoo✔️
Pinterest✔️
Firefox✔️