{"id":13845267,"url":"https://github.com/AbelChe/whichAlive","last_synced_at":"2025-07-12T01:32:35.413Z","repository":{"id":41988133,"uuid":"483077081","full_name":"AbelChe/whichAlive","owner":"AbelChe","description":"信息收集，批量多线程探测url存活、获取基本信息（标题、ip、长度、跳转、server等）","archived":false,"fork":false,"pushed_at":"2023-06-18T15:18:45.000Z","size":3764,"stargazers_count":17,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-08-05T17:44:10.410Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AbelChe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-04-19T03:09:09.000Z","updated_at":"2023-12-21T14:48:11.000Z","dependencies_parsed_at":"2022-09-04T00:20:33.438Z","dependency_job_id":null,"html_url":"https://github.com/AbelChe/whichAlive","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbelChe%2FwhichAlive","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbelChe%2FwhichAlive/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbelChe%2FwhichAlive/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbelChe%2FwhichAlive/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AbelChe","download_url":"https://codeload.github.com/AbelChe/whichAlive/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225784347,"owners_count":17523623,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-04T17:03:18.286Z","updated_at":"2024-11-21T18:31:00.666Z","avatar_url":"https://github.com/AbelChe.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# whichAlive\n\n批量多线程探测url存活\n\n探测存活、获取基本信息（标题、ip、指纹、长度、跳转、server等）\n\n边探测遍输出结果，当前目录下result/urlxxxxxxxxxxxx.csv\n\n输出的csv如果直接用excel打开乱码，可以选择导入数据：数据-\u003e获取数据-\u003e从文本，然后编码格式选择utf8即可，或者使用macos的numbers直接打开\n\n优点：\n- 多线程\n- 获取标题\n- 识别跳转（状态码、指纹、标题、长度、server均以`-\u003e`连接标出）\n\n## 使用方法\n```\n\u003e python whichalive.py -h\n           __    _      __    ___    ___\n _      __/ /_  (_)____/ /_  /   |  / (_)   _____\n| | /| / / __ \\/ / ___/ __ \\/ /| | / / / | / / _ \\\n| |/ |/ / / / / / /__/ / / / ___ |/ / /| |/ /  __/\n|__/|__/_/ /_/_/\\___/_/ /_/_/  |_/_/_/ |___/\\___/  FAST\n\nAbout: https://github.com/abelche/whichalive\n\nusage: FAST detect alive targets\n  python whichalive-air.py -u url.txt\n  cat url.txt | python whichalive-air.py\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -f [FILE], --file [FILE]\n                        URL lists file.\n  --proxy PROXY         Set proxy, such as http://127.0.0.1:8080 or socks5://127.0.0.1:7777\n  -t THREAD, --thread THREAD\n                        Set max threads, default 20\n  --timeout TIMEOUT     Set request timeout value, default 10s\n  -d, --debug           print some debug information\n  --no-redirect         Set to disallow redirect\n  --try-again           If some error, try again scan that url once\n  --no-outfile          Set to NOT output results to file\n```\n\n直接识别：\n因为用了f-string，所以要 python3.6+\n\n ```sh\n python whichAlive.py\n cat url.txt | ./whichalive.py\n python whichAlive.py -f xxx.txt\n python whichAlive.py -f xxx.txt -t 20\n ```\n\n也可以结合被动扫描工具比如xray\nxray 开启7777端口监听被动扫描\n```sh\n./xray webscan --listen 0.0.0.0:7777 --html-output scan.html\n```\n\nwhichAlive 代理到xray\n```sh\npython whichAlive.py -f xxx.txt --proxy 127.0.0.1:7777\n```\n\n联动fofa等\n\n```shell\necho -n 'title=\"管理后台\"' | base64 | xargs -I '{}' curl -s 'https://fofa.info/api/v1/search/all?email=123123123@qq.com\u0026key=xxxxxxxxxxxxxxxxxxx\u0026size=30\u0026fields=host\u0026qbase64={}' | jq -r '.results[]' | python whichalive.py --no-outfile\n```\n\n效果截图：\n\n![](images/3.png)\n\n![](images/4.png)\n\n![](images/2.png)\n\n## TODO\n\n- [x] 增加cms识别\n- [ ] 增加waf识别\n- [ ] 扫描ip列表、ip段等\n- [ ] 识别云waf、CDN","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAbelChe%2FwhichAlive","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAbelChe%2FwhichAlive","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAbelChe%2FwhichAlive/lists"}