Skip to content

Instantly share code, notes, and snippets.

@BlackVikingPro
Created March 11, 2017 20:33
Show Gist options
  • Save BlackVikingPro/ca182e82f2a64248a0fc4cf7542b4db6 to your computer and use it in GitHub Desktop.
Save BlackVikingPro/ca182e82f2a64248a0fc4cf7542b4db6 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
""" !- T3xt H4ck1fy ~ By: Willy Fox - @BlackVikingPro -! """
import sys
def usage():
print "!- T3xt H4ck1fy ~ By: Willy Fox - @BlackVikingPro -!\n"
if sys.argv[0].startswith('./'):
print "Syntax: %s --med hello world i am hacker text!" % sys.argv[0]
pass
else:
print "Syntax: ./%s --med hello world i am hacker text!" % sys.argv[0]
pass
print "\nOptions/Switches:"
print "'-l' or '--low' Low fonted text, default"
print "'-m' or '--med' Medium fonted text, my favorite"
print "'-a' or '--adv' For the more 1337 ones"
print "\nThanks for checking out H4ck1fy! Check out my GitHub for more!"
print "\nWebsite - www.blackvikingpro.xyz\nGitHub - github.com/BlackVikingPro\nGitHub Gist - gist.github.com/BlackVikingPro\nTwitter - twitter.com/BlackVikingPro"
pass
def hackify(text, mode):
# define some vars
length = len(text)
x = 0
string = ""
hack3r_low = [
'a', '4',
'e', '3',
'i', '1',
'l', '1',
'o', '0',
's', '$',
]
hack3r_med = [
'a', '4',
'e', '3',
'h', '|-|',
'i', '1',
'l', '1',
'o', '0',
's', '$',
'v', '\\/',
'y', '`/',
]
hack3r_adv = [
'a', '4',
'd', '|)',
'e', '3',
'h', '|-|',
'i', '1',
'k', '|<',
'l', '1',
'm', '|\\/|',
'n', '|\\|',
'o', '0',
'r', '|2',
's', '$',
'v', '\\/',
'w', '\\/\\/',
'y', '`/',
]
if mode == 'low':
while x < length:
# sys.stdout.write(text[x])
if text[x].lower() in hack3r_low:
string = string + hack3r_low[(hack3r_low.index(text[x]) + 1)] # change 'a' or 'A' to a 4
pass
else:
string = string + text[x]
pass
# string = string + text[x] # test iterate into new variable
x = x + 1 # iterate
pass
pass
elif mode == 'med':
while x < length:
# sys.stdout.write(text[x])
if text[x].lower() in hack3r_med:
string = string + hack3r_med[(hack3r_med.index(text[x]) + 1)] # change 'a' or 'A' to a 4
pass
else:
string = string + text[x]
pass
# string = string + text[x] # test iterate into new variable
x = x + 1 # iterate
pass
pass
elif mode == 'adv':
while x < length:
# sys.stdout.write(text[x])
if text[x].lower() in hack3r_adv:
string = string + hack3r_adv[(hack3r_adv.index(text[x]) + 1)] # change 'a' or 'A' to a 4
pass
else:
string = string + text[x]
pass
# string = string + text[x] # test iterate into new variable
x = x + 1 # iterate
pass
pass
return string
pass
if __name__ == '__main__':
if len(sys.argv) == 1:
usage()
pass
try:
args = len(sys.argv)
if '-l' in sys.argv or '--low' in sys.argv:
mode = 'low' # define the mode
if '-l' in sys.argv:
sys.argv.pop(sys.argv.index('-l')) # erase '-l' from command line arguments
pass
elif '--low' in sys.argv:
sys.argv.pop(sys.argv.index('--low')) # erase '--low' from command line arguments
pass
pass
elif '-m' in sys.argv or '--med' in sys.argv:
mode = 'med'
if '-m' in sys.argv:
sys.argv.pop(sys.argv.index('-m'))
pass
elif '--med' in sys.argv:
sys.argv.pop(sys.argv.index('--med'))
pass
pass
elif '-a' in sys.argv or '--adv' in sys.argv:
mode = 'adv'
if '-a' in sys.argv:
sys.argv.pop(sys.argv.index('-a'))
pass
elif '--adv' in sys.argv:
sys.argv.pop(sys.argv.index('--adv'))
pass
pass
else:
mode = 'low'
pass
x = 1
while x < args:
sys.stdout.write(hackify(sys.argv[x], mode) + " ")
x = x + 1
pass
print ""
# print hackify(sys.argv[1])
pass
except IndexError:
usage()
sys.exit()
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment