Skip to content

Added a new way of performing need transformations #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*~
*pyc
*txt
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,7 @@
[email protected]
http://www.offensive-security.com
http://www.bolexxx.net

Yaiza Rubio aka yrubiosec
Félix Brezo aka febrezo
http://i3visio.com
23 changes: 17 additions & 6 deletions cupp.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -14,27 +14,38 @@

[leet]
a=4
i=1
b=6
c=(
e=3
t=7
g=9
i=1
o=0
s=5
g=9
t=7
z=2


A=4
B=8
C=(
E=3
G=6
I=1
O=0
S=5
T=7
Z=2

# [ Special chars ] for adding some pwnsauce! Remove or add as necessary, separated by comma...

[specialchars]
chars=!,@,#,$,%,&,*
chars=!,@,#,$,%,&,*,?,-,/,(,),[,],{,},.



# [ Random years ] take it as much as you need!

[years]
years = 2008,2009,2010,2011,2012,2013,2014,2015
years = 2000,2008,2009,2010,2011,2012,2013,2014,2015,2016



Expand Down
51 changes: 24 additions & 27 deletions cupp.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,23 @@
threshold = config.getint('nums','threshold')

# 1337 mode configs, well you can add more lines if you add it to config file too.
# You will need to add more lines in two places in cupp.py code as well...
a = config.get('leet','a')
i = config.get('leet','i')
e = config.get('leet','e')
t = config.get('leet','t')
o = config.get('leet','o')
s = config.get('leet','s')
g = config.get('leet','g')
z = config.get('leet','z')
# Add the target letter as defined in the .cfg file here
# Adding lower case letters
targetLetters = ['a', 'b', 'c', 'e', 'g', 'i', 'o', 's', 't', 'z']
# Adding upper case letters
targetLetters += ['A', 'B', 'C', 'E', 'G', 'I', 'O', 'S', 'T', 'Z']

# This variable will store the changes to be performed
leetChanges = []

# Iterating through the target letters
for l in targetLetters:
newChange = {}
newChange["from"] = l
newChange["to"] = config.get('leet', l)

# Adding the change
leetChanges.append(newChange)

# for concatenations...

Expand Down Expand Up @@ -204,15 +211,10 @@ def komb(seq, start):
unique_lista = dict.fromkeys(uniqlist).keys()
unique_leet = []
if leetmode == "y":
for x in unique_lista: # if you want to add more leet chars, you will need to add more lines in cupp.cfg too...
x = x.replace('a',a)
x = x.replace('i',i)
x = x.replace('e',e)
x = x.replace('t',t)
x = x.replace('o',o)
x = x.replace('s',s)
x = x.replace('g',g)
x = x.replace('z',z)
for x in unique_lista:
# Iterating through the changes added before
for change in leetChanges:
x = x.replace(change["from"],change["to"])
unique_leet.append(x)

unique_list = unique_lista + unique_leet
Expand Down Expand Up @@ -533,16 +535,11 @@ def komb(seq, start):
unique_leet = []
if leetmode == "y":
for x in unique_lista: # if you want to add more leet chars, you will need to add more lines in cupp.cfg too...
x = x.replace('a',a)
x = x.replace('i',i)
x = x.replace('e',e)
x = x.replace('t',t)
x = x.replace('o',o)
x = x.replace('s',s)
x = x.replace('g',g)
x = x.replace('z',z)
# Iterating through the changes added before
for change in leetChanges:
x = x.replace(change["from"],change["to"])
unique_leet.append(x)

unique_list = unique_lista + unique_leet

unique_list_finished = []
Expand Down