Anti-Malware-Alliance / your-daily-dose-malware

Tool to Harvest Fresh Malware Samples for Security Research.
2 stars 0 forks source link

Weird ZIP Format #16

Open rothoma2 opened 1 week ago

rothoma2 commented 1 week ago

We need to review the current ZIP the script is doing. In Linux you dont seem to be able to unzip the files easily.

Screenshot_from_2024-09-05_21-13-24 Screenshot_from_2024-09-05_21-13-42

Please refactor for a few changes:

poneoneo commented 1 week ago

If /tmp folder exist, create the daily-malware-samples folders inside /tmp (/tmp/daily-malware-samples)

but this will only be available for posix path. what if it's a window path ?

poneoneo commented 1 week ago

maybe i will need to switch on system ?

rothoma2 commented 1 week ago

I think you can do an OS check, and for windows write to the working folder. For linux check and write to /tmp folder. Once we publish this as pipy package, this issue will be resolved as well.

Besides this, we need to see why the zip format behaves weird. Does this zipping code works for you in Windows? I have only tested in Linux and it doesnt work properly.

Maybe you can use WSL, so you can try it both in Win and Linux for it to work on both.

poneoneo commented 1 day ago

it's look some zip or maybe all require a password

poneoneo commented 1 day ago

i tried to unzip some on windows each or maybe all require a pass words