Skip to content

Commit

Permalink
Import 1.5 version
Browse files Browse the repository at this point in the history
  • Loading branch information
eribertomota committed Aug 19, 2019
1 parent bcf877e commit dcdd77a
Show file tree
Hide file tree
Showing 14 changed files with 1,700 additions and 773 deletions.
12 changes: 11 additions & 1 deletion ChangeLog
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
Version 1.0.3 - February 2002</h3>
Version 1.5 - May 2002

- Fixed a bug in displaying of 15-character NetBIOS names (15th character wasn't displayed). Bug reported by Tom Kustner ([email protected]), Kenny Breck ([email protected]) and Richard IJzermans ([email protected])
- Fixed a bug in interpreting netmask /32 and /0. Patch provided by Thomas Poindessous ([email protected]) for Debian Linux
- List of hosts to scan can now be read from stdin as well as from file. Suggested by Kevin Kadow ([email protected])
- Fixed a bug in timing. (nbtscan waited for two seconds after scanning not doing anything). Reported by Ceri Hopkins ([email protected])
- Nbtscan now works on Darwin. Patches provided by Mohammad A. Haque ([email protected])
- timeout option -t is now in milliseconds, not seconds
- Fixed some Solaris portability problems. Patches provided by Petter Reinholdtsen ([email protected])

Version 1.0.3 - February 2002

- NBTscan now returns meaningful exit code (patch by James Troup for Debian Linux)
- Added /etc/hosts and lmhosts format output (suggested by Anahuac de Paula Gil and Sigmund Baginov)
Expand Down
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@ CC=gcc
LIBS=
CFLAGS = -g -O2
OBJECTS=nbtscan.o statusq.o range.o list.o
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
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
TARGET=nbtscan
BINDIR=NONE/bin

prefix = /usr/local
exec_prefix = ${prefix}
bindir = NONE/bin

nbtscan: $(OBJECTS)
$(CC) $(CFLAGS) -o nbtscan $(OBJECTS) $(LIBS)
Expand Down
5 changes: 4 additions & 1 deletion Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ CFLAGS = @CFLAGS@
OBJECTS=nbtscan.o statusq.o range.o list.o
DEFS=@DEFS@
TARGET=@TARGET@
BINDIR=@BINDIR@

prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@

nbtscan: $(OBJECTS)
$(CC) $(CFLAGS) -o nbtscan $(OBJECTS) $(LIBS)
Expand Down
12 changes: 7 additions & 5 deletions README
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
NBTscan version 1.0.3. Copyright (C) 1999-2002 Alla Bezroutchko
NBTscan version 1.5. Copyright (C) 1999-2002 Alla Bezroutchko

NBTscan is a program for scanning IP networks for NetBIOS name
information. It sends NetBIOS status query to each address in
Expand Down Expand Up @@ -35,7 +35,8 @@ and RedHat Linux 7.1. It should also compile and run on Solaris
and other Linuxes as well. Steve Coleman
<[email protected]> ported NBTscan to Solaris, HP-UX and
OSF/1 and fixed several bugs. He reports that NBTscan also runs
on IRIX/SGI with minor problems.
on IRIX/SGI with minor problems. Mohammad A. Haque
<[email protected]> ported nbtscan to Darwin.

Windows:

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

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

Report bugs to [email protected] (that's me). I cannot promise to
do anything but I might well want fix it. Remember: no warranty.
At least it's worth what you payed for it.
Loading

0 comments on commit dcdd77a

Please sign in to comment.