Networking Forums

Networking Forums > Computer Networking > Linux Networking > How to specify a big sequence number in hping2?

Reply
Thread Tools Display Modes

How to specify a big sequence number in hping2?

 
 
Zheng Da
Guest
Posts: n/a

 
      11-18-2006, 02:15 PM
Hello.
I try to fake a TCP packet with hping2.
But how to specify a sequence number which is larger than 0x7FFFFFFF?
For example, when I try to specify 2666666666 as the sequence number,
hping2 always use 2147483647.
Is there any special way?

With regards,
Zheng Da

 
Reply With Quote
 
 
 
 
Moe Trin
Guest
Posts: n/a

 
      11-18-2006, 09:07 PM
On 18 Nov 2006, in the Usenet newsgroup comp.os.linux.networking, in article
<(E-Mail Removed). com>, Zheng Da wrote:

>I try to fake a TCP packet with hping2.
>But how to specify a sequence number which is larger than 0x7FFFFFFF?
>For example, when I try to specify 2666666666 as the sequence number,
>hping2 always use 2147483647.


1. hping2 _may_ be unmaintained. The latest version is hping2.0.0-rc3.tar.gz
which is from May 2004. The prior release was hping2.0.0-rc2.tar.gz from
November 2002. "hping3-20051105.tar.gz" is supposed to be the replacement.

2. hping2 rc3 does accept a "-M 2666666666" or "--setseq 2666666666" here,
and that sequence number is in the resulting packet. Could this be a problem
with your application? Note that the man page is incorrect, and identifies
the option as '--tcpseq' rather than '--setseq'.

3. hping2 is supposed to work on Linux, *BSD and Solaris (and there is a win32
port). Which are you using? Your headers seem to imply FC3 of FC4.

>Is there any special way?


I was able to do so directly from the command line.

Old guy
 
Reply With Quote
 
Zheng Da
Guest
Posts: n/a

 
      11-19-2006, 08:55 AM

"Moe Trin write:
"
> On 18 Nov 2006, in the Usenet newsgroup comp.os.linux.networking, in article
> <(E-Mail Removed). com>, Zheng Da wrote:
>
> >I try to fake a TCP packet with hping2.
> >But how to specify a sequence number which is larger than 0x7FFFFFFF?
> >For example, when I try to specify 2666666666 as the sequence number,
> >hping2 always use 2147483647.

>
> 1. hping2 _may_ be unmaintained. The latest version is hping2.0.0-rc3.tar.gz
> which is from May 2004. The prior release was hping2.0.0-rc2.tar.gz from
> November 2002. "hping3-20051105.tar.gz" is supposed to be the replacement.

OK, I will try hping3.
>
> 2. hping2 rc3 does accept a "-M 2666666666" or "--setseq 2666666666" here,
> and that sequence number is in the resulting packet. Could this be a problem
> with your application? Note that the man page is incorrect, and identifies
> the option as '--tcpseq' rather than '--setseq'.

I'm not very sure. I should try next time when I go to the lab.
>
> 3. hping2 is supposed to work on Linux, *BSD and Solaris (and there is a win32
> port). Which are you using? Your headers seem to imply FC3 of FC4.

I used it in the lab, the system should be FC, but I don't know its
version.
>
> >Is there any special way?

>
> I was able to do so directly from the command line.
>
> Old guy

Thank you

With regards
Zheng Da

 
Reply With Quote
 
Moe Trin
Guest
Posts: n/a

 
      11-19-2006, 08:48 PM
On 19 Nov 2006, in the Usenet newsgroup comp.os.linux.networking, in article
<(E-Mail Removed) .com>, Zheng Da wrote:

>Moe Trin write:


>> 1. hping2 _may_ be unmaintained. The latest version is hping2.0.0-rc3.tar.gz
>> which is from May 2004. The prior release was hping2.0.0-rc2.tar.gz from
>> November 2002. "hping3-20051105.tar.gz" is supposed to be the replacement.


>OK, I will try hping3.


I'm not sure that the changes are that significant.

>> 3. hping2 is supposed to work on Linux, *BSD and Solaris (and there is a
>> win32 port). Which are you using? Your headers seem to imply FC3 of FC4.


>I used it in the lab, the system should be FC, but I don't know its
>version.


Standard mechanism: 'cat /etc/*release /etc/*version' which will show
the version or release file (different distributions use different file
names).

Old guy
 
Reply With Quote
 
Zheng Da
Guest
Posts: n/a

 
      11-25-2006, 07:15 PM
I use hping3 in Debian, and don't have this problem.
I'm not sure which causes the problem, but thank you.

"Moe Trin write:
"
> On 19 Nov 2006, in the Usenet newsgroup comp.os.linux.networking, in article
> <(E-Mail Removed) .com>, Zheng Da wrote:
>
> >Moe Trin write:

>
> >> 1. hping2 _may_ be unmaintained. The latest version is hping2.0.0-rc3.tar.gz
> >> which is from May 2004. The prior release was hping2.0.0-rc2.tar.gz from
> >> November 2002. "hping3-20051105.tar.gz" is supposed to be the replacement.

>
> >OK, I will try hping3.

>
> I'm not sure that the changes are that significant.
>
> >> 3. hping2 is supposed to work on Linux, *BSD and Solaris (and there is a
> >> win32 port). Which are you using? Your headers seem to imply FC3 of FC4.

>
> >I used it in the lab, the system should be FC, but I don't know its
> >version.

>
> Standard mechanism: 'cat /etc/*release /etc/*version' which will show
> the version or release file (different distributions use different file
> names).
>
> Old guy


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to detect TCP sequence number wrap around in a netfilter kernel module Rohit Linux Networking 0 05-10-2007 06:28 AM
Linux Sequence Number Generation Sunny Linux Networking 0 01-26-2006 02:06 PM
Can a callsign number be transferred to a main number? Barry T Broadband 4 08-30-2005 07:49 PM
fragmentation and sendip or hping2 with Linux Runesmoke Linux Networking 4 04-09-2005 06:18 AM
Sequence Number Prediction bala Linux Networking 0 02-21-2005 07:01 AM



1 2 3 4 5 6 7 8 9 10 11