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

-json 参数使用不了 #319

Open
Iceqaq opened this issue Nov 22, 2023 · 3 comments
Open

-json 参数使用不了 #319

Iceqaq opened this issue Nov 22, 2023 · 3 comments
Labels
增强 新功能或需求 建议 良好的建议

Comments

@Iceqaq
Copy link

Iceqaq commented Nov 22, 2023

fscan -hf 2.txt -json 1.json

生成的结果依旧是result.txt

@Iceqaq
Copy link
Author

Iceqaq commented Nov 22, 2023

发现了,后缀不变,内容变为json的格式,能不能我想要保存的是上面的Target 192.168.136.93 is alive ,而不是LiveTop 192.168.135.0/24 段存活数量为: 46 这个呢?

(icmp) Target 192.168.136.93 is alive
(icmp) Target 192.168.188.102 is alive
(icmp) Target 10.230.28.103 is alive
(icmp) Target 192.168.188.104 is alive
(icmp) Target 192.168.188.106 is alive
(icmp) Target 192.168.188.148 is alive
(icmp) Target 10.230.28.105 is alive
(icmp) Target 10.246.95.23 is alive
(icmp) Target 192.168.188.151 is alive
(icmp) Target 192.168.188.120 is alive
(icmp) Target 10.246.95.219 is alive
(icmp) Target 192.168.135.80 is alive
(icmp) Target 10.246.95.28 is alive
(icmp) Target 10.246.95.18 is alive
(icmp) Target 10.246.95.25 is alive
(icmp) Target 10.246.95.254 is alive
(icmp) Target 10.246.95.26 is alive
(icmp) Target 10.246.95.203 is alive
(icmp) Target 10.246.95.70 is alive
(icmp) Target 10.246.95.10 is alive
[] LiveTop 192.168.0.0/16 段存活数量为: 429
[
] LiveTop 10.230.0.0/16 段存活数量为: 75
[] LiveTop 10.246.0.0/16 段存活数量为: 32
[
] LiveTop 10.1.0.0/16 段存活数量为: 19
[] LiveTop 10.244.0.0/16 段存活数量为: 15
[
] LiveTop 172.28.0.0/16 段存活数量为: 10
[] LiveTop 10.9.0.0/16 段存活数量为: 3
[
] LiveTop 192.199.0.0/16 段存活数量为: 2
[] LiveTop 192.168.191.0/24 段存活数量为: 107
[
] LiveTop 192.168.188.0/24 段存活数量为: 65
[] LiveTop 192.168.0.0/24 段存活数量为: 59
[
] LiveTop 192.168.63.0/24 段存活数量为: 53
[] LiveTop 192.168.136.0/24 段存活数量为: 47
[
] LiveTop 10.230.28.0/24 段存活数量为: 46
[] LiveTop 192.168.135.0/24 段存活数量为: 46
[
] LiveTop 10.230.32.0/24 段存活数量为: 25
[] LiveTop 10.246.95.0/24 段存活数量为: 24
[
] LiveTop 192.168.156.0/24 段存活数量为: 19
[] Icmp alive hosts len is: 585
[
] 扫描结束,耗时: 6.4035332s

@shadow1ng
Copy link
Owner

存活ip默认不打印。把fmt.Printf改成common.LogSuccess(就行

@ZacharyZcR
Copy link
Collaborator

后续将会对该部分优化重写。

@ZacharyZcR ZacharyZcR added 增强 新功能或需求 建议 良好的建议 labels Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
增强 新功能或需求 建议 良好的建议
Projects
None yet
Development

No branches or pull requests

3 participants