Skip to content

Commit

Permalink
Opportunistic enhancement: showing listening ports for SMBRelayServer…
Browse files Browse the repository at this point in the history
… and WCFRelayServer
  • Loading branch information
gabrielg5 committed Aug 16, 2024
1 parent e6cb83b commit ccc6554
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion impacket/examples/ntlmrelayx/servers/smbrelayserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -923,6 +923,6 @@ def _start(self):
self.server.server_close()

def run(self):
LOG.info("Setting up SMB Server")
LOG.info("Setting up SMB Server on port %s" % self.server.server_address[1])
self._start()

4 changes: 2 additions & 2 deletions impacket/examples/ntlmrelayx/servers/wcfrelayserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,13 +348,13 @@ def __init__(self, config):
self.server = None

def run(self):
LOG.info("Setting up WCF Server")

if self.config.listeningPort:
wcfport = self.config.listeningPort
else:
wcfport = 9389 # ADWS

LOG.info("Setting up WCF Server on port %s" % wcfport)

# changed to read from the interfaceIP set in the configuration
self.server = self.WCFServer((self.config.interfaceIp, wcfport), self.WCFHandler, self.config)

Expand Down

0 comments on commit ccc6554

Please sign in to comment.