carnal0wnage / weirdAAL

WeirdAAL (AWS Attack Library)
780 stars 92 forks source link

S3 download file failes on files outside root #75

Closed carnal0wnage closed 4 years ago

carnal0wnage commented 4 years ago

python3 weirdAAL.py -m s3_download_file -a 'bucket.whatever, 'logs.sql.gz' -t test

Works as it downloads the file to the root of the 'loot' directory

python3 weirdAAL.py -m s3_download_file -a 'bucket.whatever/path/tofile/', 'logs.sql.gz' -t test

Fails - the module doenst check for the existence of the path && create it if it doenst exist

workaround if you get here before it's fixed is to just mkdir the file path and it will download

carnal0wnage commented 4 years ago

fixed with https://github.com/carnal0wnage/weirdAAL/commit/d39a94ca201e5c2cb6f5a3176b607622b448a3c4