Created
June 2, 2018 09:21
-
-
Save sksat/2ffead40d60eb48b3b33004547892716 to your computer and use it in GitHub Desktop.
joke program
This file contains 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 os, sys, time | |
def prog_bar(length=23): | |
for i in range(length): | |
sys.stdout.write('#'*i + '\r') | |
sys.stdout.flush() | |
time.sleep(0.05) | |
sys.stdout.write('#'*length + '\t\t' + "COMPLETE\n") | |
def task(msg, wait=1): | |
print msg | |
time.sleep(wait) | |
def enc(path, wait): | |
task("Encrypting " + path, wait) | |
print "Executing FuxSocy" | |
print "Loading Source of Entropy" | |
prog_bar() | |
print "\nGenerating Keys" | |
prog_bar() | |
print "\n" | |
task("Locating target files.") | |
task("beginning crypto operations") | |
target = os.listdir("/") | |
for d in target: | |
enc('/' + d, 2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment