mirror of
https://github.com/nmap/nmap.git
synced 2025-12-08 21:51:28 +00:00
Copy nping, nsock, nbase, zenmap, ncat from their homes in /.
If you have trouble updating after this revision you need to follow these instructions. You have probably just seen an error like this: svn: URL 'svn://svn.insecure.org/nping' of existing directory 'nping' does not match expected URL 'svn://svn.insecure.org/nmap/nping' This is caused by the replacement of SVN externals. Here's what you need to do. First, save any local changes you might have in the nping, nsock, nbase, ncat, and zenmap directories. (For example by running "cd nping; svn diff > ../nping.diff".) If you don't have any local changes you can skip this step. Then run these commands: rm -rf nping/ nsock/ nbase/ ncat/ zenmap/ svn update svn cleanup If all else fails, you can just delete your whole working directory and check out anew: svn co --username guest --password "" svn://svn.insecure.org/nmap There may be further discussion in the mailing list thread at http://seclists.org/nmap-dev/2011/q4/303.
This commit is contained in:
6
ncat/docs/examples/scripts/README
Normal file
6
ncat/docs/examples/scripts/README
Normal file
@@ -0,0 +1,6 @@
|
||||
These are various scripts that demonstrate some
|
||||
potential usage for Ncat.
|
||||
|
||||
If you find a neat usage for Ncat and possibly
|
||||
write a few lines of code to automate something,
|
||||
then please email them over to Chris Gibson (chris@linuxops.net)
|
||||
5
ncat/docs/examples/scripts/http-proxy
Executable file
5
ncat/docs/examples/scripts/http-proxy
Executable file
@@ -0,0 +1,5 @@
|
||||
NCAT_PATH=../../..
|
||||
PROXY_HOST=www.cnn.com:80
|
||||
PROXY_AUTH=user:pass
|
||||
|
||||
$NCAT_PATH/ncat --http-proxy "$PROXY_HOST" --proxy-auth "$PROXY_AUTH" localhost 3128
|
||||
14
ncat/docs/examples/scripts/http-scan/README
Normal file
14
ncat/docs/examples/scripts/http-scan/README
Normal file
@@ -0,0 +1,14 @@
|
||||
HTTP-SCAN with Ncat
|
||||
~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
This is a simple exercise that uses a small amount of
|
||||
scripted automation that will throw out the banner
|
||||
information of n number of hosts listed in the file "iplist".
|
||||
|
||||
Ncat uses the "get.request" HTTP header to get the newly
|
||||
connected webserver to tell you about itself.
|
||||
|
||||
Usage: ./scan-example
|
||||
|
||||
Variables to change: None, but you may want to change "iplist"
|
||||
to other more informative hosts.
|
||||
3
ncat/docs/examples/scripts/http-scan/get.request
Normal file
3
ncat/docs/examples/scripts/http-scan/get.request
Normal file
@@ -0,0 +1,3 @@
|
||||
HEAD / HTTP/1.0
|
||||
|
||||
|
||||
5
ncat/docs/examples/scripts/http-scan/iplist
Normal file
5
ncat/docs/examples/scripts/http-scan/iplist
Normal file
@@ -0,0 +1,5 @@
|
||||
www.google.com
|
||||
www.microsoft.com
|
||||
www.apache.org
|
||||
www.freebsd.org
|
||||
www.apple.com
|
||||
7
ncat/docs/examples/scripts/http-scan/scan-example
Executable file
7
ncat/docs/examples/scripts/http-scan/scan-example
Executable file
@@ -0,0 +1,7 @@
|
||||
NCAT_PATH=../../../..
|
||||
if [ -a "$NCAT_PATH/ncat" ]
|
||||
then
|
||||
for addr in `cat iplist`; do $NCAT_PATH/ncat --disable-eof-exit $addr 80 < get.request; done;
|
||||
else
|
||||
echo "Ncat is not buit. Please build Ncat before you use these scripts";
|
||||
fi
|
||||
57
ncat/docs/examples/scripts/http-scan/scanner-output
Normal file
57
ncat/docs/examples/scripts/http-scan/scanner-output
Normal file
@@ -0,0 +1,57 @@
|
||||
Connected to 66.102.9.147:80
|
||||
HTTP/1.0 302 Found
|
||||
Location: http://www.google.co.uk/
|
||||
Set-Cookie: PREF=ID=b6262fee80b28ffc:TM=1137945347:LM=1137945347:S=s7TLf6mcMNGW-33R; expires=Sun, 17-Jan-2038 19:14:07 GMT; path=/; domain=.google.com
|
||||
Content-Type: text/html
|
||||
Server: GWS/2.1
|
||||
Content-Length: 224
|
||||
Date: Sun, 22 Jan 2006 15:55:47 GMT
|
||||
Connection: Keep-Alive
|
||||
|
||||
Connected to 207.46.198.30:80
|
||||
HTTP/1.1 200 OK
|
||||
Connection: close
|
||||
Date: Sun, 22 Jan 2006 15:55:48 GMT
|
||||
Server: Microsoft-IIS/6.0
|
||||
P3P: CP="ALL IND DSP COR ADM CONo CUR CUSo IVAo IVDo PSA PSD TAI TELo OUR SAMo CNT COM INT NAV ONL PHY PRE PUR UNI"
|
||||
X-Powered-By: ASP.NET
|
||||
X-AspNet-Version: 2.0.50727
|
||||
Cache-Control: private
|
||||
Content-Type: text/html; charset=utf-8
|
||||
Content-Length: 21061
|
||||
|
||||
Connected to 209.237.227.195:80
|
||||
HTTP/1.1 200 OK
|
||||
Date: Sun, 22 Jan 2006 15:55:48 GMT
|
||||
Server: Apache/2.2.0 (Unix)
|
||||
Last-Modified: Wed, 18 Jan 2006 03:00:54 GMT
|
||||
ETag: "997bf1-2d93-419e2580"
|
||||
Accept-Ranges: bytes
|
||||
Content-Length: 11667
|
||||
Cache-Control: max-age=86400
|
||||
Expires: Mon, 23 Jan 2006 15:55:48 GMT
|
||||
Connection: close
|
||||
Content-Type: text/html; charset=ISO-8859-1
|
||||
|
||||
Connected to 216.136.204.117:80
|
||||
HTTP/1.1 200 OK
|
||||
Date: Sun, 22 Jan 2006 15:55:49 GMT
|
||||
Server: Apache/1.3.x LaHonda (Unix)
|
||||
Last-Modified: Fri, 20 Jan 2006 21:24:33 GMT
|
||||
ETag: "26f8f7-9839-43d15511"
|
||||
Accept-Ranges: bytes
|
||||
Content-Length: 38969
|
||||
Connection: close
|
||||
Content-Type: text/html
|
||||
X-Pad: avoid browser bug
|
||||
|
||||
Connected to 17.112.152.32:80
|
||||
HTTP/1.0 200 OK
|
||||
Age: 328
|
||||
Date: Sun, 22 Jan 2006 15:50:20 GMT
|
||||
Content-Length: 26131
|
||||
Content-Type: text/html
|
||||
Expires: Sun, 22 Jan 2006 16:10:20 GMT
|
||||
Cache-Control: max-age=1200
|
||||
Server: Apache/1.3.29 (Darwin) PHP/4.3.1
|
||||
|
||||
Reference in New Issue
Block a user