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

资产探测很慢,卡在masscan扫描后,入库之前 #256

Open
dagaoya opened this issue Aug 17, 2020 · 1 comment
Open

资产探测很慢,卡在masscan扫描后,入库之前 #256

dagaoya opened this issue Aug 17, 2020 · 1 comment

Comments

@dagaoya
Copy link

dagaoya commented Aug 17, 2020

一个多小时只出来了几个IP,输出:

[19:50:04] ip:port web info {'tag': [], 'title': 'xx'}
[19:55:08] ip:port open
[20:04:52] ip:port open
[20:48:48] ip:port open
[20:49:10] ip:port is web
[20:49:10] ip:port web info {'tag': [], 'title': 'xx'}
[20:54:19] ip:port open
[21:00:45] ip:port open

猜测是超时,找了一下,应该是在/nascan/lib/scan.py ,socket连接时没有设置超时。
按照web端中超时设置的提示,socket超时是web超时的一半,所以加一行

sock.settimeout(self.timeout / 2)

结果还是有这种情况,又发现在初始已经设置了超时,懵逼了,不知道为什么。

还有一个问题,也是在这一步,内存慢慢增大,直到爆炸,控制台输出一堆字符,几分钟都没输出完,猜测是 #213 里面的问题,但是不是19端口,怎么搞
参考

@dagaoya dagaoya changed the title 资产探测很慢,卡在masscan扫描后,入库之前,是不是没设置超时 资产探测很慢,卡在masscan扫描后,入库之前 Aug 18, 2020
@snotrain
Copy link

snotrain commented Jun 8, 2024

卡在端口探测这一步解决了么大佬?我也遇到这个问题了

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

2 participants