krmaxwell / maltrieve

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

Multiple errors #46

Closed KDPryor closed 10 years ago

KDPryor commented 10 years ago

When trying to run with Python 2.7.6 with command line of only ./maltrieve.py, I get this output:

./maltrieve.py: line 19: import: command not found ./maltrieve.py: line 20: import: command not found ./maltrieve.py: line 21: import: command not found ./maltrieve.py: line 22: import: command not found ./maltrieve.py: line 23: import: command not found ./maltrieve.py: line 24: import: command not found ./maltrieve.py: line 25: import: command not found ./maltrieve.py: line 26: import: command not found ./maltrieve.py: line 27: import: command not found ./maltrieve.py: line 28: import: command not found ./maltrieve.py: line 29: import: command not found ./maltrieve.py: line 30: import: command not found ./maltrieve.py: line 31: import: command not found from: can't read /var/mail/MultiPartForm from: can't read /var/mail/threading from: can't read /var/mail/Queue from: can't read /var/mail/lxml from: can't read /var/mail/bs4 ./maltrieve.py: line 41: syntax error near unexpected token (' ./maltrieve.py: line 41:def get_malware(q, dumpdir):'

If I run it as python ./maltrieve.py I get:

File "./maltrieve.py", line 171 global config = ConfigParser.ConfigParser() ^ SyntaxError: invalid syntax

krmaxwell commented 10 years ago

Try running as python maltrieve.py [options go here] and let me know how that goes.

krmaxwell commented 10 years ago

Oh and you'll need to do pip install requests or similar.

KDPryor commented 10 years ago

I already had requests installed. I'll try it again when I get home.

fconcklin commented 10 years ago

Ran this with requests installed and have reproduced the same error (have all other listed dependencies as well). Python 2.7.

krmaxwell commented 10 years ago

Can you paste the exact command line you ran? This looks to me like it's interpreting as bash or similar rather than Python, so try the python maltrieve.py method rather than ./maltrieve.py and let me know.

krmaxwell commented 10 years ago

DERP I just saw the line 171 error @KDPryor included. :blush: going to check that out now

mlawsonis commented 10 years ago

did this get resolved? I just did a git today and I'm seeing the same line 171 error.

krmaxwell commented 10 years ago

@mlawsonis Try pulling from the beta3a branch. There's still one remaining error (not the one listed above) but this stuff is fixed.