mirror of
https://github.com/lgandx/Responder.git
synced 2025-07-10 15:22:45 -07:00
added a check for exec file
This commit is contained in:
parent
5d762c4a55
commit
cc3a5b5cff
2 changed files with 6 additions and 5 deletions
|
@ -80,7 +80,7 @@ Serve-Html = Off
|
||||||
HtmlFilename = files/AccessDenied.html
|
HtmlFilename = files/AccessDenied.html
|
||||||
|
|
||||||
; Custom EXE File to serve
|
; Custom EXE File to serve
|
||||||
ExeFilename = files/BindShell.exe
|
ExeFilename = ;files/filetoserve.exe
|
||||||
|
|
||||||
; Name of the downloaded .exe that the client will see
|
; Name of the downloaded .exe that the client will see
|
||||||
ExeDownloadName = ProxyClient.exe
|
ExeDownloadName = ProxyClient.exe
|
||||||
|
|
|
@ -142,11 +142,12 @@ class Settings:
|
||||||
self.WPAD_Script = config.get('HTTP Server', 'WPADScript')
|
self.WPAD_Script = config.get('HTTP Server', 'WPADScript')
|
||||||
self.HtmlToInject = config.get('HTTP Server', 'HtmlToInject')
|
self.HtmlToInject = config.get('HTTP Server', 'HtmlToInject')
|
||||||
|
|
||||||
if not os.path.exists(self.Html_Filename):
|
if self.Serve_Exe is True:
|
||||||
print(utils.color("/!\ Warning: %s: file not found" % self.Html_Filename, 3, 1))
|
if not os.path.exists(self.Html_Filename):
|
||||||
|
print(utils.color("/!\ Warning: %s: file not found" % self.Html_Filename, 3, 1))
|
||||||
|
|
||||||
if not os.path.exists(self.Exe_Filename):
|
if not os.path.exists(self.Exe_Filename):
|
||||||
print(utils.color("/!\ Warning: %s: file not found" % self.Exe_Filename, 3, 1))
|
print(utils.color("/!\ Warning: %s: file not found" % self.Exe_Filename, 3, 1))
|
||||||
|
|
||||||
# SSL Options
|
# SSL Options
|
||||||
self.SSLKey = config.get('HTTPS Server', 'SSLKey')
|
self.SSLKey = config.get('HTTPS Server', 'SSLKey')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue