smith
Credits: jidir (Leave him a star on Github)
Download Smith
Agent client / server intended to test connectivity to and from machines on the network.
Installation
python setup.py install
or pip install .
If you want to use the tcp / udp protocol option, you must install scapy and it's dependencies. Ubuntu has an 'apt-get install python-scapy'. You can also pip install scapy, but I do not know if it installs all the dependencies on all OS. I
did not include a scapy in this case because the 'rest' option did not
take advantage of it, and was enough for many purposes of its own.Functions: ping and listen
ping
$: smith ping -h
usage:
Initiate a port-specific ping against a listening agent
positional arguments:
port The port the remote agent is listening on
destination IPv4 address of the server the remote agent is
listening on
{TCP,UDP,REST} Protocol to use to contact the remote agent. TCP and
UDP use raw sockets which will bypass IPTABLES rules.
optional arguments:
-h, --help show this help message and exit
-t TIMEOUT, --timeout TIMEOUT
Seconds to wait for response from server before giving
up. Zero means 'wait forever'
example
$: smith ping 12345 127.0.0.1 REST --timeout 10
listen
$: smith listen -h
usage:
Server-side: listen for incoming ping requests from remote client.
positional arguments:
port The port the remote client is pinging
{TCP,UDP,REST} Protocol to use to contact the remote agent.TCP and UDP use
raw sockets which will bypass IPTABLES rules.
optional arguments:
-h, --help show this help message and exit
example
$: smith ping 12345 127.0.0.1 REST --timeout 10
No comments:
Post a Comment