8000 Update zip-bomb.py by watsoncoders · Pull Request #1 · damianrusinek/zip-bomb · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Update zip-bomb.py #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

watsoncoders
Copy link

raise initial file size

@damianrusinek
Copy link
Owner

Why do you want to create such big dummy files? I have divided them into smaller sizes for a purpose. It takes less time to create it and you do not need a huge disk.

@mlexs
Copy link
mlexs commented Jul 22, 2021

I would not expect any package to create such big dummy files, by default, even if such package solely purpose is to do so.

If one wants hugggeeeee initial size then generate the desired size and pass it directly:

python -c "print(len('0'*1024*1024*1024*1024*1024*1024))"

this will output the magic number (aka size) so then use that for the bomb

python zip-bomb.py flat <magic_number> whatever.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0