[TCP Reset attack] how to set the sequence number directly with nping?

To attack a telnet connection, it takes to send the sequence number for a TCP Reset. But when I set the sequence number with:

# nping --tcp --flags rst -c1 --dest-ip server-ip -p 23 -S victim-ip -g victim-port --seq seqnumber-on-wireshark 

the sequence number is absolutely not the one I've typed. To ensure the attack passes, I need to compute the following:

2^32 - seqnumber-by-default-of-the-attacker + seqnumber-on-wireshark 

Would you know how to set the sequence number directly?

submitted by /u/thomasbbbb
[link] [comments]

from hacking: security in practice https://ift.tt/3FZHlfY

Comments