Comments (7)
配置有问题,贴下你的config.gsil配置文件看下
from gsil.
我的config.gsil配置如下:
[mail]
host : smtp.exmail.qq.com
port : 25
mails :131299××[email protected]
from : GSIL
password : ×××××
to : [email protected]
cc : [email protected]
[github]
clone: false
tokens : e9b055ad1ad07f41d5bcb32db58a80×××9306ad
from gsil.
看这行应该是你邮箱这行配置的有问题,尝试mails的冒号后面加个空格试试?
GSIL/config.gsil file configure failed.
Error: No section: '[email protected]'
或者将整个config删掉,然后再从模板copy一份试试
➜ gsil git:(master) ✗ cat config.gsil
[mail]
host : smtp.exmail.qq.com
port : 25
mails : [email protected]
from : GSIL
password : xxx
to : [email protected]
cc : [email protected]
[github]
clone: false
tokens : 6xxx
from gsil.
我重新按照您的提示做了, 又又又又报错了:
mail cc
Traceback (most recent call last):
File "/usr/lib/python3.6/configparser.py", line 789, in get
value = d[option]
File "/usr/lib/python3.6/collections/init.py", line 883, in getitem
return self.missing(key) # support subclasses that define missing
File "/usr/lib/python3.6/collections/init.py", line 875, in missing
raise KeyError(key)
KeyError: 'cc'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/farmsec/gsil/gsil/config.py", line 42, in get
value = config.get(level1, level2)
File "/usr/lib/python3.6/configparser.py", line 792, in get
raise NoOptionError(option, section)
configparser.NoOptionError: No option 'cc' in section: 'mail'
GSIL/config.gsil file configure failed.
Error: No option 'cc' in section: 'mail'
mail cc
Traceback (most recent call last):
File "/usr/lib/python3.6/configparser.py", line 789, in get
value = d[option]
File "/usr/lib/python3.6/collections/init.py", line 883, in getitem
return self.missing(key) # support subclasses that define missing
File "/usr/lib/python3.6/collections/init.py", line 875, in missing
raise KeyError(key)
KeyError: 'cc'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/farmsec/gsil/gsil/config.py", line 42, in get
value = config.get(level1, level2)
File "/usr/lib/python3.6/configparser.py", line 792, in get
raise NoOptionError(option, section)
configparser.NoOptionError: No option 'cc' in section: 'mail'
GSIL/config.gsil file configure failed.
Error: No option 'cc' in section: 'mail'
2018-11-26 09:51:16,223 [GSIL] [CRITICAL] Send mail failed
Traceback (most recent call last):
File "/home/farmsec/gsil/gsil/notification.py", line 70, in notification
s.login(mail, get('mail', 'password'))
File "/usr/lib/python3.6/smtplib.py", line 730, in login
raise last_exception
File "/usr/lib/python3.6/smtplib.py", line 721, in login
initial_response_ok=initial_response_ok)
File "/usr/lib/python3.6/smtplib.py", line 642, in auth
raise SMTPAuthenticationError(code, resp)
smtplib.SMTPAuthenticationError: (535, b'Error: \xc7\xeb\xca\xb9\xd3\xc3\xca\xda\xc8\xa8\xc2\xeb\xb5\xc7\xc2\xbc\xa1\xa3\xcf\xea\xc7\xe9\xc7\xeb\xbf\xb4: http://service.mail.qq.com/cgi-bin/help?subtype=1&&id=28&&no=1001256')
2018-11-26 09:51:17,165 [GSIL] [CRITICAL] GitHub [get_page] exception(code: 403 msg: {'documentation_url': 'https://developer.github.com/v3/#abuse-rate-limits', 'message': 'You have triggered an abuse detection mechanism. Please wait a few minutes before you try again.'} be8cbc7a52f2c3ad8052dc41×××4b1e64a4b2b0f
from gsil.
config.gsil中的cc是不是没填
raise KeyError(key)
KeyError: 'cc'
from gsil.
遇到相同问题,运用以下方法解决。需要个人qq开启smtp
https://service.mail.qq.com/cgi-bin/help?subtype=1&&id=28&&no=371
在config password填写你开启后的授权码
地址改为smtp.qq.com
端口改为465即可
from gsil.
github tokens
Traceback (most recent call last):
File "H:\python\lib\configparser.py", line 1138, in _unify_values
sectiondict = self._sections[section]
KeyError: 'github'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "H:\GSIL\gsil\config.py", line 42, in get
value = config.get(level1, level2)
File "H:\python\lib\configparser.py", line 781, in get
d = self._unify_values(section, vars)
File "H:\python\lib\configparser.py", line 1141, in _unify_values
raise NoSectionError(section)
configparser.NoSectionError: No section: 'github'
GSIL/config.gsil file configure failed.
Error: No section: 'github'
2020-08-08 18:55:23,084 [GSIL] [CRITICAL] github -> tokens sections error Traceb
ack (most recent call last):
File "H:\GSIL\gsil\config.py", line 53, in
if ',' in tokens:
TypeError: argument of type 'NoneType' is not iterable
大哥大姐们帮帮忙怎么会这样?
from gsil.
Related Issues (20)
- get rules failed, rule types not found! HOT 2
- 请问规则支持正则匹配吗 HOT 1
- 是否有命令可以只测试邮箱设置的 HOT 1
- 请教这报错是邮箱的问题吗? HOT 1
- 求教一下这个报错如何解决 HOT 1
- 关于使用有些疑问 HOT 1
- 扫描的时候提示2020-06-09 16:11:19,885 [GSIL] [WARNING] Get Content Exception: [WinError 10053] 你的主机中的软件中止了一个已建立的连接。 retrying... HOT 1
- aise SMTPAuthenticationError(code, resp) smtplib.SMTPAuthenticationError: (535, b'Error: \xc7\xeb\xca\xb9\xd3\xc3\xca\xda\xc8\xa8\xc2\xeb\xb5\xc7\xc2\xbc\xa1\xa3\xcf\xea\xc7\xe9\xc7\xeb\xbf\xb4: http://service.mail.qq.com/cgi-bin/help?subtype=1&&id=28&&no=1001256') HOT 1
- 代码写得很差 HOT 2
- pip install -r requirements.txt 后有个报错 SyntaxError: invalid syntax HOT 1
- 搜索有结果,但是程序无法取到值 HOT 1
- 请教一下,socket.timeout: timed out是什么原因,主机curl github是正常的 HOT 1
- 两年前的项目了,还会有人维护嘛 HOT 2
- PyGithub安装报错
- 如何修改代码将生成的结果保存到本地生成报告
- ➜ GSIL git:(master) ✗ python gsil.py test 按照官方提示执行这步报错了,可以告知一下原因吗? HOT 1
- 请教一下,可以支持自定义扫描范围吗?对指定的仓库地址扫描这种
- TypeError: argument of type 'NoneType' is not iterable报错 HOT 1
- 关于密钥格式的问题
- 好几年前的项目了仍然可以用,网安初学者用来学习是个非常不错的范例,现在想用此项目挣钱就算了
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gsil.