t4d / StalkPhish

StalkPhish - The Phishing kits stalker, harvesting phishing kits for investigations.
GNU Affero General Public License v3.0
611 stars 81 forks source link

ConfParser Error: (<class 'configparser.MissingSectionHeaderError'>, File contains no section headers. #20

Closed olugbala closed 4 years ago

olugbala commented 4 years ago

What could be the cause of this and how to solve it?

[root@instance-20190708-2326 stalkphish]# python3 StalkPhish.py -c conf/example.conf


/ __| | | | | | | | (_) | | | ( | | | | | | |) | | _ _| |_ \ | / ` | | |/ / /| '_ | / | ' \ ____) | || (| | | <| | | | | | __ \ | | | |___/ __,|||_| || ||_|__/| |_|

-= StalkPhish - The Phishing Kit stalker - v0.9.8 =-

[!!!] ConfParser Error: (<class 'configparser.MissingSectionHeaderError'>, File contains no section headers. file: 'conf/example.conf', line: 1 '\ufeff###################################\n', <traceback object at 0x7f2a8926ed48>) Traceback (most recent call last): File "StalkPhish.py", line 355, in ConfAnalysis DBfile = CONF.DBfile AttributeError: 'ConfParser' object has no attribute 'DBfile'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "StalkPhish.py", line 396, in main ConfAnalysis(ConfFile) File "StalkPhish.py", line 388, in ConfAnalysis LOG.error("ConfAnalysis error " + str(err)) NameError: name 'LOG' is not defined

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "StalkPhish.py", line 460, in main() File "StalkPhish.py", line 453, in main LOG.error("Main error " + str(err)) NameError: name 'LOG' is not defined

t4d commented 4 years ago

You probably add lines in head of configuration file edited in Windows, try to remove it and try to restart StalkPhish with this 'cleaned' configuration file.

t4d commented 4 years ago

Is it ok for you? Can I close this issue?