mirror of
https://github.com/lgandx/Responder.git
synced 2025-07-11 07:36:15 -07:00
Added: Random challenge for each requests (default)
This commit is contained in:
parent
17dc81cb68
commit
1d38cd39af
7 changed files with 62 additions and 41 deletions
13
settings.py
13
settings.py
|
@ -20,7 +20,7 @@ import subprocess
|
|||
|
||||
from utils import *
|
||||
|
||||
__version__ = 'Responder 2.3.3.0'
|
||||
__version__ = 'Responder 2.3.3.2'
|
||||
|
||||
class Settings:
|
||||
|
||||
|
@ -195,14 +195,19 @@ class Settings:
|
|||
|
||||
# Set up Challenge
|
||||
self.NumChal = config.get('Responder Core', 'Challenge')
|
||||
if self.NumChal.lower() == 'random':
|
||||
self.NumChal = "random"
|
||||
|
||||
if len(self.NumChal) is not 16:
|
||||
if len(self.NumChal) is not 16 and not "random":
|
||||
print utils.color("[!] The challenge must be exactly 16 chars long.\nExample: 1122334455667788", 1)
|
||||
sys.exit(-1)
|
||||
|
||||
self.Challenge = ""
|
||||
for i in range(0, len(self.NumChal),2):
|
||||
self.Challenge += self.NumChal[i:i+2].decode("hex")
|
||||
if self.NumChal.lower() == 'random':
|
||||
pass
|
||||
else:
|
||||
for i in range(0, len(self.NumChal),2):
|
||||
self.Challenge += self.NumChal[i:i+2].decode("hex")
|
||||
|
||||
# Set up logging
|
||||
logging.basicConfig(filename=self.SessionLogFile, level=logging.INFO, format='%(asctime)s - %(message)s', datefmt='%m/%d/%Y %I:%M:%S %p')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue