Skip to content

Commit dcdd77a

Browse files
committed
Import 1.5 version
1 parent bcf877e commit dcdd77a

File tree

14 files changed

+1700
-773
lines changed

14 files changed

+1700
-773
lines changed

ChangeLog

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
1-
Version 1.0.3 - February 2002</h3>
1+
Version 1.5 - May 2002
2+
3+
- Fixed a bug in displaying of 15-character NetBIOS names (15th character wasn't displayed). Bug reported by Tom Kustner (Tom.Kustner@mortgage.wellsFargo.COM), Kenny Breck (KCBreck@NetZero.net) and Richard IJzermans (richard.ijzermans@lgphilips-displays.com)
4+
- Fixed a bug in interpreting netmask /32 and /0. Patch provided by Thomas Poindessous (thomas@poindessous.com) for Debian Linux
5+
- List of hosts to scan can now be read from stdin as well as from file. Suggested by Kevin Kadow (kadokev@msg.net)
6+
- Fixed a bug in timing. (nbtscan waited for two seconds after scanning not doing anything). Reported by Ceri Hopkins (ceri@sandc.demon.co.uk)
7+
- Nbtscan now works on Darwin. Patches provided by Mohammad A. Haque (mhaque@haque.net)
8+
- timeout option -t is now in milliseconds, not seconds
9+
- Fixed some Solaris portability problems. Patches provided by Petter Reinholdtsen (pere@hungry.com)
10+
11+
Version 1.0.3 - February 2002
212

313
- NBTscan now returns meaningful exit code (patch by James Troup for Debian Linux)
414
- Added /etc/hosts and lmhosts format output (suggested by Anahuac de Paula Gil and Sigmund Baginov)

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@ CC=gcc
33
LIBS=
44
CFLAGS = -g -O2
55
OBJECTS=nbtscan.o statusq.o range.o list.o
6-
DEFS=-DSTDC_HEADERS=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_UNISTD_H=1 -Dmy_uint8_t=uint8_t -Dmy_uint16_t=uint16_t -Dmy_uint32_t=uint32_t -DTIME_WITH_SYS_TIME=1 -DHAVE_SNPRINTF=1 -DUNIX=1
6+
DEFS=-DSTDC_HEADERS=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_UNISTD_H=1 -Dmy_uint8_t=uint8_t -Dmy_uint16_t=uint16_t -Dmy_uint32_t=uint32_t -DTIME_WITH_SYS_TIME=1 -DHAVE_SNPRINTF=1 -DHAVE_INET_ATON=1 -DHAVE_SOCKET=1 -DUNIX=1
77
TARGET=nbtscan
8-
BINDIR=NONE/bin
8+
9+
prefix = /usr/local
10+
exec_prefix = ${prefix}
11+
bindir = NONE/bin
912

1013
nbtscan: $(OBJECTS)
1114
$(CC) $(CFLAGS) -o nbtscan $(OBJECTS) $(LIBS)

Makefile.in

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ CFLAGS = @CFLAGS@
55
OBJECTS=nbtscan.o statusq.o range.o list.o
66
DEFS=@DEFS@
77
TARGET=@TARGET@
8-
BINDIR=@BINDIR@
8+
9+
prefix = @prefix@
10+
exec_prefix = @exec_prefix@
11+
bindir = @bindir@
912

1013
nbtscan: $(OBJECTS)
1114
$(CC) $(CFLAGS) -o nbtscan $(OBJECTS) $(LIBS)

README

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
NBTscan version 1.0.3. Copyright (C) 1999-2002 Alla Bezroutchko
1+
NBTscan version 1.5. Copyright (C) 1999-2002 Alla Bezroutchko
22

33
NBTscan is a program for scanning IP networks for NetBIOS name
44
information. It sends NetBIOS status query to each address in
@@ -35,7 +35,8 @@ and RedHat Linux 7.1. It should also compile and run on Solaris
3535
and other Linuxes as well. Steve Coleman
3636
<Steve.Coleman@jhuapl.edu> ported NBTscan to Solaris, HP-UX and
3737
OSF/1 and fixed several bugs. He reports that NBTscan also runs
38-
on IRIX/SGI with minor problems.
38+
on IRIX/SGI with minor problems. Mohammad A. Haque
39+
<mhaque@haque.net> ported nbtscan to Darwin.
3940

4041
Windows:
4142

@@ -67,7 +68,7 @@ nbtscan [-v] [-d] [-e] [-l] [-t timeout] [-b bandwidth] [-r] [-q] [-s separator]
6768
-e Format output in /etc/hosts format.
6869
-l Format output in lmhosts format.
6970
Cannot be used with -v, -s or -h options.
70-
-t timeout wait timeout seconds for response.
71+
-t timeout wait timeout imilliseconds for response.
7172
Default 1.
7273
-b bandwidth Output throttling. Slow down output
7374
so that it uses no more that bandwidth bps.
@@ -78,12 +79,14 @@ nbtscan [-v] [-d] [-e] [-l] [-t timeout] [-b bandwidth] [-r] [-q] [-s separator]
7879
You need to be root to use this option on Unix.
7980
-q Suppress banners and error messages,
8081
-s separator Script-friendly output. Don't print
81-
column and record headers, separate fields with separator.
82+
column and record headers, separate fields
83+
with separator.
8284
-h Print human-readable names for services.
8385

8486
Can only be used with -v option.
8587
-m retransmits Number of retransmits. Default 0.
8688
-f filename Take IP addresses to scan from file filename
89+
-f - makes nbtscan take IP addresses from stdin.
8790
<scan_range> what to scan. Can either be single IP
8891
like 192.168.1.1 or
8992
range of addresses in one of two forms:
@@ -115,4 +118,3 @@ Windows (it is already taken by Windows itself).
115118

116119
Report bugs to alla@inetcat.org (that's me). I cannot promise to
117120
do anything but I might well want fix it. Remember: no warranty.
118-
At least it's worth what you payed for it.

0 commit comments

Comments
 (0)