Nmap Development mailing list archives
[PATCH] Add --badsum equivalent run-time option
From: Kris Katterjohn <kjak () ispwest com>
Date: Sat, 16 Sep 2006 20:50:57 -0500
The attached patch adds the run-time commands equivalent to the --badsum command-line option. It may not be a very-much used option (or it could..), but IMO nmap should allow as many (reasonable) options as possible to be changed during execution. Obviously a large chunk of them won't be able to be done this way because they require additional info/options, but --badsum doesn't and I could see it being useful while scanning a group of hosts. I tested it by watching traffic with tcpdump. It's a diff against 4.20ALPHA7 Thanks, Kris Katterjohn
--- x/docs/nmap-man.xml 2006-09-02 20:24:55.000000000 -0500 +++ y/docs/nmap-man.xml 2006-09-16 20:48:19.000000000 -0500 @@ -3247,6 +3247,14 @@ increased.</para> </varlistentry> <varlistentry> <term> + <option>b</option> / <option>B</option> + </term> + <listitem> + <para>Turn on / off sending packets with bogus TCP/UDP checksum</para> + </listitem> + </varlistentry> + <varlistentry> + <term> <option>?</option> </term> <listitem> --- x/nmap_tty.cc 2006-08-24 20:47:37.000000000 -0500 +++ y/nmap_tty.cc 2006-09-16 20:48:35.000000000 -0500 @@ -251,6 +251,12 @@ bool keyWasPressed() } else if (c == 'P') { o.setPacketTrace(false); log_write(LOG_STDOUT, "Packet Tracing disabled.\n"); + } else if (c == 'b') { + o.badsum = 1; + log_write(LOG_STDOUT, "Sending packets with bogus TCP/UDP checksum.\n"); + } else if (c == 'B') { + o.badsum = 0; + log_write(LOG_STDOUT, "Sending packets with correct TCP/UDP checksum.\n"); } else if (c == '?') { log_write(LOG_STDOUT, "Interactive keyboard commands:\n" @@ -258,6 +264,7 @@ bool keyWasPressed() "v/V Increase/decrease verbosity\n" "d/D Increase/decrease debugging\n" "p/P Enable/disable packet tracing\n" + "b/B Enable/disable sending packets with bogus TCP/UDP checksum\n" "anything else Print status\n" "More help: http://www.insecure.org/nmap/man/man-runtime-interaction.html\n"); } else {
_______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://SecLists.Org
Current thread:
- [PATCH] Add --badsum equivalent run-time option Kris Katterjohn (Sep 16)
- Re: [PATCH] Add --badsum equivalent run-time option Fyodor (Sep 25)
- Re: [PATCH] Add --badsum equivalent run-time option Kris Katterjohn (Sep 28)
- Re: [PATCH] Add --badsum equivalent run-time option Fyodor (Sep 25)