Skip to content

Commit bcf877e

Browse files
committed
Import 1.0.3 version
1 parent 26c6315 commit bcf877e

File tree

14 files changed

+4502
-1621
lines changed

14 files changed

+4502
-1621
lines changed

COPYING

-292 KB
Binary file not shown.

ChangeLog

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
Version 1.0.3 - February 2002</h3>
2+
3+
- NBTscan now returns meaningful exit code (patch by James Troup for Debian Linux)
4+
- Added /etc/hosts and lmhosts format output (suggested by Anahuac de Paula Gil and Sigmund Baginov)
5+
- configure script now honours --prefix argument (patch by Petter Reinholdtsen)
6+
- Error messages now include IP address that caused error
7+
- NBTscan accepts a file with a list of IP addresses to scan (suggested by Omas Jakobsson)
8+
- Service number is printed for unknown NetBIOS services in -h mode (suggested by Dan Wright)
9+
- Fixed some compile-time warnings on Linux
10+
- Corrected some typos
11+
112
Version 1.0.2 - March 30, 2000
213

314
- Added retransmits (-m option) (Several people asked)

Makefile

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
INSTALL=/usr/bin/install -c
2+
CC=gcc
3+
LIBS=
4+
CFLAGS = -g -O2
5+
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
7+
TARGET=nbtscan
8+
BINDIR=NONE/bin
9+
10+
nbtscan: $(OBJECTS)
11+
$(CC) $(CFLAGS) -o nbtscan $(OBJECTS) $(LIBS)
12+
13+
install:
14+
$(INSTALL) $(TARGET) $(DESTDIR)$(BINDIR)/$(TARGET)
15+
16+
nbtscan.o: nbtscan.c statusq.h range.h list.h
17+
$(CC) $(CFLAGS) $(DEFS) -c nbtscan.c
18+
19+
statusq.o: statusq.c statusq.h
20+
$(CC) $(CFLAGS) $(DEFS) -c statusq.c
21+
22+
range.o: range.c range.h
23+
$(CC) $(CFLAGS) $(DEFS) -c range.c
24+
25+
list.o: list.c list.h
26+
$(CC) $(CFLAGS) $(DEFS) -c list.c
27+
28+
clean:
29+
-rm $(OBJECTS) nbtscan
30+
31+
distclean: clean
32+
-rm config.cache config.log config.status Makefile

README

Lines changed: 22 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
NBTscan version 1.0.2. Copyright (C) 1999-2000 Alla Bezroutchko
1+
NBTscan version 1.0.3. 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
@@ -7,7 +7,7 @@ readable form. For each responded host it lists IP address,
77
NetBIOS computer name, logged-in user name and MAC address
88
(such as Ethernet).
99

10-
See http://www.abb.aha.ru/software/nbtscan.html for
10+
See http://www.inetcat.org/software/nbtscan.html for
1111
NBTscan homepage.
1212

1313
LICENSE.
@@ -30,41 +30,20 @@ MA 02139, USA.
3030
INSTALLATION.
3131

3232
NBTscan compiles and runs on Unix and Windows. I have tested it
33-
on Windows NT 4.0, Windows 95, Windows 98, FreeBSD 2.2.7,
34-
FreeBSD 3.1, and Solaris 2.6/Intel. Steve Coleman
33+
on Windows NT 4.0, Windows 2000, FreeBSD 4.3, OpenBSD 2.8
34+
and RedHat Linux 7.1. It should also compile and run on Solaris
35+
and other Linuxes as well. Steve Coleman
3536
<[email protected]> ported NBTscan to Solaris, HP-UX and
3637
OSF/1 and fixed several bugs. He reports that NBTscan also runs
3738
on IRIX/SGI with minor problems.
3839

3940
Windows:
4041

4142
To compile this under Windows you will need Cygwin. You can
42-
download it from http://sourceware.cygnus.com/cygwin/download.html
43-
Install it and start the shell. Make directory named bin in
44-
root directory of the drive you have installed Cygwin to.
45-
Suppose you have installed Cygwin into "C:\Program Files\cygnus".
46-
Then you should create directory c:\bin. Then you will need
47-
to mount real bin directory to /bin with the command like that:
48-
49-
mount "/program files/cygnus/cygwin-b20/H-i586-cygwin32/bin" /bin
50-
51-
Untar nbtscan with:
52-
53-
tar zxvf nbtscan.tar.gz
54-
55-
Go to nbtscan directory and run a script named 'configure' like
56-
that:
57-
58-
./configure
59-
60-
Type 'make' at Cygwin command prompt. This will compile and
61-
build nbtscan.exe. If make finishes without errors, type
62-
'make install'. This will copy nbtscan.exe to location specified
63-
in BINDIR (c: by default).
64-
65-
To run it independently (without Cygwin) find file named
66-
cygwin1.dll and copy it to winnt\system32 (or windows\system
67-
under Windows 95)
43+
Download and install Cygwin from
44+
http://sources.redhat.com/cygwin/
45+
Start Cygwin shell and proceed from there as in Unix
46+
installation
6847

6948
Unix:
7049
Do
@@ -79,10 +58,14 @@ That's all.
7958

8059
RUNNING.
8160

82-
Usage: nbtscan [-v] [-d] [-t timeout] [-b bandwidth] [-r] [-q] [-s separator] <scan_range>
61+
Usage:
62+
63+
nbtscan [-v] [-d] [-e] [-l] [-t timeout] [-b bandwidth] [-r] [-q] [-s separator] [-m retransmits] (-f filename)|(<scan_range>)
8364
-v verbose output. Print all names received
8465
from each host
8566
-d dump packets. Print whole packet contents.
67+
-e Format output in /etc/hosts format.
68+
-l Format output in lmhosts format.
8669
Cannot be used with -v, -s or -h options.
8770
-t timeout wait timeout seconds for response.
8871
Default 1.
@@ -96,12 +79,14 @@ Usage: nbtscan [-v] [-d] [-t timeout] [-b bandwidth] [-r] [-q] [-s separator] <s
9679
-q Suppress banners and error messages,
9780
-s separator Script-friendly output. Don't print
9881
column and record headers, separate fields with separator.
99-
-h Print human-readble names for services.
82+
-h Print human-readable names for services.
83+
10084
Can only be used with -v option.
10185
-m retransmits Number of retransmits. Default 0.
86+
-f filename Take IP addresses to scan from file filename
10287
<scan_range> what to scan. Can either be single IP
10388
like 192.168.1.1 or
104-
range of addresses in one of two forms:
89+
range of addresses in one of two forms:
10590
xxx.xxx.xxx.xxx/xx or xxx.xxx.xxx.xxx-xxx.
10691
Examples:
10792
nbtscan -r 192.168.1.0/24
@@ -117,6 +102,9 @@ Examples:
117102
192.168.0.1:ADMINISTRATOR:03U
118103
192.168.0.2:OTHER_BOX:00U
119104
...
105+
nbtscan -f iplist
106+
Scans IP addresses specified in file iplist.
107+
120108

121109
BUGS/LIMITATIONS
122110

@@ -125,6 +113,6 @@ hosts with it because Windows 95 always sends responses to name
125113
queries to port 137, and you cannot bind to port 137 under
126114
Windows (it is already taken by Windows itself).
127115

128-
Report bugs to alla@sovlink.ru (that's me). I cannot promise to
116+
Report bugs to alla@inetcat.org (that's me). I cannot promise to
129117
do anything but I might well want fix it. Remember: no warranty.
130118
At least it's worth what you payed for it.

config.guess

100755100644
File mode changed.

0 commit comments

Comments
 (0)