Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

能否支持从文件中读取ip:port这种形式的扫描呢 #149

Closed
handbye opened this issue Mar 15, 2022 · 8 comments
Closed

能否支持从文件中读取ip:port这种形式的扫描呢 #149

handbye opened this issue Mar 15, 2022 · 8 comments

Comments

@handbye
Copy link

handbye commented Mar 15, 2022

No description provided.

@shadow1ng
Copy link
Owner

然后就跳过端口扫描,直接扫漏洞或web?

@shadow1ng
Copy link
Owner

能说下完整需求嘛

@handbye
Copy link
Author

handbye commented Mar 15, 2022

就是文件中有这类的资产

192.168.1.2:9004
192.168.1.2:8453
192.168.10.2:8433

读取到ip和端口的对应关系后,就直接扫描此ip对应的此端口,不再去扫其他端口了。

@tarihub
Copy link

tarihub commented Apr 11, 2024

+1 顺便 mark

@tarihub
Copy link

tarihub commented Apr 11, 2024

仔细看了下README

[+] 2022/7/14 -hf 支持host:port和host/xx:port格式,rule.Search 正则匹配范围从body改成header+body,-nobr不再包含-nopoc.优化webtitle 输出格式。

已经支持了 @handbye

@tarihub
Copy link

tarihub commented Apr 11, 2024

不过不知能否支持 hostname 的形式,就不是 ip:port ,比如有的时候需要批量把 主机名:端口 放到一个文件去扫。我试了下,是扫不出东西的。比如

hosts.txt 内容

localhost:80

./fscan -hf ./hosts.txt
输出

___                              _    
  / _ \     ___  ___ _ __ __ _  ___| | __ 
 / /_\/____/ __|/ __| '__/ _` |/ __| |/ /
/ /_\\_____\__ \ (__| | | (_| | (__|   <    
\____/     |___/\___|_|  \__,_|\___|_|\_\   
                     fscan version: 1.8.2
start infoscan
[*] AlivePorts len is: 1
start vulscan
已完成 1/1
[*] 扫描结束,耗时: 74.821809ms

@handbye
Copy link
Author

handbye commented Apr 11, 2024

感谢 @tarihub

@handbye handbye closed this as completed Apr 11, 2024
@tarihub
Copy link

tarihub commented Apr 11, 2024

不过不知能否支持 hostname 的形式,就不是 ip:port ,比如有的时候需要批量把 主机名:端口 放到一个文件去扫。我试了下,是扫不出东西的。比如

hosts.txt 内容

localhost:80

./fscan -hf ./hosts.txt 输出

___                              _    
  / _ \     ___  ___ _ __ __ _  ___| | __ 
 / /_\/____/ __|/ __| '__/ _` |/ __| |/ /
/ /_\\_____\__ \ (__| | | (_| | (__|   <    
\____/     |___/\___|_|  \__,_|\___|_|\_\   
                     fscan version: 1.8.2
start infoscan
[*] AlivePorts len is: 1
start vulscan
已完成 1/1
[*] 扫描结束,耗时: 74.821809ms

当然 扫 ip:port 是正常的

./fscan -hf ./hosts.txt

   ___                              _    
  / _ \     ___  ___ _ __ __ _  ___| | __ 
 / /_\/____/ __|/ __| '__/ _` |/ __| |/ /
/ /_\\_____\__ \ (__| | | (_| | (__|   <    
\____/     |___/\___|_|  \__,_|\___|_|\_\   
                     fscan version: 1.8.2
start infoscan
[*] AlivePorts len is: 1
start vulscan
[*] WebTitle: http://127.0.0.1       code:200 len:3245  title:xxxxx
已完成 1/1
[*] 扫描结束,耗时: 16.047081902s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants