Skip to content

Instantly share code, notes, and snippets.

@sksat
Created June 2, 2018 09:21
Show Gist options
  • Save sksat/2ffead40d60eb48b3b33004547892716 to your computer and use it in GitHub Desktop.
Save sksat/2ffead40d60eb48b3b33004547892716 to your computer and use it in GitHub Desktop.
joke program
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