Created
January 5, 2024 03:48
-
-
Save sharpicx/49b21b757a58053ea5d1f488ba4b131b to your computer and use it in GitHub Desktop.
TheFatRat - FIle Pumper
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
#python fpump.py [file] [size] [-mb/-kb] | |
if len(sys.argv) < 4: | |
sys.exit('[-] Missing argument!\n[+] Usage: python pumper.py [file] [size] [-mb/-kb]') | |
fp = sys.argv[1] | |
size = int(sys.argv[2]) | |
tp = sys.argv[3] | |
f = open(fp, 'ab') | |
if tp == '-kb': | |
b_size = size * 1024 | |
elif tp == '-mb': | |
b_size = size * 1048576 | |
else: | |
sys.exit('[-] Use -mb or -kb!') | |
bufferSize = 256 | |
for i in range(b_size/bufferSize): | |
f.write(str('0' * bufferSize)) | |
f.close() | |
print '[+] Finished pumping', fp, 'with', size, tp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment