t4d / StalkPhish

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

NameError: name 'LOG' is not defined #27

Closed jepunband closed 4 years ago

jepunband commented 4 years ago

hello .. i'm getting this error:

Traceback (most recent call last): File "StalkPhish.py", line 321, 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 358, in main ConfAnalysis(ConfFile) File "StalkPhish.py", line 351, 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 418, in main() File "StalkPhish.py", line 411, in main LOG.error("Main error " + str(err)) NameError: name 'LOG' is not defined

jepunband commented 4 years ago

i comment out one of the proxy in conf/example.conf file .. now i get this error:

StalkPhish.py - INFO - Configuration file to use: conf/example.conf StalkPhish.py - INFO - Database: ./db/StalkPhish.sqlite3 StalkPhish.py - INFO - Main table: StalkPhish StalkPhish.py - INFO - Investigation table: StalkPhishInvestig StalkPhish.py - INFO - Files directory: ./files/ StalkPhish.py - INFO - Download directory: ./dl/ StalkPhish.py - INFO - Declared Proxy: socks5://127.0.0.1:9050

StalkPhish.py - ERROR - Proxy connection error, exiting! StalkPhish.py - ERROR - Main error (<class 'SystemExit'>, SystemExit(10), <traceback object at 0x7fb1c8b12f50

t4d commented 4 years ago

In the first error message it seems you have a duplicate _httpproxy variable declared. For the second error message, it seems you declare a proxy that is not running. Edit: if you don't need/have any proxy, just comment out the _httpproxy line into your config.