little buffixes

This commit is contained in:
fyodor 2005-07-27 04:39:55 +00:00
parent 273bc7ed35
commit bb7a1cfb9f
6 changed files with 362 additions and 342 deletions

View file

@ -1,6 +1,6 @@
# Nmap Changelog ($Id$)
UNRELEASED
Nmap 3.83DC13
o Added the ability for Nmap to send and properly route raw ethernet
packets cointaining IP datagrams rather than always sending the

View file

@ -1,4 +1,4 @@
Nmap 3.83.SOC3 Usage: nmap [Scan Type(s)] [Options] <host or net list>
Nmap 3.83.DC13 Usage: nmap [Scan Type(s)] [Options] <host or net list>
Some Common Scan Types ('*' options require root privileges)
* -sS TCP SYN stealth port scan (default if privileged (root))
-sT TCP connect() port scan (default for unprivileged users)

File diff suppressed because it is too large Load diff

View file

@ -2119,16 +2119,16 @@ match domain m|^\x80\xf0\x80\x12\0\x01\0\0\0\0\0\0\x20CKAAAAAAAAAAAAAAAAAAAAAAAA
Probe TCP LPDString q|\x01default\n|
ports 515
match printer m|^\0$| d/printer/
match printer m|^default: unknown printer\n$| p/Solaris lpd/ d/printer/ o/Solaris/
match printer m|^default: unknown printer\n$| p/Solaris lpd/ o/Solaris/
# Redhat Linux 7.3 LPRng-3.8.9
match printer m|^\x01no connect permissions\n$| p/LPRng/ d/printer/
match printer m|^\x01no connect permissions\n$| p/LPRng/
# Microsoft Windows 2000 serverr LPD
match printer m|^\x01\x01$| p/Microsoft lpd/ d/printer/
match printer m|^\x01\x01$| p/Microsoft lpd/
# Blackbox Terminal Server (IOLAN v4.03.00 a CDi)
# Chase IOLAN terminal server lpd
# Bay Networks MicroAnnex XL Comm. Server R10.0
match printer m|^\x01$| d/printer/
match printer m|^[-.\w]+: lpsched: unknown printer\n$| p/SGI IRIX lprsrv/ d/printer/ o/IRIX/
match printer m|^\x01$|
match printer m|^[-.\w]+: lpsched: unknown printer\n$| p/SGI IRIX lprsrv/ o/IRIX/
# Ldap bind request, version 2, null DN, AUTH_TYPE simple, null password
##############################NEXT PROBE##############################

View file

@ -1806,7 +1806,7 @@ udp->uh_sum = realcheck;
readudppacket(packet,1);
}
if ((res = send_ip_packet(sd, NULL, packet, ip->ip_len)))
if ((res = send_ip_packet(sd, NULL, packet, ntohs(ip->ip_len))) == -1)
{
perror("send_ip_packet in send_closedupd_probe");
return NULL;

View file

@ -3179,10 +3179,11 @@ void ultra_scan(vector<Target *> &Targets, struct scan_lists *ports,
if (o.verbose) {
if (USI->gstats->num_hosts_timedout == 0)
log_write(LOG_STDOUT, "The %s took %.2fs to scan %lu total ports.\n",
log_write(LOG_STDOUT, "The %s took %.2fs to scan %lu total %s.\n",
scantype2str(scantype),
TIMEVAL_MSEC_SUBTRACT(USI->now, USI->SPM->begin) / 1000.0,
(unsigned long) USI->gstats->numprobes * Targets.size());
(unsigned long) USI->gstats->numprobes * Targets.size(),
(scantype == ARP_SCAN)? "hosts" : "ports");
else log_write(LOG_STDOUT, "Finished %s in %.2fs, but %d %s timed out.\n",
scantype2str(scantype),
TIMEVAL_MSEC_SUBTRACT(USI->now, USI->SPM->begin) / 1000.0,