Skip to content

Commit

Permalink
add wordlist option
Browse files Browse the repository at this point in the history
  • Loading branch information
milo2012 committed Dec 23, 2014
1 parent 0e8a275 commit 69e1448
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions firebird/firebirdBrute.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def extractDB(database,ipAddr):
results = cur.fetchall()
print results

def connectFirebird(ipAddr):
def connectFirebird(ipAddr,wordList):
defaultDB="C:\\PROGRAM FILES\\FIREBIRD\\FIREBIRD_2_5\\EXAMPLES\\EMPBUILD\\EMPLOYEE.FDB"

#Try getting list of connected databases without attempting any database name guess.
Expand All @@ -45,8 +45,7 @@ def connectFirebird(ipAddr):
#Brutefoorce firebird databasess
print "\n- Bruteforcing Firebird database names"
dictList=[]
with open('wordsEn.txt') as f:
#with open('wordlist.txt') as f:
with open(wordList) as f:
dictList = f.read().splitlines()
currentWord=""
for word in dictList:
Expand All @@ -67,10 +66,11 @@ def connectFirebird(ipAddr):
print "This tool attempts to brute force the database names on the Firebird database server using the default credentials (sysdba|masterkey)"
parser = argparse.ArgumentParser()
parser.add_argument('-host', dest='ipAddr', action='store', help='[IP address of Firebird database server]')
parser.add_argument('-wordlist', dest='wordList', action='store', help='[File containing list of database names to brute force]')

if len(sys.argv)==1:
parser.print_help()
sys.exit(1)
options = parser.parse_args()
if options.ipAddr:
connectFirebird(options.ipAddr)
connectFirebird(options.ipAddr,options.wordList)

0 comments on commit 69e1448

Please sign in to comment.