前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >看我如何用SHerlock跨社交网络查找你的用户名

看我如何用SHerlock跨社交网络查找你的用户名

作者头像
FB客服
发布2019-08-06 10:38:40
9660
发布2019-08-06 10:38:40
举报
文章被收录于专栏:FreeBufFreeBuf

今天给大家介绍的就是这个名叫Sherlock的半社工工具,在它的帮助下,我们可以跨社交网络来查找目标用户的用户名。话不多说,我们直奔主题。

我们可以直接在浏览器中测试Sherlock的功能。

工具安装

注意:该工具需要Python 3.6或更高版本。

首先,使用git命令将项目代码克隆到本地:

代码语言:javascript
复制
$ git clone https://github.com/sherlock-project/sherlock.git

切换到Sherlock项目目录:

代码语言:javascript
复制
$ cd Sherlock

安装依赖组件:

代码语言:javascript
复制
$ pip3 install -r requirements.txt

工具使用

代码语言:javascript
复制
$ python3 sherlock.py --help
usage:sherlock.py [-h] [--version] [--verbose] [--rank]
                   [--folderoutputFOLDEROUTPUT] [--output OUTPUT] [--tor]
                   [--unique-tor] [--csv][--site SITE_NAME]
                   [--proxy PROXY_URL] [--jsonJSON_FILE]
                   [--proxy_list PROXY_LIST][--check_proxies CHECK_PROXY]
                   [--print-found]
                   USERNAMES [USERNAMES ...]

Sherlock:Find Usernames Across Social Networks (Version 0.7.5)

positional arguments:
  USERNAMES             One or more usernames to checkwith social networks.
 
optionalarguments:
  -h, --help            show this help message and exit
  --version             Display version information and dependencies.
  --verbose, -v, -d, --debug
                        Display extra debugginginformation and metrics.
  --rank, -r            Present websites ordered by theirAlexa.com global
                        rank in popularity.
  --folderoutput FOLDEROUTPUT, -fo FOLDEROUTPUT
                        If using multipleusernames, the output of the results
                        will be saved at thisfolder.
  --output OUTPUT, -o OUTPUT
                        If using singleusername, the output of the result
                        will be saved at thisfile.
  --tor, -t             Make requests over Tor; increasesruntime; requires
                        Tor to be installed andin system path.
  --unique-tor, -u      Make requests over Tor with new Torcircuit after each
                        request; increasesruntime; requires Tor to be
                        installed and in systempath.
  --csv                 Create Comma-Separated Values(CSV) File.
  --site SITE_NAME      Limit analysis to just the listed sites.Add multiple
                        options to specify morethan one site.
  --proxy PROXY_URL, -p PROXY_URL
                        Make requests over aproxy. e.g.
                        socks5://127.0.0.1:1080
  --json JSON_FILE, -j JSON_FILE
                        Load data from a JSONfile or an online, valid, JSON
                        file.
  --proxy_list PROXY_LIST, -pl PROXY_LIST
                        Make requests over aproxy randomly chosen from a list
                        generated from a .csvfile.
  --check_proxies CHECK_PROXY, -cp CHECK_PROXY
                        To be used with the'--proxy_list' parameter. The
                        script will check ifthe proxies supplied in the .csv
                        file are working andanonymous.Put 0 for no limit on
                        successfully checkedproxies, or another number to
                        institute a limit.
  --print-found         Do not output sites where the usernamewas not found.

比如说,我们可以使用下列命令来搜索特定用户名:

代码语言:javascript
复制
python3 sherlock.py user123

同时搜索多个目标用户名:

代码语言:javascript
复制
python3 sherlock.py user1 user2 user3

Sherlock搜索到的全部用户账号信息都会存储在一个单独的文本文件中,并以用户名作为文件名,例如user123.txt。

Docker

如果你的设备已经安装了Docker,你就可以构建一个镜像,然后以容器的方式运行Sherlock了:

代码语言:javascript
复制
docker build -t mysherlock-image .

镜像构建完毕之后,我们就可以利用下列命令调用Sherlock了:

代码语言:javascript
复制
docker run --rm -t mysherlock-image user123

--rm选项可以可以在完成任务之后移除容器文件系统,以防止冗余数据堆积。具体请参考:【清除手册】。

-t选项可以分配一个伪TTY,并允许我们使用颜色方案高亮标记输出数据。具体请参考:https://docs.docker.com/engine/reference/run/#foreground

当然了,我们也可以使用下列命令来访问存储的结果:

代码语言:javascript
复制
docker run --rm -t -v "$PWD/results:/opt/sherlock/results" mysherlock-image-o /opt/sherlock/results/text.txt user123
代码语言:javascript
复制
-v"$PWD/results:/opt/sherlock/results"选项可以让Docker创建或使用当前目录下的“result”文件夹,然后在Docker容器中加载/opt/sherlock/results。“-o/opt/sherlock/results/text.txt”选项可以让Sherlock输出分析结果。

或者,你也可以直接使用“Docker Hub”来运行Sherlock:

代码语言:javascript
复制
docker run theyahya/sherlock user123
代码语言:javascript
复制
Sherlock覆盖率测试

许可证协议

本项目遵循MIT开源许可证协议。

项目地址

Sherlock地址 https://github.com/sherlock-project/sherlock

本文参与 腾讯云自媒体分享计划,分享自微信公众号。
原始发表:2019-08-02,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 FreeBuf 微信公众号,前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 工具使用
  • Docker
  • 许可证协议
    • 项目地址
    相关产品与服务
    容器镜像服务
    容器镜像服务(Tencent Container Registry,TCR)为您提供安全独享、高性能的容器镜像托管分发服务。您可同时在全球多个地域创建独享实例,以实现容器镜像的就近拉取,降低拉取时间,节约带宽成本。TCR 提供细颗粒度的权限管理及访问控制,保障您的数据安全。
    领券
    问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档