Skip to content

Commit

Permalink
Merge pull request #19 from omair2084/patch-1
Browse files Browse the repository at this point in the history
Change Permutations to Product
  • Loading branch information
quentinhardy authored Nov 14, 2017
2 parents 8ba4f79 + 563e8ca commit 9ebd3a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SIDGuesser.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from OracleDatabase import OracleDatabase
from time import sleep
from itertools import permutations
from itertools import product
import logging, string
from Tnscmd import Tnscmd
from Constants import *
Expand Down Expand Up @@ -107,7 +107,7 @@ def bruteforceSIDs(self, size=4, charset=string.ascii_uppercase):
self.args['print'].subtitle("Searching valid SIDs thanks to a brute-force attack on {2} chars now ({0}:{1})".format(self.args['server'], self.args['port'], size))
pbar,nb = self.getStandardBarStarted(len(charset)**size), 0
logging.info('Start the research')
for aSID in permutations(list(charset), size):
for aSID in product(list(charset), repeat=size):
nb +=1
pbar.update(nb)
self.args['sid'] = ''.join(aSID)
Expand Down

0 comments on commit 9ebd3a2

Please sign in to comment.