Search
Latest topics
Who is online?
In total there are 6 users online :: 0 Registered, 0 Hidden and 6 Guests None
Most users ever online was 38 on Sun Mar 19, 2023 10:07 pm
Most Viewed Topics
[Python] Infinite / Definite File Generator
Page 1 of 1
[Python] Infinite / Definite File Generator
Here's a super simple Python script to generate an infinite or set amount of files on a computer. Not sure of its use or practicality but it was fun to make. I know there's a lot of flaws in it so please give me some advice if you have it.
- Code:
# File Generator
# Written by rabbit
import string
import random
import os
# Clear the current screen
os.system('clear')
print "[+] Generating Files..."
def name_generator(size=6, chars=string.ascii_uppercase + string.digits):
return ''.join(random.choice(chars) for _ in range(size))
# Generates a definite amount of random files in a loop
def FileGenerate():
for x in range(10):
file = open(name_generator(), "w")
print '[+] Successfully generated %s files.' % str(x)
# Generates an infinite amount of random files in a loop
def infiniteGenerate():
while True:
file = open(name_generator(), "w")
# Uncomment FileGenerate() for definite amount of random files
#FileGenerate()
# Uncomment infiniteGenerate() for infinite amounts of random files
#infiniteGenerate()
ADS1- Script Kiddie
- Posts : 17
Join date : 2014-05-31
Similar topics
» Multiencoder (Python)
» Creating a new Python script
» Executing and debugging Python
» Setting breakpoints using Python
» Python to exe
» Creating a new Python script
» Executing and debugging Python
» Setting breakpoints using Python
» Python to exe
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
Tue Feb 02, 2021 7:12 am by manas41
» SQL injection and Quote escaping
Sun Jun 28, 2015 11:42 am by ADS1
» [TUT] Chmod: Files & Permissions [TUT]
Thu Jun 04, 2015 12:45 pm by Guest
» Reaver pixiewps
Thu Jun 04, 2015 12:23 pm by voidfletcher
» How To Crash Someone's Skype in 10 SECONDS
Thu Jun 04, 2015 12:20 pm by voidfletcher
» Internet Security & IP Security (IPSec)
Mon May 18, 2015 9:00 pm by voidfletcher
» [Python] Infinite / Definite File Generator
Mon May 18, 2015 8:58 pm by ADS1
» [C#] String Case-Inversion
Mon May 18, 2015 8:57 pm by ADS1
» Rekall Memory Forensic Framework
Sat May 16, 2015 8:55 pm by ADS1