

Nsauditor is a complete networking utilities package that includes a wide range of tools for network auditing, scanning, monitoring and more. Nsauditor Network Security Auditor is a network security scanner that allows to audit and monitor network computers for possible vulnerabilities, checks your network for all potential methods that a hacker might use to attack it. To add a host to the accepted hosts list enter the host Ip address in Accept Host and click on the Add button. Tcp Port Redirector supports two modes of accepting hosts.Īccept All - accepts connections from all hosts.Īllow Hosts - accepts the connection from a specific host. The part Redirection Settings contains Ip address ( Address to Redirect ) and port ( Port to Redirect ) to redirect the TCP traffic. To close the connected client ( in case of server mode ) select the appropriate client from the Peers list and click on the Close Client button.

If the connection is established you can see the active connection parameters in Active Connections table. The field Interface contains local IP address (n case of server mode ), Dest Addr contains the server address you want to connect ( in case of client mode ), Port is a local port(for client mode this is a port to which the client is binded, for server mode this is a port to which the server is binded ). This tool can also be used for debugging programs and configuring other network tools.ĭepending on Client/Server mode the tool works as a Tcp client or server. This tool is used for testing some services, firewall and intrusion detection systems. Tcp Port Redirector is a useful tool to redirect TCP traffic from one port on the same or another machine to another. accept () except KeyboardInterrupt : print " \n Terminating." terminateAll = True break ClientThread ( clientSocket, targetHost, targetPort ). listen ( 5 ) print "Waiting for client." while True : try : clientSocket, address = serverSocket. bind (( localHost, localPort )) serverSocket. argv ) != 5 : print 'Usage: \n\t python SimpleTCPRedirector ' print 'Example: \n\t python SimpleTCPRedirector localhost 8080 80' sys. close () print "ClienThread terminating" if _name_ = '_main_' : if len ( sys. send ( targetHostData ) if bytesWritten > 0 : targetHostData = targetHostData self.

send ( clientData ) if bytesWritten > 0 : clientData = clientData elif out = targetHostSocket and len ( targetHostData ) > 0 : bytesWritten = targetHostSocket. _clientSocket and len ( clientData ) > 0 : bytesWritten = self. recv ( 4096 ) except Exception, e : print e if data != None : if len ( data ) > 0 : clientData += data else : terminate = True for out in outputsReady : if out = self. recv ( 4096 ) except Exception, e : print e if data != None : if len ( data ) > 0 : targetHostData += data else : terminate = True elif inp = targetHostSocket : try : data = targetHostSocket. select ( inputs, outputs, , 1.0 ) except Exception, e : print e break for inp in inputsReady : if inp = self. append ( targetHostSocket ) try : inputsReady, outputsReady, errorsReady = select. _clientSocket ) if len ( targetHostData ) > 0 : outputs. setblocking ( 0 ) clientData = "" targetHostData = "" terminate = False while not terminate and not terminateAll : inputs = outputs = if len ( clientData ) > 0 : outputs. setblocking ( 0 ) targetHostSocket = socket. _targetPort = targetPort def run ( self ): print "Client Thread started" self. Thread ): def _init_ ( self, clientSocket, targetHost, targetPort ): threading. Import socket import threading import select import sys terminateAll = False class ClientThread ( threading.
