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

问题总结,如下坑有些确实很无奈,避免大家出现如下问题 #9

Open
xiaoyanguoke opened this issue Sep 28, 2019 · 3 comments

Comments

@xiaoyanguoke
Copy link

xiaoyanguoke commented Sep 28, 2019

1、masscan无法扫描端口号
在centos版本安装masscan有很大几率有问题,确实存在无法扫描端口问题,我现在使用的是unbuntu版本.
2、发送邮件出现如下问题:
2019-01-11 15:48:51,491 - LogInfo - sending mail failure,error:
2019-01-11 15:48:51,555 - LogInfo - sending mail failure,error:
2019-01-11 15:48:56,775 - LogInfo - sending mail failure,error:
2019-01-11 15:48:56,775 - LogInfo - sending mail success
这样不会收到邮件的,我当时场景是用的新浪的邮箱,配置的用户名和密码.就会出现这个问题.后来密码改成授权码就能解决.
3、发送邮件出现乱码问题:
(1)在lib/publicEmail.py中增加如下:
from email.mine.text import Header
msg["Subject"] = Header("每日端口服务信息详", "utf-8")
正文出现乱参考:#3

另外出现UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 45: ordinal not in range(128)主要是编码问题:
在40行后面增加:
add_port_info = unicode(add_port_info, 'utf-8')

@maxwalk
Copy link

maxwalk commented Mar 3, 2020

若主机禁止ping,masscan 就直接跳过了,这样会漏掉一些开放的公网地址的端口。可否配置项添加自定义 masscan 的扫描参数设置?

@xiaoyanguoke
Copy link
Author

xiaoyanguoke commented Mar 3, 2020 via email

@sadbosan
Copy link

@xiaoyanguoke 大佬
邮件乱码的问题
是这么配置吗
image

然后运行就报错了。。
image

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