Closed KDPryor closed 10 years ago
Try running as python maltrieve.py [options go here]
and let me know how that goes.
Oh and you'll need to do pip install requests
or similar.
I already had requests installed. I'll try it again when I get home.
Ran this with requests installed and have reproduced the same error (have all other listed dependencies as well). Python 2.7.
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.
DERP I just saw the line 171 error @KDPryor included. :blush: going to check that out now
did this get resolved? I just did a git today and I'm seeing the same line 171 error.
@mlawsonis Try pulling from the beta3a branch. There's still one remaining error (not the one listed above) but this stuff is fixed.
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