This is a tcp session hijacking tool meant to be used for hijacking any ongoing telnet session on the same LAN.
- Attacker machine OS ->
Linux
- On attacker machine ->
dniff (sudo apt-get install dsniff)
<Program name> <client ip> <client port> <server ip> <server port>
For example,
g++ SessionHijacker.cpp -lpcap
sudo ./a.out 192.168.43.23 38162 192.168.43.191 23
Note: <server port>
needs to be 23 (for telnet)