secrary / SSMA

SSMA - Simple Static Malware Analyzer [This project is not maintained anymore by me]
GNU General Public License v3.0
410 stars 88 forks source link

Not working #4

Closed aflexa closed 7 years ago

aflexa commented 7 years ago

Hi, can you provide test samples since the tool is not working for a real malicious samples

Thank you

secrary commented 7 years ago

what errors are you getting?

aflexa commented 7 years ago

Number of Sections: 6

Section VirtualAddress VirtualSize SizeofRawData Entropy Traceback (most recent call last): File "ssma.py", line 55, in pe.sections_analysis() File "/home/remnux/Desktop/SSMA/src/check_file.py", line 241, in sections_analysis sec_name = section.Name.strip(b"\x00").decode(errors='ignore') TypeError: strip arg must be None or str

secrary commented 7 years ago

Please check this now, I've changed some statements.

aflexa commented 7 years ago

Still getting the error...

secrary commented 7 years ago

Can you provide the sample?

aflexa commented 7 years ago

The sample can be found at the following repo: https://github.com/JonathanSalwan/binary-samples

Tested sample: pe-Windows-x64-cmd

However it is not the only sample that does not work. Pretty much all win samples throw the same error.

secrary commented 7 years ago

Which version Python you are using? for me, it works on Python 3.4.3

aflexa commented 7 years ago

I am using the same version ---> Python 3.4.3

aflexa commented 7 years ago

it doesn't work only on Remnux (based on Ubuntu 14.04) -> current system, on all other systems it works just fine....

secrary commented 7 years ago

I think it's python library conflict or something like that. Did you try with virtualenv? instruction is on the main page.