1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255
|
Content-type: text/html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of SCANPBNJ.MAN.1</TITLE>
</HEAD><BODY>
<H1>SCANPBNJ.MAN.1</H1>
Section: User Contributed Perl Documentation (1)<BR>Updated: 2006-11-14<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB"> </A>
<H2>NAME</H2>
<PRE>
ScanPBNJ - a program for running Nmap scans and storing the results in
a PBNJ 2.0 database.
</PRE>
<A NAME="lbAC"> </A>
<H2>SYNOPSIS</H2>
<A NAME="ixAAC"></A>
<PRE>
scanpbnj [Options] {target specification}
</PRE>
<A NAME="lbAD"> </A>
<H2>DESCRIPTION</H2>
<A NAME="ixAAD"></A>
<PRE>
ScanPBNJ performs an Nmap scan and then stores the results in
a database. The ScanPBNJ stores information about the machine that has
been scanned. ScanPBNJ stores the IP Address, Operating System,
Hostname and a localhost bit. The localhost bit, is simply a single
bit which is 1 when the target machine is localhost, otherwise it is
0. It also stores two timestamps for the machine table. The first is
a human readable version and the second is the unix time. Both of
these timestamp correspond to the first time that the machine was
scanned.
</PRE>
<P>
<PRE>
ScanPBNJ stores information about the services that are found to be
running on the target machine. ScanPBNJ stores typical information
about the service, by storing the port and protocol. Also, ScanPBNJ
stores version, product and service state information about each
service. The service state can either be up or down. Two timestamps
are also inserted for each instance of every service. The first is a
human readable version and the second is the unix time. Both of
these timestamp correspond to the time that the service was scanned.
</PRE>
<P>
<PRE>
This tool can give an admin a clear network layout with of
all the machines with all the services they are running.
</PRE>
<P>
<PRE>
Apart of PBNJ 2.0 suite of tools to monitor changes on a network.
</PRE>
<A NAME="lbAE"> </A>
<H2>OPTIONS</H2>
<A NAME="ixAAE"></A>
<PRE>
Usage: scanpbnj [Options] {target specification}
</PRE>
<P>
<PRE>
Target Specification:
Can be a IP Address, hostname, network etc.
Ex: microsoft.com, 10.0.0.0/24, 192.168.1.1, 10.0.0.0-100
-i --iplist <iplist> Scan using a list of IPs from a file
-x --xml <xml-file> Parse scan/info from Nmap XML file
</PRE>
<P>
<PRE>
Scan Options:
-a --args <args> Execute Nmap with args (needs quotes)
-e --extraargs <args> Add args to the default args (needs quotes)
--inter <interface> Perform scan with non default interface
-m --moreports <ports> Add ports to scan ex: 8080 or 3306,5900-5910
-n --nmap <path> Path to Nmap executable
-p --pingscan Ping Target then scan the alive host(s)
--udp Add UDP to the scan arguments
--rpc Add RPC to the scan arguments
-r --range <range> Ports for scan [def 1-1025]
</PRE>
<P>
<PRE>
--diffbanner Parse changes of the banner
</PRE>
<P>
<PRE>
Config Options:
-d --dbconfig <config> Config for results database [def config.yaml]
--configdir <dir> Directory for the database config file
</PRE>
<P>
<PRE>
--data <file> SQLite Database override [def data.dbl]
--dir <dir> Directory for SQLite or CSV files [def .]
</PRE>
<P>
<PRE>
General Options:
--nocolors Don't Print Colors
--test <level> Testing information
--debug <level> Debug information
-v --version Display version
-h --help Display this information
</PRE>
<P>
<PRE>
Send Comments to Joshua D. Abraham ( <A HREF="mailto:jabra@ccs.neu.edu">jabra@ccs.neu.edu</A> )
</PRE>
<A NAME="lbAF"> </A>
<H2>THINGS TO NOTE</H2>
<A NAME="ixAAF"></A>
<PRE>
* ScanPBNJ requires root privileges to perform a scan.
</PRE>
<P>
<PRE>
* If you do not pass a specific ports range, 1-1025 is used.
</PRE>
<P>
<PRE>
* If there are configs in the current directory, they are used
instead of those in the user's config directory.
</PRE>
<P>
<PRE>
* ScanPBNJ does not modify previous database entries. It simply
inserts new information when a change is found.
</PRE>
<P>
<PRE>
* One thing that should be done when performing scans is to make
sure to use the same ports or you will get false positives.
</PRE>
<A NAME="lbAG"> </A>
<H2>EXAMPLE SINGLE SCAN</H2>
<A NAME="ixAAG"></A>
<PRE>
1) Scan a class B network on ports 1-9000
</PRE>
<P>
<PRE>
sudo ./scanpbnj -r 1-9000 10.0.0.0/16
</PRE>
<P>
<PRE>
2) Scan an IP Address on ports 1-9000
</PRE>
<P>
<PRE>
sudo ./scanpbnj -r 1-9000 10.0.0.100
</PRE>
<A NAME="lbAH"> </A>
<H2>EXAMPLE AUTOMATED SCANS</H2>
<A NAME="ixAAH"></A>
<PRE>
The following examples can be added to /etc/crontab
</PRE>
<P>
<PRE>
1) Scan a Class C network every 2 hours
</PRE>
<P>
<PRE>
30 */2 * * * root scanpbnj 10.0.0.\*
</PRE>
<P>
<PRE>
2) Scan a Class C network everyday at 2:30
</PRE>
<P>
<PRE>
30 2 * * * root scanpbnj 10.0.0.\*
</PRE>
<A NAME="lbAI"> </A>
<H2>TARGET SPECIFICATION</H2>
<A NAME="ixAAI"></A>
<PRE>
The target specified is a typical method of probing the network.
Therefore, any of the following can be used:
(e.g. 10.0.0.1, 10.0.0.1-254, 10.0.0.0/24 or 10.0.0.\* ).
The first example is simply an IP address. The second example is
the scanning of a range. The third is a range in CIDR notation.
The fourth example is the IP with the star which specifies to scan
255 hosts. This is the same format that Nmap uses with the only
exception being the \* on the last octet. This is needed because it
needs to not interpret the star when it is being executed.
</PRE>
<P>
<PRE>
Another option, is to use a hostname or domain name. ScanPBNJ will
then resolve the name to the correct IP address. If you pass a
debug flag with level 1 or greater, ScanPBNJ will display what IP
address, the hostname resolved too.
</PRE>
<A NAME="lbAJ"> </A>
<H2>-i <iplist> Scan using a list of IPs from a file
</H2>
<A NAME="ixAAJ"></A>
<PRE>
The iplist option is useful when you have a specific list of IPs to
scan. This will perform a full scan of the IPs that are specified.
This option is similar to using -sL with Nmap. The results of
the scan are inserted into the database.
</PRE>
<A NAME="lbAK"> </A>
<H2>-x <xml-file> Parse scan/info from Nmap <FONT SIZE="-1">XML</FONT> file</H2>
<A NAME="ixAAK"></A>
<PRE>
This option is useful when you can't perform the scan yourself or
you don't want ScanPBNJ to perform the scan. Another situation where
this is useful, is if you have an XML file that was done in the past
and you want to extract information from it, possibly to compare
with what is currently being run on the target. ScanPBNJ parses the
Nmap XML file and extracts the information about the host(s) and
service(s) then inserts the results into the database.
</PRE>
<A NAME="lbAL"> </A>
<H2>SCAN OPTIONS</H2>
<A NAME="ixAAL"></A>
<A NAME="lbAM"> </A>
<H2>-a --args <args></H2>
<A NAME="ixAAM"></A>
<PRE>
** NOTE ** This option needs quotes around the passed arguments
</PRE>
<P>
<PRE>
This option will bypass the default arguments that are used in
scanning with Nmap. This can be used to do a particular type of scan
that is not possible by simply adding extra arguments. For example,
if you want to only scan UDP ports and still do version
identification and OS detection, you would do so using the following
notation:
</PRE>
<P>
<PRE>
sudo scapbnj -a "-A -O -sU" localhost
</PRE>
<A NAME="lbAN"> </A>
<H2>-e --extraargs <args></H2>
<A NAME="ixAAN"></A>
<PRE>
** NOTE ** This option needs quotes around the passed arguments
</PRE>
<P>
<PRE>
This option will add additional arguments onto the default scan
arguments. This is most useful in doing scans where time optimization
is needed. Therefore, these arguments will be added and then used in
the scan.
</PRE>
<A NAME="lbAO"> </A>
<H2>--inter <intface></H2>
<A NAME="ixAAO"></A>
<PRE>
This option sets an alternative interface for performing the scan.
This is useful when you have multiple interfaces on a machine
with restrictions on which devices can access certain IP or IP ranges.
</PRE>
<A NAME="lbAP"> </A>
<H2>-m --moreports <ports></H2>
<A NAME="ixAAP"></A>
<PRE>
This options adds additional ports to the range of ports to scan.
Individual port numbers are OK, as are ranges separated by a
hyphen (e.g. 1-1023,5800,5900,8080).
</PRE>
<P>
<PRE>
For example:
</PRE>
<P>
<PRE>
sudo scanpbnj -m 7000-7500,8080 localhost
</PRE>
<P>
<PRE>
This scan would scan the default range as well 7000-7500 and 8080.
</PRE>
<A NAME="lbAQ"> </A>
<H2>-n --nmap <alternative-nmap-path></H2>
<A NAME="ixAAQ"></A>
<PRE>
Use an alternative Nmap rather than Nmap located in the your path.
This is useful if you have multiple version of Nmap installed on
a system or if you are testing a new version of Nmap. Remember that if
you are using a newly compiled version of Nmap that you need to
export NMAPDIR to the location that Nmap was compiled in. Thus, if
you have compiled Nmap in your homedir, use the following notation:
</PRE>
<P>
<PRE>
export NMAPDIR=$HOME/nmap-VERSION/
</PRE>
<P>
<PRE>
sudo scanpbnj -n $HOME/nmap-VERISON/ localhost
</PRE>
<A NAME="lbAR"> </A>
<H2>-p Ping Target then scan the host(s) that are alive</H2>
<A NAME="ixAAR"></A>
<PRE>
The ping scan is a useful method of only scanning the host that are
responding to ICMP echo requests. This scan basically takes the host
that respond to ICMP echo requests and then performs a scan only on
those hosts. Therefore, no time is wasted in scanning hosts that do
not respond. The results of the scan are then inserted into the
database.
</PRE>
<A NAME="lbAS"> </A>
<H2>--udp Add <FONT SIZE="-1">UDP</FONT> to the scan arguments</H2>
<A NAME="ixAAS"></A>
<PRE>
Perform a UDP scan, in addition to the default scan.
</PRE>
<P>
<PRE>
sudo scanpbnj --udp localhost
</PRE>
<P>
<PRE>
If you want to only perform a UDP scan you need to set the specific
arguments for the scan.
</PRE>
<P>
<PRE>
sudo scanpbnj -a "-vv -O -P0 1-1025 -sVU" localhost
</PRE>
<A NAME="lbAT"> </A>
<H2>--rpc Add <FONT SIZE="-1">RPC</FONT> to the scan arguments</H2>
<A NAME="ixAAT"></A>
<PRE>
Perform a RPC scan in addition to the default scan.
</PRE>
<P>
<PRE>
sudo scanpbnj --udp localhost
</PRE>
<P>
<PRE>
If you want to only perform a RPC scan you need to set the specific
arguments for the scan.
</PRE>
<P>
<PRE>
sudo scanpbnj -a "-vv -O -P0 1-1025 -sVR" localhost
</PRE>
<A NAME="lbAU"> </A>
<H2>-r --range <ports></H2>
<A NAME="ixAAU"></A>
<PRE>
Ports for scan [default 1-1025]
</PRE>
<P>
<PRE>
This option specifies which ports you want to scan and overrides the
default. Individual port numbers are OK, as are ranges separated by a
hyphen (e.g. 1-1023,5800,5900,8080 ).
</PRE>
<P>
<PRE>
Thus, a scan like this is ok.
</PRE>
<P>
<PRE>
sudo scanpbnj -r 22,25,80,100-200 localhost
</PRE>
<P>
<PRE>
Also, if you have leave off the number after the hyphen it will scan
all from the start port to 65535.
</PRE>
<P>
<PRE>
For example:
</PRE>
<P>
<PRE>
sudo scanpbnj -r 22,25- localhost
</PRE>
<A NAME="lbAV"> </A>
<H2>--diffbanner</H2>
<A NAME="ixAAV"></A>
<PRE>
Parse changes of the banner
</PRE>
<P>
<PRE>
This options enables ScanPBNJ to do comparisons on the banner. The
reason this is not on by default is that it could show changes in
services that are not are important to the user. However, this option
is useful to a security professional who is looking for any changes
that occur so that they can be verified.
</PRE>
<A NAME="lbAW"> </A>
<H2>DATABASE OPTIONS</H2>
<A NAME="ixAAW"></A>
<A NAME="lbAX"> </A>
<H2>-d --dbconfig <file></H2>
<A NAME="ixAAX"></A>
<PRE>
Config for results database [default config.yaml]
</PRE>
<P>
<PRE>
This option is used to specify an alternative config.yaml file.
</PRE>
<A NAME="lbAY"> </A>
<H2>--configdir <dir></H2>
<A NAME="ixAAY"></A>
<PRE>
Directory for Config file [default . ]
</PRE>
<P>
<PRE>
This option is used to specify an alternative directory for the
config.yaml file.
</PRE>
<A NAME="lbAZ"> </A>
<H2>--data <file></H2>
<A NAME="ixAAZ"></A>
<PRE>
SQLite Database override [default data.dbl ]
</PRE>
<P>
<PRE>
This option is used when you want to change the name of the SQLite
database file that is generated.
</PRE>
<A NAME="lbBA"> </A>
<H2>--dir <dir></H2>
<A NAME="ixABA"></A>
<PRE>
Directory for SQLite or CSV files [default . ]
</PRE>
<P>
<PRE>
This option is used when you want the database to be generated in a
different directory.
</PRE>
<A NAME="lbBB"> </A>
<H2>GENERAL OPTIONS</H2>
<A NAME="ixABB"></A>
<A NAME="lbBC"> </A>
<H2>--nocolors</H2>
<A NAME="ixABC"></A>
<PRE>
The default results from ScanPBNJ print the useful changes with colors
This options will simply not print the colors.
</PRE>
<A NAME="lbBD"> </A>
<H2>--test <level></H2>
<A NAME="ixABD"></A>
<PRE>
Increases the Test level, causing ScanPBNJ to print testing information
about the scan in progress. Using the Test level is mostly only using
for testing. This will also print the debugging information so it can
get rather lengthy. The greater the Test level the more output will be
given.
</PRE>
<P>
<PRE>
This option is also used for reporting bugs. All bug reports should
be submitted using --test 1 and an additional report may be needed
depending on the issue.
</PRE>
<A NAME="lbBE"> </A>
<H2>--debug <level></H2>
<A NAME="ixABE"></A>
<PRE>
Increases the Debug level, causing ScanPBNJ to print more information
about the scan in progress. Nmap scanning arguments are shown as well
as the ip address if you are scanning a domain name. This option is
used to give the user more information about what the scanner is doing.
The higher the debug level the more output the user will receive.
</PRE>
<A NAME="lbBF"> </A>
<H2>-v --version</H2>
<A NAME="ixABF"></A>
<PRE>
Prints the ScanPBNJ version number and exits.
</PRE>
<A NAME="lbBG"> </A>
<H2>-h --help</H2>
<A NAME="ixABG"></A>
<PRE>
Prints a short help screen with the command flags. Running ScanPBNJ
without any arguments does the same thing.
</PRE>
<A NAME="lbBH"> </A>
<H2>DEFAULT SCAN</H2>
<A NAME="ixABH"></A>
<PRE>
Here are the default arguments that are used during a default scan:
</PRE>
<P>
<PRE>
-vv -O -P0 -sSV -p 1-1025
</PRE>
<A NAME="lbBI"> </A>
<H2>FILES</H2>
<A NAME="ixABI"></A>
<PRE>
PBNJ's data files are stored in ScanPBNJ and OutputPBNJ. When either
of these programs is run the configuration files will be generated
for the user if they don't already exists and placed in the
$HOME/.pbnj-2.0 directory. Again, if there is a configuration file
in the current directory it is used instead of the version in the
configuration directory.
</PRE>
<P>
<PRE>
$HOME/.pbnj-2.0/config.yaml - holds settings for connecting to
the database which store the information from PBNJ scans.
</PRE>
<P>
<PRE>
$HOME/.pbnj-2.0/query.yaml - lists all queries that can be used to
retrieve information from the database. Also, includes the name and
description for each query. This is only generated when you executed
OutputPBNJ.
</PRE>
<P>
<PRE>
For Windows, the pbnj-2.0 config directory is in the APPDATA
directory, which contains both config.yaml and query.yaml. Depending
on your environment, the APPDATA directory may be a different location
from other environments. Therefore, when the configs are executed for
the first time they will display the path where the configs were
generated.
</PRE>
<A NAME="lbBJ"> </A>
<H2>FEATURE REQUESTS</H2>
<A NAME="ixABJ"></A>
<PRE>
Any feature requests should be reported to the online
feature-request-tracking system available on the web at :
<A HREF="http://sourceforge.net/tracker/?func=add">http://sourceforge.net/tracker/?func=add</A>&group_id=149390&atid=774489
Before requesting a feature, please check to see if the features has
already been requested.
</PRE>
<A NAME="lbBK"> </A>
<H2>BUG REPORTS</H2>
<A NAME="ixABK"></A>
<PRE>
Any bugs found should be reported to the online bug-tracking system
available on the web at :
<A HREF="http://sourceforge.net/tracker/?func=add">http://sourceforge.net/tracker/?func=add</A>&group_id=149390&atid=774488.
Before reporting a bug, please check to see if the bug has already been
reported.
</PRE>
<P>
<PRE>
When reporting PBNJ bugs, it is important to include a reliable way to
reproduce the bug, version number of PBNJ and Nmap, OS
name and version, and any relevant hardware specs. And of course,
patches to rectify the bug are even better.
</PRE>
<A NAME="lbBL"> </A>
<H2>SUPPORTED DATABASES</H2>
<A NAME="ixABL"></A>
<PRE>
The following databases are supported:
</PRE>
<P>
<PRE>
* SQLite [default]
* MySQL
* Postgres
* CSV
</PRE>
<A NAME="lbBM"> </A>
<H2>DATABASE SCHEMA</H2>
<A NAME="ixABM"></A>
<PRE>
The following is the SQLite version of the database schema:
</PRE>
<P>
<PRE>
CREATE TABLE machines (
mid INTEGER PRIMARY KEY AUTOINCREMENT,
ip TEXT,
host TEXT,
localh INTEGER,
os TEXT,
machine_created TEXT,
created_on TEXT);
CREATE TABLE services (
mid INTEGER,
service TEXT,
state TEXT,
port INTEGER,
protocol TEXT,
version TEXT,
banner TEXT,
machine_updated TEXT,
updated_on TEXT);
</PRE>
<A NAME="lbBN"> </A>
<H2>SEE ALSO</H2>
<A NAME="ixABN"></A>
<PRE>
<A HREF="/cgi-bin/man/man2html?1+outputpbnj">outputpbnj</A>(1), <A HREF="/cgi-bin/man/man2html?1+genlist">genlist</A>(1), <A HREF="/cgi-bin/man/man2html?1+nmap">nmap</A>(1)
</PRE>
<A NAME="lbBO"> </A>
<H2>AUTHORS</H2>
<A NAME="ixABO"></A>
<PRE>
Joshua D. Abraham ( <A HREF="mailto:jabra@ccs.neu.edu">jabra@ccs.neu.edu</A> )
</PRE>
<A NAME="lbBP"> </A>
<H2>LEGAL NOTICES</H2>
<A NAME="ixABP"></A>
<PRE>
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details at
<A HREF="http://www.gnu.org/copyleft/gpl.html,">http://www.gnu.org/copyleft/gpl.html,</A> or in the COPYING file included
with PBNJ.
</PRE>
<P>
<PRE>
It should also be noted that PBNJ has occasionally been known to
crash poorly written applications, TCP/IP stacks, and even operating
systems. While this is extremely rare, it is important to keep in
mind. PBNJ should never be run against mission critical systems
unless you are prepared to suffer downtime. We acknowledge here that
PBNJ may crash your systems or networks and we disclaim all liability
for any damage or problems PBNJ could cause.
</PRE>
<P>
<HR>
<A NAME="index"> </A><H2>Index</H2>
<DL>
<DT><A HREF="#lbAB">NAME</A><DD>
<DT><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT><A HREF="#lbAE">OPTIONS</A><DD>
<DT><A HREF="#lbAF">THINGS TO NOTE</A><DD>
<DT><A HREF="#lbAG">EXAMPLE SINGLE SCAN</A><DD>
<DT><A HREF="#lbAH">EXAMPLE AUTOMATED SCANS</A><DD>
<DT><A HREF="#lbAI">TARGET SPECIFICATION</A><DD>
<DT><A HREF="#lbAJ">-i <iplist> Scan using a list of IPs from a file</A><DD>
<DT><A HREF="#lbAK">-x <xml-file> Parse scan/info from Nmap <FONT SIZE="-1">XML</FONT> file</A><DD>
<DT><A HREF="#lbAL">SCAN OPTIONS</A><DD>
<DT><A HREF="#lbAM">-a --args <args></A><DD>
<DT><A HREF="#lbAN">-e --extraargs <args></A><DD>
<DT><A HREF="#lbAO">--inter <intface></A><DD>
<DT><A HREF="#lbAP">-m --moreports <ports></A><DD>
<DT><A HREF="#lbAQ">-n --nmap <alternative-nmap-path></A><DD>
<DT><A HREF="#lbAR">-p Ping Target then scan the host(s) that are alive</A><DD>
<DT><A HREF="#lbAS">--udp Add <FONT SIZE="-1">UDP</FONT> to the scan arguments</A><DD>
<DT><A HREF="#lbAT">--rpc Add <FONT SIZE="-1">RPC</FONT> to the scan arguments</A><DD>
<DT><A HREF="#lbAU">-r --range <ports></A><DD>
<DT><A HREF="#lbAV">--diffbanner</A><DD>
<DT><A HREF="#lbAW">DATABASE OPTIONS</A><DD>
<DT><A HREF="#lbAX">-d --dbconfig <file></A><DD>
<DT><A HREF="#lbAY">--configdir <dir></A><DD>
<DT><A HREF="#lbAZ">--data <file></A><DD>
<DT><A HREF="#lbBA">--dir <dir></A><DD>
<DT><A HREF="#lbBB">GENERAL OPTIONS</A><DD>
<DT><A HREF="#lbBC">--nocolors</A><DD>
<DT><A HREF="#lbBD">--test <level></A><DD>
<DT><A HREF="#lbBE">--debug <level></A><DD>
<DT><A HREF="#lbBF">-v --version</A><DD>
<DT><A HREF="#lbBG">-h --help</A><DD>
<DT><A HREF="#lbBH">DEFAULT SCAN</A><DD>
<DT><A HREF="#lbBI">FILES</A><DD>
<DT><A HREF="#lbBJ">FEATURE REQUESTS</A><DD>
<DT><A HREF="#lbBK">BUG REPORTS</A><DD>
<DT><A HREF="#lbBL">SUPPORTED DATABASES</A><DD>
<DT><A HREF="#lbBM">DATABASE SCHEMA</A><DD>
<DT><A HREF="#lbBN">SEE ALSO</A><DD>
<DT><A HREF="#lbBO">AUTHORS</A><DD>
<DT><A HREF="#lbBP">LEGAL NOTICES</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 04:31:10 GMT, November 15, 2006
</BODY>
</HTML>
|