krmaxwell / maltrieve

A tool to retrieve malware directly from the source for security researchers.
GNU General Public License v3.0
563 stars 183 forks source link

Error #160

Closed mlawsonis closed 9 years ago

mlawsonis commented 9 years ago

Getting this error. When testing my cron job. I'm wondering if this is a environment variable I haven't set. These seemed to work fine for me a previous builds.

shellprompt@ubuntu:~$ sudo python /home/shellprompt/Maltrieve/maltrieve.py [sudo] password for shellprompt: Traceback (most recent call last): File "/home/shellprompt/Maltrieve/maltrieve.py", line 514, in main() File "/home/shellprompt/Maltrieve/maltrieve.py", line 460, in main cfg = config(args, 'maltrieve.cfg') File "/home/shellprompt/Maltrieve/maltrieve.py", line 49, in init if args.logfile or self.configp.get('Maltrieve', 'logfile'): File "/usr/lib/python2.7/ConfigParser.py", line 607, in get raise NoSectionError(section) ConfigParser.NoSectionError: No section: 'Maltrieve'

krmaxwell commented 9 years ago

Make sure the working directory for the script has maltrieve.cfg in it. You might just need to prepend the script invocation with a cd, something like

cd /home/maltrieve && ./maltrieve.py

(if your script and config are in /home/maltrieve).

krmaxwell commented 9 years ago

Did this work for you?

mlawsonis commented 9 years ago

Yes, thank you.