├── libpcap
├── VERSION
├── scanner.c.top
├── missing
│ └── snprintf.c
├── SUNOS4
│ ├── nit_if.o.sparc
│ ├── nit_if.o.sun3
│ └── nit_if.o.sun4c.4.0.3c
├── Win32
│ ├── Src
│ │ ├── inet_aton.c
│ │ ├── inet_pton.c
│ │ └── getnetbynm.c
│ ├── Prj
│ │ └── libpcap.dsw
│ └── Include
│ │ └── Gnuc.h
├── pcap-snf.h
├── pcap-dbus.h
├── ChmodBPF
│ ├── StartupParameters.plist
│ └── ChmodBPF
├── scanner.h
├── pcap-sita.h
├── org.tcpdump.chmod_bpf.plist
├── pcap-septel.h
├── Makefile-devel-adds
├── NMAP_MODIFICATIONS
│ ├── HOWTO-UPGRADE
│ └── 0003-Disable-TPACKET_V3-in-included-libpcap.-Still-broken.patch
├── chmod_bpf
├── dlpisubs.h
├── LICENSE
├── pcap-common.h
├── msdos
│ └── bin2c.c
├── lbl
│ ├── os-aix4.h
│ ├── os-hpux11.h
│ ├── os-solaris2.h
│ ├── os-osf4.h
│ └── os-osf5.h
└── sf-pcap-ng.h
├── libdnet-stripped
├── include
│ ├── stamp-h.in
│ ├── Makefile.am
│ ├── dnet
│ │ ├── Makefile.am
│ │ ├── tun.h
│ │ ├── udp.h
│ │ ├── rand.h
│ │ └── route.h
│ └── dnet.h
├── Makefile.am.common
├── src
│ ├── Makefile.am
│ ├── fw-none.c
│ ├── eth-none.c
│ ├── arp-none.c
│ ├── tun-none.c
│ └── route-none.c
├── Makefile.am
├── README
├── acconfig.h
├── dnet-config.in
└── LICENSE
├── zenmap
├── share
│ └── zenmap
│ │ ├── config
│ │ └── zenmap_version
│ │ ├── pixmaps
│ │ ├── irix_32.png
│ │ ├── irix_75.png
│ │ ├── vl_1_32.png
│ │ ├── vl_1_75.png
│ │ ├── vl_2_32.png
│ │ ├── vl_2_75.png
│ │ ├── vl_3_32.png
│ │ ├── vl_3_75.png
│ │ ├── vl_4_32.png
│ │ ├── vl_4_75.png
│ │ ├── vl_5_32.png
│ │ ├── vl_5_75.png
│ │ ├── win_32.png
│ │ ├── win_75.png
│ │ ├── zenmap.png
│ │ ├── default_32.png
│ │ ├── default_75.png
│ │ ├── freebsd_32.png
│ │ ├── freebsd_75.png
│ │ ├── linux_32.png
│ │ ├── linux_75.png
│ │ ├── macosx_32.png
│ │ ├── macosx_75.png
│ │ ├── openbsd_32.png
│ │ ├── openbsd_75.png
│ │ ├── redhat_32.png
│ │ ├── redhat_75.png
│ │ ├── solaris_32.png
│ │ ├── solaris_75.png
│ │ ├── throbber.gif
│ │ ├── throbber.png
│ │ ├── ubuntu_32.png
│ │ ├── ubuntu_75.png
│ │ ├── unknown_32.png
│ │ ├── unknown_75.png
│ │ └── radialnet
│ │ │ ├── logo.png
│ │ │ ├── border.png
│ │ │ ├── padlock.png
│ │ │ ├── router.png
│ │ │ ├── switch.png
│ │ │ ├── firewall.png
│ │ │ └── wireless.png
│ │ ├── locale
│ │ ├── de
│ │ │ └── LC_MESSAGES
│ │ │ │ └── zenmap.mo
│ │ ├── es
│ │ │ └── LC_MESSAGES
│ │ │ │ └── zenmap.mo
│ │ ├── fr
│ │ │ └── LC_MESSAGES
│ │ │ │ └── zenmap.mo
│ │ ├── hi
│ │ │ └── LC_MESSAGES
│ │ │ │ └── zenmap.mo
│ │ ├── hr
│ │ │ └── LC_MESSAGES
│ │ │ │ └── zenmap.mo
│ │ ├── it
│ │ │ └── LC_MESSAGES
│ │ │ │ └── zenmap.mo
│ │ ├── ja
│ │ │ └── LC_MESSAGES
│ │ │ │ └── zenmap.mo
│ │ ├── pl
│ │ │ └── LC_MESSAGES
│ │ │ │ └── zenmap.mo
│ │ ├── ru
│ │ │ └── LC_MESSAGES
│ │ │ │ └── zenmap.mo
│ │ ├── zh
│ │ │ └── LC_MESSAGES
│ │ │ │ └── zenmap.mo
│ │ ├── pt_BR
│ │ │ └── LC_MESSAGES
│ │ │ │ └── zenmap.mo
│ │ └── Makefile
│ │ └── docs
│ │ └── help.html
├── zenmapCore
│ └── Version.py
├── install_scripts
│ ├── macosx
│ │ ├── zenmap.icns
│ │ ├── gtkrc
│ │ ├── README
│ │ └── Info.plist
│ ├── windows
│ │ ├── nmap-eye.ico
│ │ └── boot_script.py
│ ├── unix
│ │ ├── zenmap.desktop
│ │ └── zenmap-root.desktop
│ └── README
├── COPYING
├── radialnet
│ └── README
└── test
│ ├── diff_test1
│ ├── diff_test2
│ ├── run_tests.py
│ ├── xml_test12.xml
│ └── xml_test3.xml
├── nmap-update
├── default_channel.h
└── Makefile.in
├── ncat
├── docs
│ ├── examples
│ │ ├── scripts
│ │ │ ├── http-scan
│ │ │ │ ├── get.request
│ │ │ │ ├── iplist
│ │ │ │ ├── scan-example
│ │ │ │ └── README
│ │ │ ├── http-proxy
│ │ │ └── README
│ │ ├── logs
│ │ │ └── ascii-output
│ │ ├── README
│ │ └── ipaccess
│ ├── ncatguidehtml.xml
│ ├── ncat-ascii-art.txt
│ ├── ncatmanhtml.xml
│ ├── AUTHORS
│ └── THANKS
├── scripts
│ ├── date.lua
│ ├── hello-luaexec.lua
│ ├── chargen.lua
│ ├── discard.lua
│ ├── whatismyip.lua
│ ├── log_ips.sh
│ └── echo.lua
├── COPYING
├── test
│ ├── toupper.lua
│ ├── test-environment.lua
│ └── test-environment.sh
├── INSTALL
└── mkinstalldirs
├── macosx
├── nmap.png
├── pkg_bg.jpg
└── nmap.pmdoc
│ ├── 01nmap-contents.xml
│ ├── 03ncat-contents.xml
│ ├── 04ndiff-contents.xml
│ ├── 05nping-contents.xml
│ ├── 06nmap-update-contents.xml
│ ├── 02zenmap-contents.xml
│ ├── 01nmap.xml
│ ├── 03ncat.xml
│ ├── 04ndiff.xml
│ ├── 05nping.xml
│ ├── 06nmap-update.xml
│ └── 02zenmap.xml
├── mswin32
├── icon1.ico
├── lib
│ ├── Packet.lib
│ └── Wpcap.lib
├── license-format
│ ├── licsed_2
│ ├── licformat.sh
│ └── licsed_1
├── nmap_performance.reg
├── nsis
│ ├── shortcuts.ini
│ └── final.ini
├── resource.h
├── winfix.h
├── python-wrap.bat
├── nmap.rc.in
├── nmap.rc
└── ifaddrlist.h
├── nselib
├── data
│ ├── pixel.gif
│ ├── jdwp-class
│ │ ├── JDWPExecCmd.class
│ │ ├── JDWPSystemInfo.class
│ │ ├── JDWPExecCmd.java
│ │ └── README.txt
│ ├── usernames.lst
│ ├── psexec
│ │ ├── experimental.lua
│ │ ├── backdoor.lua
│ │ ├── README
│ │ └── drives.lua
│ ├── dns-srv-names
│ └── vhosts-default.lst
├── lpeg.luadoc
├── datetime.lua
└── match.lua
├── nping
├── nping-dev
│ ├── Diagram1.dia
│ ├── packetDiagram.png
│ ├── test
│ │ └── caps
│ │ │ ├── tcpconnect_T1.cap
│ │ │ ├── tcpconnect_T2.cap
│ │ │ └── tcpconnect_T3.cap
│ ├── do_valgrind.sh
│ ├── configFiles.txt
│ ├── pythonscripts
│ │ ├── addNpingOpsAttr.py
│ │ ├── TemplateGettersSetters.txt
│ │ ├── addGettersSetters.py
│ │ ├── TemplateNpingOps.txt
│ │ ├── man-section-entry-template.xml
│ │ └── addManSectionEntry.py
│ └── valgrind_supress.txt
├── docs
│ ├── nping-usage.xml
│ ├── npingmanhtml.xml
│ ├── AUTHORS
│ └── leet-nping-ascii-art.txt
├── global_structures.h
└── winfix.h
├── docs
├── man-xlate
│ ├── nmap-man-es.xml
│ ├── nmap-man-fr.xml
│ └── nmap-man-pt_PT.xml
├── nmap-usage.xml
├── README
├── leet-nmap-ascii-art-pc.txt
├── nse-scripts.dtd
├── style
│ └── README
├── leet-nmap-ascii-art-eye.txt
├── nmap-man-enclosure.xml
├── leet-nmap-ascii-art.txt
└── licenses
│ ├── BSD-modified.txt
│ ├── Lua-license.txt
│ ├── MIT
│ ├── BSD-simplified
│ ├── Libdnet-license.txt
│ └── LIBLINEAR-license.txt
├── nsock
├── tests
│ ├── README
│ ├── Makefile.in
│ └── basic.c
├── examples
│ ├── README
│ └── Makefile
└── src
│ └── aclocal.m4
├── nse_dnet.h
├── nse_fs.h
├── nse_lpeg.h
├── BSDmakefile
├── nbase
├── CHANGELOG
├── test
│ └── nmakefile
└── Makefile.in
├── nse_openssl.h
├── nse_pcrelib.h
├── nse_nsock.h
├── README-WIN32
├── todo
├── paulino.calderon.txt
└── dmiller.txt
├── nse_debug.h
├── liblua
├── lua.hpp
├── lapi.h
├── lundump.h
├── lprefix.h
├── lualib.h
└── ldebug.h
├── FPModel.h
├── ndiff
├── COPYING
└── test-scans
│ ├── empty.xml
│ ├── down.xml
│ └── simple.xml
├── INSTALL
├── nse_nmaplib.h
├── liblinear
├── blas
│ ├── Makefile
│ ├── blas.h
│ ├── dscal.c
│ ├── daxpy.c
│ ├── ddot.c
│ └── dnrm2.c
├── linear.def
├── tron.h
├── Makefile.win
├── Makefile
└── COPYRIGHT
├── libpcre
├── AUTHORS
└── pcre-config.in
├── .travis.yml
├── nse_lpeg.cc
├── scripts
├── daytime.nse
├── smtp-strangeport.nse
├── auth-spoof.nse
├── unittest.nse
├── broadcast-versant-locate.nse
├── finger.nse
├── creds-summary.nse
├── stun-version.nse
├── citrix-enum-servers-xml.nse
├── realvnc-auth-bypass.nse
├── stun-info.nse
├── netbus-version.nse
├── rsync-list-modules.nse
├── nat-pmp-info.nse
├── docker-version.nse
├── ncp-serverinfo.nse
├── ajp-headers.nse
├── bjnp-discover.nse
├── ncp-enum-users.nse
├── pop3-capabilities.nse
├── iax2-version.nse
└── cups-queue-info.nse
├── .gitignore
└── libnetutil
└── Makefile.in
/libpcap/VERSION:
--------------------------------------------------------------------------------
1 | 1.7.3
2 |
--------------------------------------------------------------------------------
/libdnet-stripped/include/stamp-h.in:
--------------------------------------------------------------------------------
1 | timestamp
2 |
--------------------------------------------------------------------------------
/zenmap/share/zenmap/config/zenmap_version:
--------------------------------------------------------------------------------
1 | 7.40SVN
2 |
--------------------------------------------------------------------------------
/zenmap/zenmapCore/Version.py:
--------------------------------------------------------------------------------
1 | VERSION = "7.40SVN"
2 |
--------------------------------------------------------------------------------
/nmap-update/default_channel.h:
--------------------------------------------------------------------------------
1 | #define DEFAULT_CHANNEL "6.49"
2 |
--------------------------------------------------------------------------------
/ncat/docs/examples/scripts/http-scan/get.request:
--------------------------------------------------------------------------------
1 | HEAD / HTTP/1.0
2 |
3 |
4 |
--------------------------------------------------------------------------------
/libpcap/scanner.c.top:
--------------------------------------------------------------------------------
1 | #ifdef HAVE_CONFIG_H
2 | #include "config.h"
3 | #endif
4 |
--------------------------------------------------------------------------------
/macosx/nmap.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/macosx/nmap.png
--------------------------------------------------------------------------------
/macosx/pkg_bg.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/macosx/pkg_bg.jpg
--------------------------------------------------------------------------------
/mswin32/icon1.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/mswin32/icon1.ico
--------------------------------------------------------------------------------
/mswin32/lib/Packet.lib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/mswin32/lib/Packet.lib
--------------------------------------------------------------------------------
/mswin32/lib/Wpcap.lib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/mswin32/lib/Wpcap.lib
--------------------------------------------------------------------------------
/ncat/scripts/date.lua:
--------------------------------------------------------------------------------
1 | --Emulates the daytime service (RFC 867).
2 |
3 | print(os.date())
4 |
--------------------------------------------------------------------------------
/nselib/data/pixel.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/nselib/data/pixel.gif
--------------------------------------------------------------------------------
/libpcap/missing/snprintf.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/libpcap/missing/snprintf.c
--------------------------------------------------------------------------------
/libpcap/SUNOS4/nit_if.o.sparc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/libpcap/SUNOS4/nit_if.o.sparc
--------------------------------------------------------------------------------
/libpcap/SUNOS4/nit_if.o.sun3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/libpcap/SUNOS4/nit_if.o.sun3
--------------------------------------------------------------------------------
/libpcap/Win32/Src/inet_aton.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/libpcap/Win32/Src/inet_aton.c
--------------------------------------------------------------------------------
/libpcap/Win32/Src/inet_pton.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/libpcap/Win32/Src/inet_pton.c
--------------------------------------------------------------------------------
/nping/nping-dev/Diagram1.dia:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/nping/nping-dev/Diagram1.dia
--------------------------------------------------------------------------------
/docs/man-xlate/nmap-man-es.xml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/docs/man-xlate/nmap-man-es.xml
--------------------------------------------------------------------------------
/docs/man-xlate/nmap-man-fr.xml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/docs/man-xlate/nmap-man-fr.xml
--------------------------------------------------------------------------------
/docs/man-xlate/nmap-man-pt_PT.xml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/docs/man-xlate/nmap-man-pt_PT.xml
--------------------------------------------------------------------------------
/nping/nping-dev/packetDiagram.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/nping/nping-dev/packetDiagram.png
--------------------------------------------------------------------------------
/nsock/tests/README:
--------------------------------------------------------------------------------
1 | Minimal regression test suite for nsock.
2 |
3 | Usage:
4 | $ make
5 | $ sh ./run_tests.sh
6 |
--------------------------------------------------------------------------------
/libpcap/SUNOS4/nit_if.o.sun4c.4.0.3c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/libpcap/SUNOS4/nit_if.o.sun4c.4.0.3c
--------------------------------------------------------------------------------
/zenmap/share/zenmap/pixmaps/irix_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/zenmap/share/zenmap/pixmaps/irix_32.png
--------------------------------------------------------------------------------
/zenmap/share/zenmap/pixmaps/irix_75.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/zenmap/share/zenmap/pixmaps/irix_75.png
--------------------------------------------------------------------------------
/zenmap/share/zenmap/pixmaps/vl_1_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/zenmap/share/zenmap/pixmaps/vl_1_32.png
--------------------------------------------------------------------------------
/zenmap/share/zenmap/pixmaps/vl_1_75.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/zenmap/share/zenmap/pixmaps/vl_1_75.png
--------------------------------------------------------------------------------
/zenmap/share/zenmap/pixmaps/vl_2_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/zenmap/share/zenmap/pixmaps/vl_2_32.png
--------------------------------------------------------------------------------
/zenmap/share/zenmap/pixmaps/vl_2_75.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/zenmap/share/zenmap/pixmaps/vl_2_75.png
--------------------------------------------------------------------------------
/zenmap/share/zenmap/pixmaps/vl_3_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/zenmap/share/zenmap/pixmaps/vl_3_32.png
--------------------------------------------------------------------------------
/zenmap/share/zenmap/pixmaps/vl_3_75.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/zenmap/share/zenmap/pixmaps/vl_3_75.png
--------------------------------------------------------------------------------
/zenmap/share/zenmap/pixmaps/vl_4_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/zenmap/share/zenmap/pixmaps/vl_4_32.png
--------------------------------------------------------------------------------
/zenmap/share/zenmap/pixmaps/vl_4_75.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/zenmap/share/zenmap/pixmaps/vl_4_75.png
--------------------------------------------------------------------------------
/zenmap/share/zenmap/pixmaps/vl_5_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/zenmap/share/zenmap/pixmaps/vl_5_32.png
--------------------------------------------------------------------------------
/zenmap/share/zenmap/pixmaps/vl_5_75.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/zenmap/share/zenmap/pixmaps/vl_5_75.png
--------------------------------------------------------------------------------
/zenmap/share/zenmap/pixmaps/win_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/zenmap/share/zenmap/pixmaps/win_32.png
--------------------------------------------------------------------------------
/zenmap/share/zenmap/pixmaps/win_75.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/zenmap/share/zenmap/pixmaps/win_75.png
--------------------------------------------------------------------------------
/zenmap/share/zenmap/pixmaps/zenmap.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/zenmap/share/zenmap/pixmaps/zenmap.png
--------------------------------------------------------------------------------
/libpcap/pcap-snf.h:
--------------------------------------------------------------------------------
1 | pcap_t *snf_create(const char *, char *, int *);
2 | int snf_findalldevs(pcap_if_t **devlistp, char *errbuf);
3 |
--------------------------------------------------------------------------------
/nselib/data/jdwp-class/JDWPExecCmd.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/nselib/data/jdwp-class/JDWPExecCmd.class
--------------------------------------------------------------------------------
/zenmap/install_scripts/macosx/zenmap.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/zenmap/install_scripts/macosx/zenmap.icns
--------------------------------------------------------------------------------
/zenmap/share/zenmap/pixmaps/default_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/zenmap/share/zenmap/pixmaps/default_32.png
--------------------------------------------------------------------------------
/zenmap/share/zenmap/pixmaps/default_75.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/zenmap/share/zenmap/pixmaps/default_75.png
--------------------------------------------------------------------------------
/zenmap/share/zenmap/pixmaps/freebsd_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/zenmap/share/zenmap/pixmaps/freebsd_32.png
--------------------------------------------------------------------------------
/zenmap/share/zenmap/pixmaps/freebsd_75.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/zenmap/share/zenmap/pixmaps/freebsd_75.png
--------------------------------------------------------------------------------
/zenmap/share/zenmap/pixmaps/linux_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/zenmap/share/zenmap/pixmaps/linux_32.png
--------------------------------------------------------------------------------
/zenmap/share/zenmap/pixmaps/linux_75.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/zenmap/share/zenmap/pixmaps/linux_75.png
--------------------------------------------------------------------------------
/zenmap/share/zenmap/pixmaps/macosx_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/zenmap/share/zenmap/pixmaps/macosx_32.png
--------------------------------------------------------------------------------
/zenmap/share/zenmap/pixmaps/macosx_75.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/zenmap/share/zenmap/pixmaps/macosx_75.png
--------------------------------------------------------------------------------
/zenmap/share/zenmap/pixmaps/openbsd_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/zenmap/share/zenmap/pixmaps/openbsd_32.png
--------------------------------------------------------------------------------
/zenmap/share/zenmap/pixmaps/openbsd_75.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/zenmap/share/zenmap/pixmaps/openbsd_75.png
--------------------------------------------------------------------------------
/zenmap/share/zenmap/pixmaps/redhat_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/zenmap/share/zenmap/pixmaps/redhat_32.png
--------------------------------------------------------------------------------
/zenmap/share/zenmap/pixmaps/redhat_75.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/zenmap/share/zenmap/pixmaps/redhat_75.png
--------------------------------------------------------------------------------
/zenmap/share/zenmap/pixmaps/solaris_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/zenmap/share/zenmap/pixmaps/solaris_32.png
--------------------------------------------------------------------------------
/zenmap/share/zenmap/pixmaps/solaris_75.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/zenmap/share/zenmap/pixmaps/solaris_75.png
--------------------------------------------------------------------------------
/zenmap/share/zenmap/pixmaps/throbber.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/zenmap/share/zenmap/pixmaps/throbber.gif
--------------------------------------------------------------------------------
/zenmap/share/zenmap/pixmaps/throbber.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/zenmap/share/zenmap/pixmaps/throbber.png
--------------------------------------------------------------------------------
/zenmap/share/zenmap/pixmaps/ubuntu_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/zenmap/share/zenmap/pixmaps/ubuntu_32.png
--------------------------------------------------------------------------------
/zenmap/share/zenmap/pixmaps/ubuntu_75.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/zenmap/share/zenmap/pixmaps/ubuntu_75.png
--------------------------------------------------------------------------------
/zenmap/share/zenmap/pixmaps/unknown_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/zenmap/share/zenmap/pixmaps/unknown_32.png
--------------------------------------------------------------------------------
/zenmap/share/zenmap/pixmaps/unknown_75.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/zenmap/share/zenmap/pixmaps/unknown_75.png
--------------------------------------------------------------------------------
/libpcap/pcap-dbus.h:
--------------------------------------------------------------------------------
1 | pcap_t *dbus_create(const char *, char *, int *);
2 | int dbus_findalldevs(pcap_if_t **devlistp, char *errbuf);
3 |
--------------------------------------------------------------------------------
/macosx/nmap.pmdoc/01nmap-contents.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/macosx/nmap.pmdoc/03ncat-contents.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/nping/nping-dev/test/caps/tcpconnect_T1.cap:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/nping/nping-dev/test/caps/tcpconnect_T1.cap
--------------------------------------------------------------------------------
/nping/nping-dev/test/caps/tcpconnect_T2.cap:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/nping/nping-dev/test/caps/tcpconnect_T2.cap
--------------------------------------------------------------------------------
/nping/nping-dev/test/caps/tcpconnect_T3.cap:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/nping/nping-dev/test/caps/tcpconnect_T3.cap
--------------------------------------------------------------------------------
/nselib/data/jdwp-class/JDWPSystemInfo.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/nselib/data/jdwp-class/JDWPSystemInfo.class
--------------------------------------------------------------------------------
/zenmap/install_scripts/windows/nmap-eye.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/zenmap/install_scripts/windows/nmap-eye.ico
--------------------------------------------------------------------------------
/libpcap/ChmodBPF/StartupParameters.plist:
--------------------------------------------------------------------------------
1 | {
2 | Description = "Change BPF permissions";
3 | Provides = ("ChmodBPF");
4 | }
5 |
--------------------------------------------------------------------------------
/macosx/nmap.pmdoc/04ndiff-contents.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/macosx/nmap.pmdoc/05nping-contents.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/ncat/docs/examples/scripts/http-scan/iplist:
--------------------------------------------------------------------------------
1 | www.google.com
2 | www.microsoft.com
3 | www.apache.org
4 | www.freebsd.org
5 | www.apple.com
6 |
--------------------------------------------------------------------------------
/nse_dnet.h:
--------------------------------------------------------------------------------
1 | #ifndef NMAP_LUA_DNET_H
2 | #define NMAP_LUA_DNET_H
3 |
4 | LUALIB_API int luaopen_dnet (lua_State *L);
5 |
6 | #endif
7 |
8 |
--------------------------------------------------------------------------------
/zenmap/install_scripts/macosx/gtkrc:
--------------------------------------------------------------------------------
1 | # Use Lucida Grande, the face used by other OS X applications.
2 |
3 | gtk-font-name="Lucida Grande"
4 |
--------------------------------------------------------------------------------
/zenmap/share/zenmap/pixmaps/radialnet/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/zenmap/share/zenmap/pixmaps/radialnet/logo.png
--------------------------------------------------------------------------------
/nse_fs.h:
--------------------------------------------------------------------------------
1 | #ifndef NSE_FS
2 | #define NSE_FS
3 |
4 | #define LFSLIBNAME "lfs"
5 | LUALIB_API int luaopen_lfs (lua_State *L);
6 |
7 | #endif
8 |
9 |
--------------------------------------------------------------------------------
/nselib/data/usernames.lst:
--------------------------------------------------------------------------------
1 | root
2 | admin
3 | administrator
4 | webadmin
5 | sysadmin
6 | netadmin
7 | guest
8 | user
9 | web
10 | test
11 |
--------------------------------------------------------------------------------
/zenmap/share/zenmap/pixmaps/radialnet/border.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/zenmap/share/zenmap/pixmaps/radialnet/border.png
--------------------------------------------------------------------------------
/zenmap/share/zenmap/pixmaps/radialnet/padlock.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/zenmap/share/zenmap/pixmaps/radialnet/padlock.png
--------------------------------------------------------------------------------
/zenmap/share/zenmap/pixmaps/radialnet/router.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/zenmap/share/zenmap/pixmaps/radialnet/router.png
--------------------------------------------------------------------------------
/zenmap/share/zenmap/pixmaps/radialnet/switch.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/zenmap/share/zenmap/pixmaps/radialnet/switch.png
--------------------------------------------------------------------------------
/nse_lpeg.h:
--------------------------------------------------------------------------------
1 | #ifndef LPEG
2 |
3 | #define LPEG
4 | #define LPEGLIBNAME "lpeg"
5 |
6 | LUALIB_API int luaopen_lpeg (lua_State *L);
7 |
8 | #endif
9 |
--------------------------------------------------------------------------------
/zenmap/share/zenmap/locale/de/LC_MESSAGES/zenmap.mo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/zenmap/share/zenmap/locale/de/LC_MESSAGES/zenmap.mo
--------------------------------------------------------------------------------
/zenmap/share/zenmap/locale/es/LC_MESSAGES/zenmap.mo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/zenmap/share/zenmap/locale/es/LC_MESSAGES/zenmap.mo
--------------------------------------------------------------------------------
/zenmap/share/zenmap/locale/fr/LC_MESSAGES/zenmap.mo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/zenmap/share/zenmap/locale/fr/LC_MESSAGES/zenmap.mo
--------------------------------------------------------------------------------
/zenmap/share/zenmap/locale/hi/LC_MESSAGES/zenmap.mo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/zenmap/share/zenmap/locale/hi/LC_MESSAGES/zenmap.mo
--------------------------------------------------------------------------------
/zenmap/share/zenmap/locale/hr/LC_MESSAGES/zenmap.mo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/zenmap/share/zenmap/locale/hr/LC_MESSAGES/zenmap.mo
--------------------------------------------------------------------------------
/zenmap/share/zenmap/locale/it/LC_MESSAGES/zenmap.mo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/zenmap/share/zenmap/locale/it/LC_MESSAGES/zenmap.mo
--------------------------------------------------------------------------------
/zenmap/share/zenmap/locale/ja/LC_MESSAGES/zenmap.mo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/zenmap/share/zenmap/locale/ja/LC_MESSAGES/zenmap.mo
--------------------------------------------------------------------------------
/zenmap/share/zenmap/locale/pl/LC_MESSAGES/zenmap.mo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/zenmap/share/zenmap/locale/pl/LC_MESSAGES/zenmap.mo
--------------------------------------------------------------------------------
/zenmap/share/zenmap/locale/ru/LC_MESSAGES/zenmap.mo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/zenmap/share/zenmap/locale/ru/LC_MESSAGES/zenmap.mo
--------------------------------------------------------------------------------
/zenmap/share/zenmap/locale/zh/LC_MESSAGES/zenmap.mo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/zenmap/share/zenmap/locale/zh/LC_MESSAGES/zenmap.mo
--------------------------------------------------------------------------------
/zenmap/share/zenmap/pixmaps/radialnet/firewall.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/zenmap/share/zenmap/pixmaps/radialnet/firewall.png
--------------------------------------------------------------------------------
/zenmap/share/zenmap/pixmaps/radialnet/wireless.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/zenmap/share/zenmap/pixmaps/radialnet/wireless.png
--------------------------------------------------------------------------------
/macosx/nmap.pmdoc/06nmap-update-contents.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/zenmap/share/zenmap/locale/pt_BR/LC_MESSAGES/zenmap.mo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adon90/nmap/master/zenmap/share/zenmap/locale/pt_BR/LC_MESSAGES/zenmap.mo
--------------------------------------------------------------------------------
/libpcap/scanner.h:
--------------------------------------------------------------------------------
1 | /* This is generated by runlex.sh. Do not edit it. */
2 |
3 | #ifndef YY_DECL
4 | #define YY_DECL int yylex(void)
5 | #endif
6 | YY_DECL;
7 |
--------------------------------------------------------------------------------
/docs/nmap-usage.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/macosx/nmap.pmdoc/02zenmap-contents.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/ncat/docs/examples/logs/ascii-output:
--------------------------------------------------------------------------------
1 | HELO xxx.xxx.xxx
2 | 220 smtp.google.com ESMTP
3 | 250 smtp.google.com Hello xxx.xxx.xxx [xxx.xxx.xxx.xxx], pleased to meet you
4 |
--------------------------------------------------------------------------------
/nping/docs/nping-usage.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/BSDmakefile:
--------------------------------------------------------------------------------
1 | # $Id$
2 | # Redirect BSD make to GNU gmake for convenience
3 |
4 | USE_GNU:
5 | @gmake $(.TARGETS)
6 |
7 | $(.TARGETS): USE_GNU
8 |
9 | .PHONY: USE_GNU
10 |
--------------------------------------------------------------------------------
/docs/README:
--------------------------------------------------------------------------------
1 | Here is some documentation for Nmap, but these files are much less
2 | comprehensive than what you'll find at the actual Nmap documentation
3 | site ( https://nmap.org ).
4 |
--------------------------------------------------------------------------------
/nbase/CHANGELOG:
--------------------------------------------------------------------------------
1 |
2 | -- Added snprintf.c, inet_aton.c, inet_pton.c, and inet_ntop.c from
3 | tcpdump-2000.09.17 ( www.tcpdump.org)
4 |
5 | -- Nbase library initially created (9/17/00)
--------------------------------------------------------------------------------
/nse_openssl.h:
--------------------------------------------------------------------------------
1 | #ifndef OPENSSLLIB
2 | #define OPENSSLLIB
3 |
4 | #define OPENSSLLIBNAME "openssl"
5 |
6 | LUALIB_API int luaopen_openssl(lua_State *L);
7 |
8 | #endif
9 |
10 |
--------------------------------------------------------------------------------
/nse_pcrelib.h:
--------------------------------------------------------------------------------
1 | #ifndef NSE_PCRELIB
2 | #define NSE_PCRELIB
3 |
4 | #define NSE_PCRELIBNAME "pcre"
5 |
6 | LUALIB_API int luaopen_pcrelib (lua_State *L);
7 |
8 | #endif
9 |
10 |
--------------------------------------------------------------------------------
/ncat/COPYING:
--------------------------------------------------------------------------------
1 | Ncat is distributed under the same license terms as Nmap. See the
2 | COPYING file in the Nmap tarball, the man page legal section, or
3 | https://nmap.org/man/man-legal.html .
4 |
--------------------------------------------------------------------------------
/zenmap/COPYING:
--------------------------------------------------------------------------------
1 | Zenmap is distributed under the same license terms as Nmap. See the
2 | COPYING file in the Nmap tarball, the man page legal section, or
3 | https://nmap.org/man/man-legal.html .
4 |
--------------------------------------------------------------------------------
/ncat/scripts/hello-luaexec.lua:
--------------------------------------------------------------------------------
1 | --This is a --lua-exec "Hello world" example. In order to send to a client,
2 | --all you need to do is output it to the standard output.
3 |
4 | print "Hello, world!"
5 |
--------------------------------------------------------------------------------
/libdnet-stripped/Makefile.am.common:
--------------------------------------------------------------------------------
1 | ## $Id: Makefile.am.common 623 2006-01-19 06:09:27Z dugsong $
2 |
3 | AUTOMAKE_OPTIONS = foreign no-dependencies
4 |
5 | AM_CPPFLAGS = -I$(top_srcdir)/include
6 |
7 |
--------------------------------------------------------------------------------
/nse_nsock.h:
--------------------------------------------------------------------------------
1 | #ifndef NMAP_LUA_NSOCK_H
2 | #define NMAP_LUA_NSOCK_H
3 |
4 | extern "C" {
5 | #include "lua.h"
6 | }
7 |
8 | LUALIB_API int luaopen_nsock (lua_State *);
9 |
10 | #endif
11 |
12 |
--------------------------------------------------------------------------------
/ncat/docs/examples/scripts/http-proxy:
--------------------------------------------------------------------------------
1 | NCAT_PATH=../../..
2 | PROXY_HOST=www.cnn.com:80
3 | PROXY_AUTH=user:pass
4 |
5 | $NCAT_PATH/ncat --http-proxy "$PROXY_HOST" --proxy-auth "$PROXY_AUTH" localhost 3128
6 |
--------------------------------------------------------------------------------
/README-WIN32:
--------------------------------------------------------------------------------
1 | Details on installation, compilation, and limitation of the Nmap
2 | Security Scanner on the Windows platform is now available in the Nmap
3 | Installation Guide at https://nmap.org/install/ .
4 |
5 |
--------------------------------------------------------------------------------
/todo/paulino.calderon.txt:
--------------------------------------------------------------------------------
1 | TODO:
2 |
3 | -Update wiki page.
4 | -Fix: http-enum does not work on windows. UNIX paths are hardcoded into the script. It also fails when running from a directory with spaces in the name.
--------------------------------------------------------------------------------
/ncat/scripts/chargen.lua:
--------------------------------------------------------------------------------
1 | --chargen.lua - implements the RFC 864 CHARGEN service which basically spams
2 | --the remote user until he decides to close the connection.
3 |
4 | while true do
5 | print "chargen"
6 | end
7 |
8 |
--------------------------------------------------------------------------------
/nse_debug.h:
--------------------------------------------------------------------------------
1 | #ifndef NSE_DEBUG
2 | #define NSE_DEBUG
3 |
4 | void value_dump(lua_State *L, int i, int depth_limit);
5 | void stack_dump(lua_State *L);
6 | void lua_state_dump(lua_State *L);
7 |
8 | #endif
9 |
10 |
--------------------------------------------------------------------------------
/mswin32/license-format/licsed_2:
--------------------------------------------------------------------------------
1 |
2 | # collapse whitespace
3 | s@ @ @g
4 | s@ $@@g
5 |
6 | 2d
7 |
8 | # reintroduce bullets
9 | s@oSDFGHbullet@o @g
10 |
11 | # reintroduce sentence spacing
12 | s@SDFGHJdblspace@ @g
13 |
--------------------------------------------------------------------------------
/ncat/scripts/discard.lua:
--------------------------------------------------------------------------------
1 | --This script reads data from the standard input and discards them.
2 |
3 | while true do
4 |
5 | data = io.stdin:read(512)
6 |
7 | if data == nil then
8 | break
9 | end
10 |
11 | end
12 |
--------------------------------------------------------------------------------
/ncat/scripts/whatismyip.lua:
--------------------------------------------------------------------------------
1 | --A "what is my IP" service code. Since most web browsers put up with servers
2 | --not sending proper HTTP headers, you can simply query the service with it.
3 |
4 | print(os.getenv "NCAT_REMOTE_ADDR")
5 |
--------------------------------------------------------------------------------
/ncat/scripts/log_ips.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | LOGFILE="log_ips.log"
4 |
5 | MSG="[`date`] Incoming connection from $NCAT_REMOTE_ADDR:$NCAT_REMOTE_PORT"
6 |
7 | echo $MSG >&2
8 | echo $MSG >> $LOGFILE
9 |
10 | echo "Yeah, hi."
11 |
--------------------------------------------------------------------------------
/mswin32/nmap_performance.reg:
--------------------------------------------------------------------------------
1 | REGEDIT4
2 | [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters]
3 | "MaxUserPort"=dword:0000fffe
4 | "TcpTimedWaitDelay"=dword:0000001e
5 | "StrictTimeWaitSeqCheck"=dword:00000001
6 |
7 |
--------------------------------------------------------------------------------
/libdnet-stripped/include/Makefile.am:
--------------------------------------------------------------------------------
1 | ## $Id: Makefile.am 294 2002-02-20 19:05:08Z dugsong $
2 |
3 | include $(top_srcdir)/Makefile.am.common
4 |
5 | include_HEADERS = dnet.h
6 |
7 | SUBDIRS = dnet
8 |
9 | EXTRA_DIST = err.h queue.h
10 |
--------------------------------------------------------------------------------
/liblua/lua.hpp:
--------------------------------------------------------------------------------
1 | // lua.hpp
2 | // Lua header files for C++
3 | // <> not supplied automatically because Lua also compiles as C++
4 |
5 | extern "C" {
6 | #include "lua.h"
7 | #include "lualib.h"
8 | #include "lauxlib.h"
9 | }
10 |
--------------------------------------------------------------------------------
/FPModel.h:
--------------------------------------------------------------------------------
1 | #ifndef _FPMODEL_H_
2 | #define _FPMODEL_H_
3 |
4 | extern struct model FPModel;
5 | extern double FPscale[][2];
6 | extern double FPmean[][695];
7 | extern double FPvariance[][695];
8 | extern FingerMatch FPmatches[];
9 |
10 | #endif
11 |
--------------------------------------------------------------------------------
/ndiff/COPYING:
--------------------------------------------------------------------------------
1 | Copyright 2008 Insecure.Com LLC
2 | Ndiff is distributed under the same license as Nmap. See the file COPYING in
3 | the Nmap source distribution or https://nmap.org/data/COPYING. See
4 | https://nmap.org/book/man-legal.html for more details.
5 |
--------------------------------------------------------------------------------
/INSTALL:
--------------------------------------------------------------------------------
1 | Ideally, you should be able to just type:
2 |
3 | ./configure
4 | make
5 | make install
6 |
7 | For far more in-depth compilation, installation, and removal notes,
8 | read the Nmap Install Guide at https://nmap.org/book/install.html.
9 |
10 |
11 |
--------------------------------------------------------------------------------
/libpcap/pcap-sita.h:
--------------------------------------------------------------------------------
1 | /*
2 | * pcap-sita.h: Packet capture interface for SITA WAN devices
3 | *
4 | * Authors: Fulko Hew (fulko.hew@sita.aero) (+1 905 6815570);
5 | */
6 |
7 | extern int acn_parse_hosts_file(char *errbuf);
8 | extern int acn_findalldevs(char *errbuf);
9 |
--------------------------------------------------------------------------------
/nping/nping-dev/do_valgrind.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | reset && sudo valgrind --leak-check=full --show-reachable=yes --track-fds=yes --read-var-info=yes --sim-hints=lax-ioctls --track-origins=yes --malloc-fill=aa --suppressions=valgrind_supress.txt -v -v $1 $2 $3 $4 $5 $6 $7 $8 $9
3 |
--------------------------------------------------------------------------------
/nping/nping-dev/configFiles.txt:
--------------------------------------------------------------------------------
1 | These are the configure-related files that need to be distributed with Nping:
2 |
3 | configFiles.txt
4 | config.guess
5 | config.sub
6 | configure
7 | configure.ac
8 | depcomp
9 | ltmain.sh
10 | Makefile.in
11 | missing
12 | shtool
13 |
--------------------------------------------------------------------------------
/ncat/docs/examples/scripts/README:
--------------------------------------------------------------------------------
1 | These are various scripts that demonstrate some
2 | potential usage for Ncat.
3 |
4 | If you find a neat usage for Ncat and possibly
5 | write a few lines of code to automate something,
6 | then please email them over to Chris Gibson (chris@linuxops.net)
7 |
--------------------------------------------------------------------------------
/ncat/test/toupper.lua:
--------------------------------------------------------------------------------
1 | --Emulates the RFC 862 echo service, behaving like Unix's "cat" tool.
2 |
3 | while true do
4 |
5 | data = io.stdin:read(1)
6 |
7 | if data == nil then
8 | break
9 | end
10 |
11 | io.write(data:upper())
12 | io.flush()
13 |
14 | end
15 |
--------------------------------------------------------------------------------
/ncat/docs/examples/scripts/http-scan/scan-example:
--------------------------------------------------------------------------------
1 | NCAT_PATH=../../../..
2 | if [ -a "$NCAT_PATH/ncat" ]
3 | then
4 | for addr in `cat iplist`; do $NCAT_PATH/ncat --disable-eof-exit $addr 80 < get.request; done;
5 | else
6 | echo "Ncat is not buit. Please build Ncat before you use these scripts";
7 | fi
8 |
--------------------------------------------------------------------------------
/ncat/test/test-environment.lua:
--------------------------------------------------------------------------------
1 | #!/usr/bin/lua
2 |
3 | function print_env(v)
4 | print(("%s=%s"):format(v, os.getenv(v)))
5 | end
6 |
7 | print_env("NCAT_REMOTE_ADDR")
8 | print_env("NCAT_REMOTE_PORT")
9 |
10 | print_env("NCAT_LOCAL_ADDR")
11 | print_env("NCAT_LOCAL_PORT")
12 |
13 | print_env("NCAT_PROTO")
14 |
--------------------------------------------------------------------------------
/libdnet-stripped/include/dnet/Makefile.am:
--------------------------------------------------------------------------------
1 | ## $Id: Makefile.am 525 2004-09-10 02:35:51Z dugsong $
2 |
3 | include $(top_srcdir)/Makefile.am.common
4 |
5 | dnetincludedir = $(includedir)/dnet
6 |
7 | dnetinclude_HEADERS = addr.h arp.h blob.h eth.h fw.h icmp.h intf.h ip.h \
8 | ip6.h os.h rand.h route.h tcp.h tun.h udp.h sctp.h
9 |
--------------------------------------------------------------------------------
/mswin32/nsis/shortcuts.ini:
--------------------------------------------------------------------------------
1 | [Settings]
2 | NumFields=2
3 |
4 | [Field 1]
5 | Type=CheckBox
6 | Left=10
7 | Right=-1
8 | Top=20
9 | Bottom=28
10 | Text=Desktop Icon
11 | State=1
12 |
13 | [Field 2]
14 | Type=CheckBox
15 | Left=10
16 | Right=-1
17 | Top=10
18 | Bottom=18
19 | Text=Start Menu Folder
20 | State=1
21 |
--------------------------------------------------------------------------------
/zenmap/radialnet/README:
--------------------------------------------------------------------------------
1 | To start the application you may just double-click the radialnet.py file or
2 | start it with the following command:
3 |
4 | $ python radialnet.py
5 |
6 | To view command line list of arguments type '--help':
7 |
8 | $ python radialnet.py --help
9 |
10 | Att, João Medeiros .
11 |
--------------------------------------------------------------------------------
/nse_nmaplib.h:
--------------------------------------------------------------------------------
1 | #ifndef NSE_NMAPLIB
2 | #define NSE_NMAPLIB
3 |
4 | #define NSE_NMAPLIBNAME "nmap"
5 |
6 | class Target;
7 | class Port;
8 |
9 | int luaopen_nmap(lua_State* l);
10 | void set_hostinfo(lua_State* l, Target* currenths);
11 | void set_portinfo(lua_State* l, const Target *target, const Port* port);
12 |
13 | #endif
14 |
15 |
--------------------------------------------------------------------------------
/ncat/test/test-environment.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | # Print the contents of all environment variables set by Ncat.
4 |
5 | echo "NCAT_REMOTE_ADDR=$NCAT_REMOTE_ADDR"
6 | echo "NCAT_REMOTE_PORT=$NCAT_REMOTE_PORT"
7 |
8 | echo "NCAT_LOCAL_ADDR=$NCAT_LOCAL_ADDR"
9 | echo "NCAT_LOCAL_PORT=$NCAT_LOCAL_PORT"
10 |
11 | echo "NCAT_PROTO=$NCAT_PROTO"
12 |
--------------------------------------------------------------------------------
/libdnet-stripped/src/Makefile.am:
--------------------------------------------------------------------------------
1 | ## $Id: Makefile.am 625 2006-01-19 06:11:01Z dugsong $
2 |
3 | include $(top_srcdir)/Makefile.am.common
4 |
5 | lib_LTLIBRARIES = libdnet.la
6 |
7 | libdnet_la_SOURCES = addr-util.c addr.c blob.c ip-util.c ip6.c rand.c
8 |
9 | libdnet_la_LIBADD = @LTLIBOBJS@
10 |
11 | libdnet_la_LDFLAGS = -version-info 1:1:0
12 |
--------------------------------------------------------------------------------
/ncat/docs/ncatguidehtml.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 | ]>
6 |
7 |
8 |
9 | Ncat Users' Guide
10 |
11 | &ncat;
12 |
13 |
--------------------------------------------------------------------------------
/nsock/examples/README:
--------------------------------------------------------------------------------
1 | $Id$
2 |
3 | Here are some example programs, they weren't really written to
4 | present nice and elegant use of the nsock library. They were
5 | actually written for my testing purposes during development. So don't
6 | be surprised if you see code that looks strange, or even downright
7 | evil -- I'm testing the code reliability.
8 |
9 | -Fyodor
--------------------------------------------------------------------------------
/zenmap/install_scripts/unix/zenmap.desktop:
--------------------------------------------------------------------------------
1 | [Desktop Entry]
2 | Name=Zenmap
3 | GenericName=GUI Port Scanner
4 | TryExec=zenmap
5 | Exec=zenmap %F
6 | Terminal=false
7 | Icon=zenmap
8 | Type=Application
9 | Categories=Application;Network;Security;
10 | Comment=A cross-platform GUI for the Nmap Security Scanner.
11 | Keywords=network;scan;scanner;IP;security;
12 |
--------------------------------------------------------------------------------
/ncat/docs/ncat-ascii-art.txt:
--------------------------------------------------------------------------------
1 | . .
2 | \`-"'"-'/
3 | } 6 6 {
4 | ==. Y ,==
5 | /^^^\ .
6 | / \ ) Ncat: A modern interpretation of classic Netcat
7 | ( )-( )/
8 | -""---""--- /
9 | / Ncat \_/
10 | ( ____
11 | \_.=|____E
12 |
--------------------------------------------------------------------------------
/zenmap/install_scripts/unix/zenmap-root.desktop:
--------------------------------------------------------------------------------
1 | [Desktop Entry]
2 | Name=Zenmap (as root)
3 | GenericName=GUI Port Scanner
4 | TryExec=su-to-zenmap.sh
5 | Exec=su-to-zenmap.sh %F
6 | Terminal=false
7 | Icon=zenmap
8 | Type=Application
9 | Categories=Application;Network;Security;
10 | Comment=A cross-platform GUI for the Nmap Security Scanner.
11 | Keywords=network;scan;scanner;IP;security;
12 |
--------------------------------------------------------------------------------
/mswin32/nsis/final.ini:
--------------------------------------------------------------------------------
1 | [Settings]
2 | NumFields=2
3 | BackEnabled=0
4 | NextButtonText=Finish
5 |
6 | [Field 1]
7 | Type=Label
8 | Left=10
9 | Right=-1
10 | Top=10
11 | Bottom=18
12 | Text=Nmap has been installed on your computer.
13 | State=0
14 |
15 | [Field 2]
16 | Type=Label
17 | Left=10
18 | Right=-1
19 | Top=30
20 | Bottom=38
21 | Text=Click Finish to close this wizard.
22 | State=0
23 |
24 |
--------------------------------------------------------------------------------
/ncat/docs/ncatmanhtml.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 | ]>
7 |
8 |
9 | Ncat Reference Guide (Man Page)
10 |
11 | &refguide;
12 |
13 |
--------------------------------------------------------------------------------
/libdnet-stripped/Makefile.am:
--------------------------------------------------------------------------------
1 | ## $Id: Makefile.am 618 2006-01-15 06:42:19Z dugsong $
2 |
3 | include $(top_srcdir)/Makefile.am.common
4 |
5 | SUBDIRS = include src
6 |
7 | bin_SCRIPTS = dnet-config
8 |
9 | EXTRA_DIST = LICENSE Makefile.am.common acconfig.h
10 |
11 | CLEANFILES = dnet-config
12 |
13 | aux_dir = config
14 |
15 | AUX_DIST = $(aux_dir)/acinclude.m4
16 |
17 | ACLOCAL_AMFLAGS = -I config
18 |
--------------------------------------------------------------------------------
/nselib/lpeg.luadoc:
--------------------------------------------------------------------------------
1 | ---
2 | -- Parsing Expression Grammars for Lua
3 | --
4 | -- LPeg is a powerful pattern matching and grammar parsing library. The full
5 | -- documentation can be found at
6 | -- http://www.inf.puc-rio.br/~roberto/lpeg/lpeg.html
7 | --
8 | -- @author Roberto Ierusalimschy
9 | -- @license Copyright 2007, Lua.org & PUC-Rio (https://svn.nmap.org/nmap/docs/licenses/MIT)
10 | module "lpeg"
11 |
--------------------------------------------------------------------------------
/liblinear/blas/Makefile:
--------------------------------------------------------------------------------
1 | AR = ar
2 | RANLIB = ranlib
3 |
4 | HEADERS = blas.h blas.h blasp.h
5 | FILES = dnrm2.o daxpy.o ddot.o dscal.o
6 |
7 | CFLAGS = $(OPTFLAGS)
8 | FFLAGS = $(OPTFLAGS)
9 |
10 | blas: $(FILES) $(HEADERS)
11 | $(AR) rcv blas.a $(FILES)
12 | $(RANLIB) blas.a
13 |
14 | clean:
15 | - rm -f *.o
16 | - rm -f *.a
17 | - rm -f *~
18 |
19 | .c.o:
20 | $(CC) $(CFLAGS) -c $*.c
21 |
22 |
23 |
--------------------------------------------------------------------------------
/ncat/scripts/echo.lua:
--------------------------------------------------------------------------------
1 | --Emulates the RFC 862 echo service, behaving like Unix's "cat" tool.
2 |
3 | while true do
4 |
5 | --We're reading in 1-byte chunks because calls like io.stdin:read(512) would
6 | --wait for full 512 bytes of data before continuing.
7 | data = io.stdin:read(1)
8 |
9 | if data == nil then
10 | break
11 | end
12 |
13 | io.stdout:write(data)
14 | io.stdout:flush()
15 |
16 | end
17 |
--------------------------------------------------------------------------------
/nping/nping-dev/pythonscripts/addNpingOpsAttr.py:
--------------------------------------------------------------------------------
1 | methname = raw_input("Method name: ")
2 | attrname = raw_input("Attr name: ")
3 | attrtype = raw_input("Attr type: ")
4 |
5 |
6 | o = open("Output.txt","a")
7 | for line in open("TemplateNpingOps.txt"):
8 | line = line.replace("ATTRNAME",attrname)
9 | line = line.replace("METHNAME",methname)
10 | line = line.replace("TYPE",attrtype)
11 | o.write(line)
12 | o.close()
13 |
--------------------------------------------------------------------------------
/liblinear/linear.def:
--------------------------------------------------------------------------------
1 | LIBRARY liblinear
2 | EXPORTS
3 | train @1
4 | cross_validation @2
5 | save_model @3
6 | load_model @4
7 | get_nr_feature @5
8 | get_nr_class @6
9 | get_labels @7
10 | predict_values @8
11 | predict @9
12 | predict_probability @10
13 | free_and_destroy_model @11
14 | free_model_content @12
15 | destroy_param @13
16 | check_parameter @14
17 | check_probability_model @15
18 | set_print_string_function @16
19 |
--------------------------------------------------------------------------------
/nping/docs/npingmanhtml.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | ]>
8 |
9 |
10 | Nping Reference Guide (Man Page)
11 |
12 | &refguide;
13 |
14 |
--------------------------------------------------------------------------------
/zenmap/test/diff_test1:
--------------------------------------------------------------------------------
1 | # nmap 3.75 scan initiated Sat Jul 16 11:29:44 2005 as: nmap -oX /tmp/tmpXBsQcL -oN /tmp/tmpepjBH8 10.0.0.138
2 | Interesting ports on SpeedTouch.canopo (10.0.0.138):
3 | (The 1659 ports scanned but not shown below are in state: closed)
4 | PORT STATE SERVICE
5 | 21/tcp open ftp
6 | 23/tcp open telnet
7 | 80/tcp open http
8 | 1723/tcp open pptp
9 |
10 | # Nmap run completed at Sat Jul 16 11:29:46 2005 -- 1 IP address (1 host up) scanned in 2.258 seconds
11 |
--------------------------------------------------------------------------------
/docs/leet-nmap-ascii-art-pc.txt:
--------------------------------------------------------------------------------
1 |
2 | :================:
3 | /||# nmap -A _ ||
4 | / || ||
5 | | || ||
6 | \ || ||
7 | ==================
8 | ........... / \.............
9 | :\ ############ \
10 | : ---------------------------------
11 | : | * |__________|| :::::::::: |
12 | \ | | || ....... |
13 | --------------------------------- 8
14 |
15 |
--------------------------------------------------------------------------------
/libdnet-stripped/README:
--------------------------------------------------------------------------------
1 |
2 | libdnet
3 | -------
4 |
5 | libdnet provides a simplified, portable interface to several low-level
6 | networking routines, including network address manipulation, kernel
7 | arp(4) cache and route(4) table lookup and manipulation, network
8 | firewalling, network interface lookup and manipulation, IP tunnelling,
9 | and raw IP packet and Ethernet frame transmission.
10 |
11 | WWW: http://libdnet.sourceforge.net/
12 |
13 | $Id: README 578 2005-02-14 21:00:17Z dugsong $
14 |
--------------------------------------------------------------------------------
/libpcre/AUTHORS:
--------------------------------------------------------------------------------
1 | THE MAIN PCRE LIBRARY
2 | ---------------------
3 |
4 | Written by: Philip Hazel
5 | Email local part: ph10
6 | Email domain: cam.ac.uk
7 |
8 | University of Cambridge Computing Service,
9 | Cambridge, England.
10 |
11 | Copyright (c) 1997-2008 University of Cambridge
12 | All rights reserved
13 |
14 |
15 | THE C++ WRAPPER LIBRARY
16 | -----------------------
17 |
18 | Written by: Google Inc.
19 |
20 | Copyright (c) 2007-2008 Google Inc
21 | All rights reserved
22 |
23 | ####
24 |
--------------------------------------------------------------------------------
/mswin32/resource.h:
--------------------------------------------------------------------------------
1 | //{{NO_DEPENDENCIES}}
2 | // Microsoft Developer Studio generated include file.
3 | // Used by nmap.rc
4 | //
5 | #define IDI_NMAP 101
6 |
7 | // Next default values for new objects
8 | //
9 | #ifdef APSTUDIO_INVOKED
10 | #ifndef APSTUDIO_READONLY_SYMBOLS
11 | #define _APS_NEXT_RESOURCE_VALUE 102
12 | #define _APS_NEXT_COMMAND_VALUE 40001
13 | #define _APS_NEXT_CONTROL_VALUE 1000
14 | #define _APS_NEXT_SYMED_VALUE 101
15 | #endif
16 | #endif
17 |
--------------------------------------------------------------------------------
/nbase/test/nmakefile:
--------------------------------------------------------------------------------
1 | # Build nbase in Visual C++ (so ..\nbase.lib exists). Then open a Visual
2 | # Studio Command Prompt (from the Start menu), and run:
3 | # nmake /F nmakefile
4 |
5 | !include
6 |
7 | all: test-escape_windows_command_arg
8 |
9 | .c.obj:
10 | $(cc) /c /D WIN32=1 /I .. $*.c
11 |
12 | test-escape_windows_command_arg: test-escape_windows_command_arg.obj
13 | $(link) /OUT:test-escape_windows_command_arg.exe test-escape_windows_command_arg.obj /NODEFAULTLIB:LIBCMT ..\nbase.lib shell32.lib
14 |
--------------------------------------------------------------------------------
/docs/nse-scripts.dtd:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/libpcap/org.tcpdump.chmod_bpf.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Label
6 | org.tcpdump.chmod_bpf
7 | RunAtLoad
8 |
9 | Program
10 | /usr/local/bin/chmod_bpf
11 | ProgramArguments
12 |
13 | /usr/local/bin/chmod_bpf
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/docs/style/README:
--------------------------------------------------------------------------------
1 | lua-format:
2 | This bash script uses lua-format.lua to indent and style Lua code
3 | (including NSE scripts and libraries). You can use this to make
4 | your script conform to the style guidelines for NSE.
5 |
6 | In order to run the script, you need Lua 5.1 or Lua 5.2 installed as well
7 | as LPeg. LPeg is a parsing expression grammar library which is basically a
8 | far more powerful pattern matching utility than regular expressions.
9 | On Debian:
10 | apt-get install lua5.2 lua-lpeg
11 |
--------------------------------------------------------------------------------
/ncat/docs/examples/README:
--------------------------------------------------------------------------------
1 | /examples/scripts
2 | ~~~~~~~~~~~~~~~~~
3 | These are a set of small scripts to further demonstrate some
4 | uses for Ncat. You *will* have to change some values yourself,
5 | such as in "http-proxy", if your proxy server requires authorization,
6 | you'll have to add your own authorization information.
7 |
8 |
9 | /examples/logs/
10 | ~~~~~~~~~~~~~~~
11 | These are a set of output logfiles generated by Ncat to briefly
12 | demonstrate Ncat's logging abilities.
13 |
14 |
15 | --Chris Gibson,
16 |
--------------------------------------------------------------------------------
/zenmap/test/diff_test2:
--------------------------------------------------------------------------------
1 | # nmap 3.75 scan initiated Sat Jul 16 11:31:58 2005 as: nmap -oX /tmp/tmpg71nwK -oN /tmp/tmptq82bS localhost
2 | Interesting ports on localhost.localdomain (127.0.0.1):
3 | (The 1658 ports scanned but not shown below are in state: closed)
4 | PORT STATE SERVICE
5 | 80/tcp open http
6 | 111/tcp open rpcbind
7 | 631/tcp open ipp
8 | 6346/tcp open gnutella
9 | 32776/tcp open sometimes-rpc15
10 |
11 | # Nmap run completed at Sat Jul 16 11:32:01 2005 -- 1 IP address (1 host up) scanned in 2.788 seconds
12 |
--------------------------------------------------------------------------------
/ncat/docs/examples/scripts/http-scan/README:
--------------------------------------------------------------------------------
1 | HTTP-SCAN with Ncat
2 | ~~~~~~~~~~~~~~~~~~~
3 |
4 | This is a simple exercise that uses a small amount of
5 | scripted automation that will throw out the banner
6 | information of n number of hosts listed in the file "iplist".
7 |
8 | Ncat uses the "get.request" HTTP header to get the newly
9 | connected webserver to tell you about itself.
10 |
11 | Usage: ./scan-example
12 |
13 | Variables to change: None, but you may want to change "iplist"
14 | to other more informative hosts.
15 |
--------------------------------------------------------------------------------
/mswin32/license-format/licformat.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | script_dir=`dirname $0`
4 |
5 | sed -f $script_dir/licsed_1 $1 | tr '\n' ' '| awk 'NR==1{printf("\n%s", $0) }' |
6 |
7 | awk '{for (i=1&&j=2; i <= NF; i++&&j++) if($i=="SDFGHJdblnewline"){printf("\n\n")}
8 | else if($i=="oSDFGHbullet"){printf(" \no ")}
9 | else if($i=="Copyright" && $j=="(C)"){printf("\n%s ",$i)}
10 | else if($i=="author" && $j=="Gnomovision"){printf("author\n")}
11 | else if($i=="1989" && $j== "Ty"){printf("1989\n")}
12 | else{printf("%s ",$i)}}' |
13 |
14 | sed -f $script_dir/licsed_2
15 |
--------------------------------------------------------------------------------
/todo/dmiller.txt:
--------------------------------------------------------------------------------
1 | * Make Zenmap unit tests work. Guessing lots don't, since r32569 fixed real code
2 | that matched some unit tests, too.
3 |
4 | * Make sure Ndiff, Zenmap are 2to3 compatible with python -3
5 |
6 | * Script to check for updated versions of included libs. Have shell for libpcap,
7 | but should convert to python.
8 |
9 | * NSE stuff
10 | * broadcast-srvloc-info - test
11 | * broadcast-rpcbind - write, test
12 | * deflate/gzip for HTTP, etc.
13 | * Consolidate utility functions
14 |
15 | * Grock libdnet, consider separate release?
16 |
--------------------------------------------------------------------------------
/zenmap/test/run_tests.py:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env python
2 |
3 | import unittest
4 |
5 | if __name__ == "__main__":
6 | import sys
7 | import glob
8 | import os
9 | if not hasattr(unittest.defaultTestLoader, "discover"):
10 | print("Python unittest discovery missing. Requires Python 2.7 or newer.") # noqa
11 | sys.exit(0)
12 |
13 | os.chdir("..")
14 | suite = unittest.defaultTestLoader.discover(
15 | start_dir=glob.glob("build/lib.*")[0],
16 | pattern="*.py"
17 | )
18 | unittest.TextTestRunner().run(suite)
19 |
--------------------------------------------------------------------------------
/libpcap/pcap-septel.h:
--------------------------------------------------------------------------------
1 | /*
2 | * pcap-septel.c: Packet capture interface for Intel Septel card
3 | *
4 | * The functionality of this code attempts to mimic that of pcap-linux as much
5 | * as possible. This code is only needed when compiling in the Intel/Septel
6 | * card code at the same time as another type of device.
7 | *
8 | * Authors: Gilbert HOYEK (gil_hoyek@hotmail.com), Elias M. KHOURY
9 | * (+961 3 485343);
10 | */
11 |
12 | pcap_t *septel_create(const char *device, char *ebuf, int *is_ours);
13 | int septel_findalldevs(pcap_if_t **devlistp, char *errbuf);
14 |
--------------------------------------------------------------------------------
/ncat/INSTALL:
--------------------------------------------------------------------------------
1 | Building Ncat
2 | =============
3 |
4 | On UNIX systems, ideally, you should just be able to do:
5 |
6 | ./configure
7 | make
8 |
9 | After building is successful, to install:
10 | make install
11 |
12 | For instructions on how to build Ncat for Microsoft Windows or for far more
13 | in-depth compilation, installation, and removal notes, read the Nmap Install
14 | Guide at https://nmap.org/install/.
15 |
16 | For instructions on how to build Ncat Portable for Microsoft Windows, read
17 | the how-to available at https://secwiki.org/w/Nmap/Ncat_Portable.
18 |
19 |
20 |
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
1 | language: cpp
2 | compiler:
3 | - gcc
4 | - clang
5 | # Change this to your needs
6 | sudo: false
7 | script: mkdir /tmp/n && ./configure $SSL_FLAG $LUA_FLAG --prefix=/tmp/n && make && make check && make install && /tmp/n/bin/nmap -A localhost
8 |
9 | env:
10 | - SSL_FLAG="--without-openssl" LUA_FLAG="--without-liblua"
11 | - SSL_FLAG="" LUA_FLAG="--without-liblua"
12 | - SSL_FLAG="--without-openssl" LUA_FLAG=""
13 | - SSL_FLAG="" LUA_FLAG=""
14 |
15 | notifications:
16 | irc:
17 | channels:
18 | - "chat.freenode.net#nmap"
19 | on_success: change
20 | on_failure: always
21 |
--------------------------------------------------------------------------------
/nping/nping-dev/pythonscripts/TemplateGettersSetters.txt:
--------------------------------------------------------------------------------
1 |
2 | /* Prototypes */
3 | int setMETHNAME(TYPE val);
4 | TYPE getMETHNAME();
5 |
6 | /** Sets METHNAME.
7 | * @return OP_SUCCESS on success and OP_FAILURE in case of error. */
8 | int CLASSNAME::setMETHNAME(TYPE val){
9 |
10 | this->ATTRNAME=val;
11 |
12 | return OP_SUCCESS;
13 |
14 | } /* End of setMETHNAME() */
15 |
16 |
17 | /** Returns value of attribute ATTRNAME */
18 | TYPE CLASSNAME::getMETHNAME(){
19 |
20 | return this->ATTRNAME;
21 |
22 | } /* End of getMETHNAME() */
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/nse_lpeg.cc:
--------------------------------------------------------------------------------
1 | extern "C" {
2 | #include "lauxlib.h"
3 | #include "lua.h"
4 | }
5 |
6 | /* Lua 5.3 support */
7 | #define luaL_checkint luaL_checkinteger
8 |
9 | #undef lua_equal
10 | #define lua_equal(L,idx1,idx2) lua_compare(L,(idx1),(idx2),LUA_OPEQ)
11 |
12 | #undef lua_getfenv
13 | #define lua_getfenv lua_getuservalue
14 | #undef lua_setfenv
15 | #define lua_setfenv lua_setuservalue
16 |
17 | #undef lua_objlen
18 | #define lua_objlen lua_rawlen
19 |
20 | #undef luaL_register
21 | #define luaL_register(L,n,f) \
22 | { if ((n) == NULL) luaL_setfuncs(L,f,0); else luaL_newlib(L,f); }
23 |
24 | #include "lpeg.c"
25 |
--------------------------------------------------------------------------------
/ncat/docs/examples/ipaccess:
--------------------------------------------------------------------------------
1 | #
2 | # This is a sample IP access list that
3 | # could potentially be used with Ncat
4 | # to allow or deny specific users from
5 | # connecting to an Ncat process, such as
6 | # a standard listen operation to being
7 | # able to access your newly spawned SOCKS4
8 | # server.
9 | #
10 | # Obviously, these IP addresses are pretty
11 | # useless to most people. It is an example
12 | # afterall. :)
13 | #
14 | # Chris Gibson,
15 |
16 | # lo interface.
17 | 127.0.0.1/8
18 |
19 | # eth0 internal network.
20 | 192.168.0.0/24
21 |
22 | # eth1 to outside world.
23 | 55.20.30.1/32
24 |
--------------------------------------------------------------------------------
/nping/docs/AUTHORS:
--------------------------------------------------------------------------------
1 | Nping AUTHORS
2 | ===============
3 |
4 | Nping was originally written from the ground up by Luis MartinGarcia
5 | (luis.mgarc@gmail.com), during the Google Summer of Code program in 2009. Luis
6 | was mentored by Fyodor.
7 |
8 | Further development was done in the Google Summer of Code 2010 by Luis
9 | once again mentored by Fyodor.
10 |
11 | Many helpful comments, suggestions and other useful information were taken from
12 | the dev@nmap.org list as well as other contributors via email.
13 |
14 | Nping shares the Nmap infrastructure libraries (Nsock and Nbase) which were
15 | originally written by Fyodor.
16 |
17 |
--------------------------------------------------------------------------------
/nping/global_structures.h:
--------------------------------------------------------------------------------
1 | #ifndef GLOBAL_STRUCTURES_H
2 | #define GLOBAL_STRUCTURES_H
3 |
4 | #include "nsock.h"
5 | #include "nbase.h"
6 |
7 |
8 | typedef struct service_lookup {
9 | char *name;
10 | u8 proto;
11 | u16 portno;
12 | } service_lookup;
13 |
14 |
15 |
16 | typedef struct m_data {
17 | nsock_pool nsp;
18 | nsock_iod nsi;
19 | int state;
20 | int protocol;
21 | unsigned short port;
22 | struct in_addr ip;
23 | int attempts;
24 | int max_attempts; /* how many attempts in one connection */
25 | char *username;
26 | char *password;
27 | char *buf;
28 | int bufsize;
29 | } m_data;
30 |
31 |
32 |
33 | #endif
34 |
--------------------------------------------------------------------------------
/liblua/lapi.h:
--------------------------------------------------------------------------------
1 | /*
2 | ** $Id: lapi.h,v 2.9 2015/03/06 19:49:50 roberto Exp $
3 | ** Auxiliary functions from Lua API
4 | ** See Copyright Notice in lua.h
5 | */
6 |
7 | #ifndef lapi_h
8 | #define lapi_h
9 |
10 |
11 | #include "llimits.h"
12 | #include "lstate.h"
13 |
14 | #define api_incr_top(L) {L->top++; api_check(L, L->top <= L->ci->top, \
15 | "stack overflow");}
16 |
17 | #define adjustresults(L,nres) \
18 | { if ((nres) == LUA_MULTRET && L->ci->top < L->top) L->ci->top = L->top; }
19 |
20 | #define api_checknelems(L,n) api_check(L, (n) < (L->top - L->ci->func), \
21 | "not enough elements in the stack")
22 |
23 |
24 | #endif
25 |
--------------------------------------------------------------------------------
/libpcap/Win32/Prj/libpcap.dsw:
--------------------------------------------------------------------------------
1 | Microsoft Developer Studio Workspace File, Format Version 6.00
2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
3 |
4 | ###############################################################################
5 |
6 | Project: "libpcap"=".\libpcap.dsp" - Package Owner=<4>
7 |
8 | Package=<5>
9 | {{{
10 | }}}
11 |
12 | Package=<4>
13 | {{{
14 | }}}
15 |
16 | ###############################################################################
17 |
18 | Global:
19 |
20 | Package=<5>
21 | {{{
22 | }}}
23 |
24 | Package=<3>
25 | {{{
26 | }}}
27 |
28 | ###############################################################################
29 |
30 |
--------------------------------------------------------------------------------
/docs/leet-nmap-ascii-art-eye.txt:
--------------------------------------------------------------------------------
1 |
2 | ___.-------.___
3 | _.-' ___.--;--.___ `-._
4 | .-' _.-' / .+. \ `-._ `-.
5 | .' .-' |-|-o-|-| `-. `.
6 | (_ _)
7 | `--._``-..__`._|_.'__..-''_.--'
8 | ``--._________.--''
9 | ____ _____ ____ ____ _ _______
10 | |_ \|_ _||_ \ / _| / \ |_ __ \
11 | | \ | | | \/ | / _ \ | |__) |
12 | | |\ \| | | |\ /| | / ___ \ | ___/
13 | _| |_\ |_ _| |_\/_| |_ _/ / \ \_ _| |_
14 | |_____|\____||_____||_____||____| |____||_____|
15 |
16 |
--------------------------------------------------------------------------------
/docs/nmap-man-enclosure.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 | ]>
9 |
10 |
11 |
12 | &refguide;
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/libdnet-stripped/include/dnet/tun.h:
--------------------------------------------------------------------------------
1 | /*
2 | * tun.h
3 | *
4 | * Network tunnel device.
5 | *
6 | * Copyright (c) 2001 Dug Song
7 | *
8 | * $Id: tun.h 547 2005-01-25 21:30:40Z dugsong $
9 | */
10 |
11 | #ifndef DNET_TUN_H
12 | #define DNET_TUN_H
13 |
14 | typedef struct tun tun_t;
15 |
16 | __BEGIN_DECLS
17 | tun_t *tun_open(struct addr *src, struct addr *dst, int mtu);
18 | int tun_fileno(tun_t *tun);
19 | const char *tun_name(tun_t *tun);
20 | ssize_t tun_send(tun_t *tun, const void *buf, size_t size);
21 | ssize_t tun_recv(tun_t *tun, void *buf, size_t size);
22 | tun_t *tun_close(tun_t *tun);
23 | __END_DECLS
24 |
25 | #endif /* DNET_TUN_H */
26 |
--------------------------------------------------------------------------------
/nsock/src/aclocal.m4:
--------------------------------------------------------------------------------
1 | # generated automatically by aclocal 1.11.6 -*- Autoconf -*-
2 |
3 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4 | # 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
5 | # Inc.
6 | # This file is free software; the Free Software Foundation
7 | # gives unlimited permission to copy and/or distribute it,
8 | # with or without modifications, as long as this notice is preserved.
9 |
10 | # This program is distributed in the hope that it will be useful,
11 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 | # PARTICULAR PURPOSE.
14 |
15 | m4_include([acinclude.m4])
16 |
--------------------------------------------------------------------------------
/zenmap/test/xml_test12.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/libpcap/Makefile-devel-adds:
--------------------------------------------------------------------------------
1 | #
2 | # Auto-regenerate configure script or Makefile when things change.
3 | # From autoconf.info . Works best with GNU Make.
4 | #
5 | ${srcdir}/configure: configure.in aclocal.m4
6 | cd ${srcdir} && autoconf
7 |
8 | # autoheader might not change config.h.in, so touch a stamp file.
9 | ${srcdir}/config.h.in: ${srcdir}/stamp-h.in
10 | ${srcdir}/stamp-h.in: configure.in aclocal.m4
11 | cd ${srcdir} && autoheader
12 | echo timestamp > ${srcdir}/stamp-h.in
13 |
14 | config.h: stamp-h
15 | stamp-h: ${srcdir}/config.h.in config.status
16 | ./config.status
17 |
18 | Makefile: Makefile.in config.status
19 | ./config.status
20 |
21 | config.status: ${srcdir}/configure
22 | ./config.status --recheck
23 |
--------------------------------------------------------------------------------
/nping/docs/leet-nping-ascii-art.txt:
--------------------------------------------------------------------------------
1 | o
2 | o
3 | o
4 | o o
5 | o o
6 | o o
7 | o o o
8 | o o o
9 | 888b 888 o o o
10 | 8888b 888 o o o
11 | 88888b 888 o o o
12 | 888Y88b 888 o
13 | 888 Y88b888 o
14 | 888 Y88888
15 | 888 Y8888
16 | 888 Y888
17 |
18 | --[NPING]--
19 |
--------------------------------------------------------------------------------
/libdnet-stripped/include/dnet.h:
--------------------------------------------------------------------------------
1 | /*
2 | * dnet.h
3 | *
4 | * Copyright (c) 2001 Dug Song
5 | *
6 | * $Id: dnet.h 529 2004-09-10 03:10:01Z dugsong $
7 | */
8 |
9 | #ifndef DNET_H
10 | #define DNET_H
11 |
12 | #include
13 |
14 | #include
15 | #include
16 | #include
17 | #include
18 | #include
19 | #include
20 | #include
21 | #include
22 | #include
23 | #include
24 |
25 | #include
26 | #include
27 | #include
28 | #include
29 |
30 | #include
31 | #include
32 |
33 | #endif /* DNET_H */
34 |
--------------------------------------------------------------------------------
/scripts/daytime.nse:
--------------------------------------------------------------------------------
1 | local comm = require "comm"
2 | local shortport = require "shortport"
3 |
4 | description = [[
5 | Retrieves the day and time from the Daytime service.
6 | ]]
7 |
8 | ---
9 | -- @output
10 | -- PORT STATE SERVICE
11 | -- 13/tcp open daytime
12 | -- |_daytime: Wed Mar 31 14:48:58 MDT 2010
13 |
14 | author = "Diman Todorov"
15 |
16 | license = "Same as Nmap--See https://nmap.org/book/man-legal.html"
17 |
18 | categories = {"discovery", "safe"}
19 |
20 |
21 | portrule = shortport.port_or_service(13, "daytime", {"tcp", "udp"})
22 |
23 | action = function(host, port)
24 | local status, result = comm.exchange(host, port, "dummy", {lines=1})
25 |
26 | if status then
27 | return result
28 | end
29 | end
30 |
--------------------------------------------------------------------------------
/libdnet-stripped/acconfig.h:
--------------------------------------------------------------------------------
1 | @BOTTOM@
2 |
3 | #include
4 |
5 | #ifdef HAVE_WINSOCK2_H
6 | # include
7 | # include
8 | #endif
9 |
10 | #ifdef __svr4__
11 | # define BSD_COMP 1
12 | #endif
13 |
14 | #if defined(__osf__) && !defined(_SOCKADDR_LEN)
15 | # define _SOCKADDR_LEN 1
16 | #endif
17 |
18 | #ifndef HAVE_INET_PTON
19 | int inet_pton(int, const char *, void *);
20 | #endif
21 |
22 | #ifndef HAVE_STRLCAT
23 | int strlcat(char *, const char *, int);
24 | #endif
25 |
26 | #ifndef HAVE_STRLCPY
27 | int strlcpy(char *, const char *, int);
28 | #endif
29 |
30 | #ifndef HAVE_STRSEP
31 | char *strsep(char **, const char *);
32 | #endif
33 |
34 | #ifndef HAVE_SOCKLEN_T
35 | typedef int socklen_t;
36 | #endif
37 |
--------------------------------------------------------------------------------
/zenmap/install_scripts/README:
--------------------------------------------------------------------------------
1 | Every script under this directory is supposed to be executed from the
2 | top of the source tree. Don't get into this directory, nor any other
3 | under this one to execute any of the scripts, or they're not going to
4 | work as expected.
5 |
6 | This is a description of the scripts in this directory and its
7 | subdirectories.
8 |
9 | macosx:
10 | Files and scripts used to build Mac OS X packages. See macosx/README for a
11 | description of the files in this directory.
12 |
13 | utils/version_update.py:
14 | Updates the Zenmap version number everywhere it needs to be.
15 |
16 | windows/copy_and_compile.bat:
17 | Builds a Windows executable using py2exe.
18 |
19 | windows/nmap-eye.ico:
20 | An icon used on Windows.
21 |
--------------------------------------------------------------------------------
/ndiff/test-scans/empty.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/mswin32/license-format/licsed_1:
--------------------------------------------------------------------------------
1 | # remove horizontal asterisks
2 | s@\*\*@@g
3 |
4 | # preserve double hyphens between words in GNU GPL
5 | s@\([^\-]\)\-\-\([^\-]\)@\1SDFGHdbldash\2@g
6 |
7 | # remove horizontal hyphens
8 | s@\-\-@@g
9 |
10 | # reintroduce double hyphens
11 | s@SDFGHdbldash@--@g
12 |
13 | # remove trailing asterisk
14 | s@[ ]*\*[ ]*$@@g
15 |
16 | # remove leading asterisk
17 | s@^[ ]*\*@@
18 |
19 | # remove lonely slash
20 | s@^/$@@g
21 |
22 | # remove leading whitespace
23 | s@^[ ]*@@g
24 |
25 | # preserve bullets
26 | s@^o @ oSDFGHbullet @g
27 |
28 | # preserve sentence spacing
29 | s@\. \([A-Za-z0-9]\)@.SDFGHJdblspace\1@g
30 |
31 | # remove first line
32 | 1d
33 |
34 | # read entire input and preserve paragraph separation
35 | s@^$@ SDFGHJdblnewline @
36 |
37 |
--------------------------------------------------------------------------------
/libpcap/NMAP_MODIFICATIONS/HOWTO-UPGRADE:
--------------------------------------------------------------------------------
1 | Download libpcap-X.Y.tar.gz from http://www.tcpdump.org/#latest-release
2 | and verify the signature.
3 |
4 | cd
5 | # Make a copy of this directory.
6 | cp -r ~/nmap/libpcap/NMAP_MODIFICATIONS .
7 | tar xzvf libpcap-X.Y.tar.gz
8 | cd nmap
9 | rsync -rv --delete ~/libpcap-X.Y/ ~/nmap/libpcap/
10 | git add -A libpcap
11 | cd libpcap
12 | ./configure
13 | make grammar.c scanner.c scanner.h tokdefs.h
14 | git add grammar.c scanner.c scanner.h tokdefs.h
15 | cd ..
16 | # Apply patches.
17 | git apply ~/NMAP_MODIFICATIONS/000*
18 | # Make changes as necessary and update the patch files
19 | cd libpcap
20 | autoconf
21 | cd ..
22 | git add -u libpcap
23 | mv ~/NMAP_MODIFICATIONS libpcap/
24 | git add libpcap/NMAP_MODIFICATIONS
25 | git commit -m "Upgrade libpcap to X.Y."
26 |
--------------------------------------------------------------------------------
/nping/nping-dev/pythonscripts/addGettersSetters.py:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | o = open("OutputGettersSetters.txt","a")
5 |
6 | classname = raw_input("Class Name: ")
7 | my_range = raw_input("Number of attrs: ")
8 | methname= []
9 | attrname = []
10 | attrtype= []
11 |
12 | for i in range( int(my_range) ):
13 | methname.append( raw_input("Method Name:") )
14 | attrname.append ( raw_input("Attr Name: ") )
15 | attrtype.append(raw_input("Attr type:") )
16 |
17 | for line in open("TemplateGettersSetters.txt"):
18 | line = line.replace("METHNAME",methname[i])
19 | line = line.replace("TYPE",attrtype[i])
20 | line = line.replace("ATTRNAME",attrname[i])
21 | line = line.replace("CLASSNAME",classname)
22 | o.write(line)
23 |
24 |
25 | o.close()
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/liblinear/blas/blas.h:
--------------------------------------------------------------------------------
1 | /* blas.h -- C header file for BLAS Ver 1.0 */
2 | /* Jesse Bennett March 23, 2000 */
3 |
4 | /** barf [ba:rf] 2. "He suggested using FORTRAN, and everybody barfed."
5 |
6 | - From The Shogakukan DICTIONARY OF NEW ENGLISH (Second edition) */
7 |
8 | #ifndef BLAS_INCLUDE
9 | #define BLAS_INCLUDE
10 |
11 | /* Data types specific to BLAS implementation */
12 | typedef struct { float r, i; } fcomplex;
13 | typedef struct { double r, i; } dcomplex;
14 | typedef int blasbool;
15 |
16 | #include "blasp.h" /* Prototypes for all BLAS functions */
17 |
18 | #define FALSE 0
19 | #define TRUE 1
20 |
21 | /* Macro functions */
22 | #define MIN(a,b) ((a) <= (b) ? (a) : (b))
23 | #define MAX(a,b) ((a) >= (b) ? (a) : (b))
24 |
25 | #endif
26 |
--------------------------------------------------------------------------------
/nselib/data/psexec/experimental.lua:
--------------------------------------------------------------------------------
1 | ---This is the configuration file for modules that aren't quite ready for prime
2 | -- time yet.
3 |
4 |
5 | -- Any variable in the 'config' table in smb-psexec.nse can be overriden in the
6 | -- 'overrides' table. Most of them are not really recommended, such as the host,
7 | -- key, etc.
8 | overrides = {}
9 | --overrides.timeout = 40
10 |
11 | modules = {}
12 | local mod
13 |
14 |
15 | -- I can't get fport to work for me, so I'm going to leave this one in 'experimental' for now
16 | --mod = {}
17 | --mod.upload = true
18 | --mod.name = "Fport"
19 | --mod.program = "Fport.exe"
20 | --mod.url = "http://www.foundstone.com/us/resources/proddesc/fport.htm"
21 | --mod.maxtime = 1
22 | --mod.noblank = true
23 | --table.insert(modules, mod)
24 |
25 |
--------------------------------------------------------------------------------
/libdnet-stripped/src/fw-none.c:
--------------------------------------------------------------------------------
1 | /*
2 | * fw-none.c
3 | *
4 | * Copyright (c) 2000 Dug Song
5 | *
6 | * $Id: fw-none.c 208 2002-01-20 21:23:28Z dugsong $
7 | */
8 |
9 | #include "config.h"
10 |
11 | #include
12 | #include
13 | #include
14 |
15 | #include "dnet.h"
16 |
17 | fw_t *
18 | fw_open(void)
19 | {
20 | errno = ENOSYS;
21 | return (NULL);
22 | }
23 |
24 | int
25 | fw_add(fw_t *f, const struct fw_rule *rule)
26 | {
27 | errno = ENOSYS;
28 | return (-1);
29 | }
30 |
31 | int
32 | fw_delete(fw_t *f, const struct fw_rule *rule)
33 | {
34 | errno = ENOSYS;
35 | return (-1);
36 | }
37 |
38 | int
39 | fw_loop(fw_t *f, fw_handler callback, void *arg)
40 | {
41 | errno = ENOSYS;
42 | return (-1);
43 | }
44 |
45 | fw_t *
46 | fw_close(fw_t *f)
47 | {
48 | return (NULL);
49 | }
50 |
--------------------------------------------------------------------------------
/libpcap/chmod_bpf:
--------------------------------------------------------------------------------
1 | #! /bin/sh
2 |
3 | #
4 | # Unfortunately, Mac OS X's devfs is based on the old FreeBSD
5 | # one, not the current one, so there's no way to configure it
6 | # to create BPF devices with particular owners or groups.
7 | # This startup item will make it owned by the admin group,
8 | # with permissions rw-rw----, so that anybody in the admin
9 | # group can use programs that capture or send raw packets.
10 | #
11 | # Change this as appropriate for your site, e.g. to make
12 | # it owned by a particular user without changing the permissions,
13 | # so only that user and the super-user can capture or send raw
14 | # packets, or give it the permissions rw-r-----, so that
15 | # only the super-user can send raw packets but anybody in the
16 | # admin group can capture packets.
17 | #
18 | chgrp admin /dev/bpf*
19 | chmod g+rw /dev/bpf*
20 |
--------------------------------------------------------------------------------
/liblinear/tron.h:
--------------------------------------------------------------------------------
1 | #ifndef _TRON_H
2 | #define _TRON_H
3 |
4 | class function
5 | {
6 | public:
7 | virtual double fun(double *w) = 0 ;
8 | virtual void grad(double *w, double *g) = 0 ;
9 | virtual void Hv(double *s, double *Hs) = 0 ;
10 |
11 | virtual int get_nr_variable(void) = 0 ;
12 | virtual ~function(void){}
13 | };
14 |
15 | class TRON
16 | {
17 | public:
18 | TRON(const function *fun_obj, double eps = 0.1, int max_iter = 1000);
19 | ~TRON();
20 |
21 | void tron(double *w);
22 | void set_print_string(void (*i_print) (const char *buf));
23 |
24 | private:
25 | int trcg(double delta, double *g, double *s, double *r);
26 | double norm_inf(int n, double *x);
27 |
28 | double eps;
29 | int max_iter;
30 | function *fun_obj;
31 | void info(const char *fmt,...);
32 | void (*tron_print_string)(const char *buf);
33 | };
34 | #endif
35 |
--------------------------------------------------------------------------------
/ndiff/test-scans/down.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/scripts/smtp-strangeport.nse:
--------------------------------------------------------------------------------
1 | description = [[
2 | Checks if SMTP is running on a non-standard port.
3 |
4 | This may indicate that crackers or script kiddies have set up a backdoor on the
5 | system to send spam or control the machine.
6 | ]]
7 |
8 | ---
9 | -- @output
10 | -- 22/tcp open smtp
11 | -- |_ smtp-strangeport: Mail server on unusual port: possible malware
12 |
13 | author = "Diman Todorov"
14 |
15 | license = "Same as Nmap--See https://nmap.org/book/man-legal.html"
16 |
17 | categories = {"malware", "safe"}
18 |
19 | portrule = function(host, port)
20 | return port.service == "smtp" and
21 | port.number ~= 25 and port.number ~= 465 and port.number ~= 587
22 | and port.protocol == "tcp"
23 | and port.state == "open"
24 | end
25 |
26 | action = function()
27 | return "Mail server on unusual port: possible malware"
28 | end
29 |
30 |
--------------------------------------------------------------------------------
/macosx/nmap.pmdoc/01nmap.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | org.insecure.nmap.Nmap.pkg
4 | 1
5 |
6 |
7 |
8 | Nmap
9 | /
10 |
11 |
12 |
13 |
14 | parent
15 | installFrom.isRelativeType
16 |
17 |
18 | 01nmap-contents.xml
19 | /CVS$
20 | /\.svn$
21 | /\.cvsignore$
22 | /\.cvspass$
23 | /\.DS_Store$
24 |
25 |
26 |
--------------------------------------------------------------------------------
/macosx/nmap.pmdoc/03ncat.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | org.insecure.nmap.Ncat.pkg
4 | 1
5 |
6 |
7 |
8 | Ncat
9 | /
10 |
11 |
12 |
13 |
14 | parent
15 | installFrom.isRelativeType
16 |
17 |
18 | 03ncat-contents.xml
19 | /CVS$
20 | /\.svn$
21 | /\.cvsignore$
22 | /\.cvspass$
23 | /\.DS_Store$
24 |
25 |
26 |
--------------------------------------------------------------------------------
/macosx/nmap.pmdoc/04ndiff.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | org.insecure.nmap.Ndiff.pkg
4 | 1
5 |
6 |
7 |
8 | Ndiff
9 | /
10 |
11 |
12 |
13 |
14 | parent
15 | installFrom.isRelativeType
16 |
17 |
18 | 04ndiff-contents.xml
19 | /CVS$
20 | /\.svn$
21 | /\.cvsignore$
22 | /\.cvspass$
23 | /\.DS_Store$
24 |
25 |
26 |
--------------------------------------------------------------------------------
/libdnet-stripped/src/eth-none.c:
--------------------------------------------------------------------------------
1 | /*
2 | * eth-none.c
3 | *
4 | * Copyright (c) 2000 Dug Song
5 | *
6 | * $Id: eth-none.c 547 2005-01-25 21:30:40Z dugsong $
7 | */
8 |
9 | #include "config.h"
10 |
11 | #include
12 |
13 | #include
14 | #include
15 | #include
16 |
17 | #include "dnet.h"
18 |
19 | eth_t *
20 | eth_open(const char *device)
21 | {
22 | errno = ENOSYS;
23 | return (NULL);
24 | }
25 |
26 | ssize_t
27 | eth_send(eth_t *e, const void *buf, size_t len)
28 | {
29 | errno = ENOSYS;
30 | return (-1);
31 | }
32 |
33 | eth_t *
34 | eth_close(eth_t *e)
35 | {
36 | return (NULL);
37 | }
38 |
39 | int
40 | eth_get(eth_t *e, eth_addr_t *ea)
41 | {
42 | errno = ENOSYS;
43 | return (-1);
44 | }
45 |
46 | int
47 | eth_set(eth_t *e, const eth_addr_t *ea)
48 | {
49 | errno = ENOSYS;
50 | return (-1);
51 | }
52 |
--------------------------------------------------------------------------------
/libpcap/dlpisubs.h:
--------------------------------------------------------------------------------
1 | #ifndef dlpisubs_h
2 | #define dlpisubs_h
3 |
4 | #ifdef __cplusplus
5 | extern "C" {
6 | #endif
7 |
8 | /*
9 | * Private data for capturing on DLPI devices.
10 | */
11 | struct pcap_dlpi {
12 | #ifdef HAVE_LIBDLPI
13 | dlpi_handle_t dlpi_hd;
14 | #endif /* HAVE_LIBDLPI */
15 | #ifdef DL_HP_RAWDLS
16 | int send_fd;
17 | #endif /* DL_HP_RAWDLS */
18 |
19 | struct pcap_stat stat;
20 | };
21 |
22 | /*
23 | * Functions defined by dlpisubs.c.
24 | */
25 | int pcap_stats_dlpi(pcap_t *, struct pcap_stat *);
26 | int pcap_process_pkts(pcap_t *, pcap_handler, u_char *, int, u_char *, int);
27 | int pcap_process_mactype(pcap_t *, u_int);
28 | #ifdef HAVE_SYS_BUFMOD_H
29 | int pcap_conf_bufmod(pcap_t *, int);
30 | #endif
31 | int pcap_alloc_databuf(pcap_t *);
32 | int strioctl(int, int, int, char *);
33 |
34 | #ifdef __cplusplus
35 | }
36 | #endif
37 |
38 | #endif
39 |
--------------------------------------------------------------------------------
/macosx/nmap.pmdoc/05nping.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | org.insecure.nping.Nping.pkg
4 | 1
5 |
6 |
7 |
8 | Nping
9 | /
10 |
11 |
12 |
13 |
14 | parent
15 | installFrom.isRelativeType
16 |
17 |
18 | 01nping-contents.xml
19 | /CVS$
20 | /\.svn$
21 | /\.cvsignore$
22 | /\.cvspass$
23 | /\.DS_Store$
24 |
25 |
26 |
--------------------------------------------------------------------------------
/libdnet-stripped/include/dnet/udp.h:
--------------------------------------------------------------------------------
1 | /*
2 | * udp.h
3 | *
4 | * User Datagram Protocol (RFC 768).
5 | *
6 | * Copyright (c) 2000 Dug Song
7 | *
8 | * $Id: udp.h 330 2002-04-02 05:05:39Z dugsong $
9 | */
10 |
11 | #ifndef DNET_UDP_H
12 | #define DNET_UDP_H
13 |
14 | #define UDP_HDR_LEN 8
15 |
16 | struct udp_hdr {
17 | uint16_t uh_sport; /* source port */
18 | uint16_t uh_dport; /* destination port */
19 | uint16_t uh_ulen; /* udp length (including header) */
20 | uint16_t uh_sum; /* udp checksum */
21 | };
22 |
23 | #define UDP_PORT_MAX 65535
24 |
25 | #define udp_pack_hdr(hdr, sport, dport, ulen) do { \
26 | struct udp_hdr *udp_pack_p = (struct udp_hdr *)(hdr); \
27 | udp_pack_p->uh_sport = htons(sport); \
28 | udp_pack_p->uh_dport = htons(dport); \
29 | udp_pack_p->uh_ulen = htons(ulen); \
30 | } while (0)
31 |
32 | #endif /* DNET_UDP_H */
33 |
--------------------------------------------------------------------------------
/libpcap/Win32/Include/Gnuc.h:
--------------------------------------------------------------------------------
1 | /* Define __P() macro, if necessary */
2 |
3 | #ifndef __P
4 | #if __STDC__
5 | #define __P(protos) protos
6 | #else
7 | #define __P(protos) ()
8 | #endif
9 | #endif
10 |
11 | /* inline foo */
12 | #ifndef __cplusplus
13 | #ifdef __GNUC__
14 | #define inline __inline
15 | #else
16 | #define inline
17 | #endif
18 | #endif
19 |
20 | /*
21 | * Handle new and old "dead" routine prototypes
22 | *
23 | * For example:
24 | *
25 | * __dead void foo(void) __attribute__((volatile));
26 | *
27 | */
28 | #ifdef __GNUC__
29 | #ifndef __dead
30 | #define __dead volatile
31 | #endif
32 | #if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5)
33 | #ifndef __attribute__
34 | #define __attribute__(args)
35 | #endif
36 | #endif
37 | #else
38 | #ifndef __dead
39 | #define __dead
40 | #endif
41 | #ifndef __attribute__
42 | #define __attribute__(args)
43 | #endif
44 | #endif
45 |
--------------------------------------------------------------------------------
/macosx/nmap.pmdoc/06nmap-update.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | org.insecure.nmap.nmap-update.pkg
4 | 1
5 |
6 |
7 |
8 | nmap-update
9 | /
10 |
11 |
12 |
13 |
14 | parent
15 | installFrom.isRelativeType
16 |
17 |
18 | 06nmap-update-contents.xml
19 | /CVS$
20 | /\.svn$
21 | /\.cvsignore$
22 | /\.cvspass$
23 | /\.DS_Store$
24 |
25 |
26 |
--------------------------------------------------------------------------------
/nsock/tests/Makefile.in:
--------------------------------------------------------------------------------
1 | #
2 | # nsock regression test suite
3 | # Same license as nmap -- see https://nmap.org/book/man-legal.html
4 | ##
5 |
6 | NBASEDIR=@NBASEDIR@
7 | NSOCKLIB=../src/libnsock.a
8 | NBASELIB=$(NBASEDIR)/libnbase.a
9 |
10 | CC = @CC@
11 | CPPFLAGS = @CPPFLAGS@ -I../include
12 | CFLAGS = @CFLAGS@
13 | LDFLAGS = @LDFLAGS@
14 | LIBS = @OPENSSL_LIBS@ @LIBPCAP_LIBS@ @LIBS@
15 |
16 | SRC = tests_main.c \
17 | basic.c \
18 | timer.c \
19 | logs.c \
20 | connect.c \
21 | ghlists.c \
22 | ghheaps.c \
23 | cancel.c
24 |
25 | OBJ = $(SRC:.c=.o)
26 |
27 | EXE = tests_main
28 |
29 | all: $(SRC) $(EXE)
30 |
31 | $(EXE): $(OBJ)
32 | $(CC) $(LDFLAGS) $(OBJ) -o $@ $(NSOCKLIB) $(NBASELIB) $(LIBS)
33 |
34 | .c.o:
35 | $(CC) -c $(CPPFLAGS) $(CFLAGS) $< -o $@
36 |
37 | clean:
38 | $(RM) $(OBJ) $(EXE)
39 |
40 | rebuild: clean $(EXE)
41 |
42 | .PHONY: clean rebuild
43 |
--------------------------------------------------------------------------------
/ncat/mkinstalldirs:
--------------------------------------------------------------------------------
1 | #! /bin/sh
2 | # mkinstalldirs --- make directory hierarchy
3 | # Author: Noah Friedman
4 | # Created: 1993-05-16
5 | # Public domain
6 |
7 | # $Id: mkinstalldirs,v 1.1.1.1 2006/01/21 16:58:25 evii Exp $
8 |
9 | errstatus=0
10 |
11 | for file
12 | do
13 | set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
14 | shift
15 |
16 | pathcomp=
17 | for d
18 | do
19 | pathcomp="$pathcomp$d"
20 | case "$pathcomp" in
21 | -* ) pathcomp=./$pathcomp ;;
22 | esac
23 |
24 | if test ! -d "$pathcomp"; then
25 | echo "mkdir $pathcomp"
26 |
27 | mkdir "$pathcomp" || lasterr=$?
28 |
29 | if test ! -d "$pathcomp"; then
30 | errstatus=$lasterr
31 | fi
32 | fi
33 |
34 | pathcomp="$pathcomp/"
35 | done
36 | done
37 |
38 | exit $errstatus
39 |
40 | # mkinstalldirs ends here
41 |
--------------------------------------------------------------------------------
/nsock/examples/Makefile:
--------------------------------------------------------------------------------
1 | CC = gcc
2 | CCOPT =
3 | DEFS =
4 | NBASEDIR=../../nbase
5 | NSOCKLIB=../src/libnsock.a
6 | NBASELIB=$(NBASEDIR)/libnbase.a
7 | OPENSSLLIB=-lssl -lpcap -lcrypto
8 | INCLS = -I../include -I$(NBASEDIR)
9 | CFLAGS = -I/usr/local/include -Wall -g $(CCOPT) $(DEFS) $(INCLS)
10 | LDFLAGS =
11 | PCAPBASEDIR=../../libpcap
12 | PCAPLIB=$(PCAPBASEDIR)/libpcap.a
13 | RM = rm -f
14 |
15 | TARGETS = nsock_test_timers nsock_telnet
16 |
17 | all: $(TARGETS)
18 |
19 | nsock_telnet: nsock_telnet.o $(NSOCKLIB)
20 | $(CC) -o $@ $(CFLAGS) nsock_telnet.o $(NSOCKLIB) $(NBASELIB) $(OPENSSLLIB)
21 |
22 | nsock_test_timers: nsock_test_timers.o $(NSOCKLIB)
23 | $(CC) -o $@ $(CFLAGS) nsock_test_timers.o $(NSOCKLIB) $(NBASELIB) $(OPENSSLLIB)
24 |
25 | nsock_pcap: nsock_pcap.o $(NSOCKLIB) $(PCAPLIB)
26 | $(CC) -o $@ $(CFLAGS) nsock_pcap.o $(NSOCKLIB) $(NBASELIB) $(OPENSSLLIB) $(PCAPLIB)
27 |
28 | clean:
29 | $(RM) *.o $(TARGETS)
30 |
--------------------------------------------------------------------------------
/zenmap/share/zenmap/docs/help.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Nmap/Zenmap Help
5 |
6 |
7 |
Nmap/Zenmap Help
8 |
9 |
Nmap is documented extensively online. Zenmap documentation exists and is improving. You can find it all at the Nmap documentation directory. Further information is available from the Zenmap web page itself.
10 |
11 |
On Unix, you can also run man nmap and man zenmap to learn about your installed Nmap version, though the online Nmap docs are more comprehensive and always up-to-date.
12 |
13 |