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

执行2端口扫描会报错 #1

Open
y0rkl4u opened this issue May 26, 2020 · 8 comments
Open

执行2端口扫描会报错 #1

y0rkl4u opened this issue May 26, 2020 · 8 comments

Comments

@y0rkl4u
Copy link

y0rkl4u commented May 26, 2020

AUTOEARN数据库连接成功
读取子域数据库失败
读取子域数据库成功
开启线程:Thread-0
开启线程:Thread-1
开启线程:Thread-2
开启线程:Thread-3
开启线程:Thread-4
开启线程:Thread-5
开启线程:Thread-6
开启线程:Thread-7
开启线程:Thread-8
开启线程:Thread-9
Traceback (most recent call last):
File "autoearn.py", line 122, in main
from lib import port_check
File "/Users/yliu//github/AUTO-EARN/lib/port_check.py", line 162, in
for domain in domainList:
TypeError: 'NoneType' object is not iterable

@Echocipher
Copy link
Owner

Echocipher commented May 26, 2020

这里应该是没有获取到domain呢,domain是从SUBDOMAIN表中读到的,你可以看一下./results/result.sqlite3中的SUBDOMAIN表中里面有没有数据呢,如果没有可能是subdomain_monitor.py那边出问题了,可以查看一下logs/subdomain_monitor.log 日志里面的内容,可能是没有sh stop.shsh start.sh就又添加新目标执行autoearn.py了,subdomain_monitor.py只会在sh start.sh之后开启,完成一次任务后结束,之后如果不重新sh stop.shsh start.sh就会无法写入数据库和完成通知提醒

@y0rkl4u
Copy link
Author

y0rkl4u commented May 26, 2020

MS没建上表,库里是空的

@Echocipher
Copy link
Owner

建表过程是在子域名收集结束之后调用lib/server_push.py进行通知提醒以及数据库建立的,您这边是已经子域名收集完成收到通知了,但是库里没有表吗?

@y0rkl4u
Copy link
Author

y0rkl4u commented May 26, 2020

额必须1进行完才能进行2呀,还以为可以异步进行,那可能是我这还没进行完我就选择2了,我重新试一下

@Echocipher
Copy link
Owner

是的 因为是样例版本,所以只能这样顺序执行,之后我会试着改进一下,建议您这边重新

sh stop.sh
sh start.sh
python3 autoearn.py

然后先1,等收到通知后,再2,再4,这样应该就没什么问题了

@y0rkl4u
Copy link
Author

y0rkl4u commented May 26, 2020

了解了,3Q

@y0rkl4u
Copy link
Author

y0rkl4u commented May 29, 2020

我的原因是因为mac上执行ps -aux报错了,将subdomain_monitor.py中的命令改为
cmd = "ps aux | grep oneforall.py | grep -v grep | awk '{print $2}'" 一切正常了

@wikipurse
Copy link

docker 安装的 5000端口访问不了

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