Difference between revisions of "ScanAutomation"

From timswiki
Jump to navigation Jump to search
(Created page with "==IPv6 Port Scan Automation== '''Please ensure that you accept the terms of use for ''[http://ipv6.chappell-family.com/ipv6tcptest/ my IPv6 port scanner]'' and are authorised...")
 
Line 1: Line 1:
 
==IPv6 Port Scan Automation==
 
==IPv6 Port Scan Automation==
  
 +
===Terms of Use===
 
'''Please ensure that you accept the terms of use for ''[http://ipv6.chappell-family.com/ipv6tcptest/ my IPv6 port scanner]'' and are authorised to perform IPv6 port scans against the machine that you wish to test ''BEFORE'' attempting any of the steps outlined below. Please also ensure that you are not accessing web pages using an HTTP proxy. If in doubt then a web proxy can be disabled by following the command-line examples shown below.'''
 
'''Please ensure that you accept the terms of use for ''[http://ipv6.chappell-family.com/ipv6tcptest/ my IPv6 port scanner]'' and are authorised to perform IPv6 port scans against the machine that you wish to test ''BEFORE'' attempting any of the steps outlined below. Please also ensure that you are not accessing web pages using an HTTP proxy. If in doubt then a web proxy can be disabled by following the command-line examples shown below.'''
  
  
 +
===Rules for Forming the URL===
 
It is possible to request automatic scans using '''''wget''''' but the URLs must be constructed as shown below. In each case you '''MUST:'''
 
It is possible to request automatic scans using '''''wget''''' but the URLs must be constructed as shown below. In each case you '''MUST:'''
  
Line 10: Line 12:
 
* include an includeexisting query term, setting it to either 1 (include default ports [[IPv6_Ports]]) or -1 (exclude default ports)
 
* include an includeexisting query term, setting it to either 1 (include default ports [[IPv6_Ports]]) or -1 (exclude default ports)
 
* include all 4 customport terms (numbered 0 to 3), setting them equal to nothing if they are unused
 
* include all 4 customport terms (numbered 0 to 3), setting them equal to nothing if they are unused
 +
* ensure that there are no spaces in the query string, particularly if using cut'n'paste
 
* wrap the resulting URL in quotes to ensure that the ampersand characters are not mis-interpreted
 
* wrap the resulting URL in quotes to ensure that the ampersand characters are not mis-interpreted
  
 
Failure to follow all of the above rules will result in a failure to scan your host. I'd also suggest that you specify a desired output document in the wget command-line since otherwise the filename will be somewhat convoluted!
 
Failure to follow all of the above rules will result in a failure to scan your host. I'd also suggest that you specify a desired output document in the wget command-line since otherwise the filename will be somewhat convoluted!
 +
 +
===Windows Users - please READ===
 +
If you're intending to test a windows PC, then you need to be careful which pre-compiled version of wget you have installed. Some of the available versions do not include IPv6 support. The download at the following link is known to work on windows 7:
 +
 +
* [http://gnuwin32.sourceforge.net/packages/wget.htm http://gnuwin32.sourceforge.net/packages/wget.htm]
 +
  
  
Line 18: Line 27:
  
  
==Testing just the default port list==
+
===Testing just the default port list===
  
  
Line 37: Line 46:
  
  
==Testing a single TCP port, e.g. 8080==
+
===Testing a single TCP port, e.g. 8080===
 
    
 
    
 
    
 
    
Line 56: Line 65:
  
  
==Testing the default port list and 3 custom ports==
+
===Testing the default port list and 3 custom ports===
  
  
Line 76: Line 85:
  
  
==HTML Results Scraping==
+
===HTML Results Scraping===
  
Here is a very quick and inelegant example of [[ResultScraping]] the returned html file.
+
It is possible to open the resulting ipv6.html file in a local web-browser, however you may prefer to summarise the results for easier checking. Here is a very quick and inelegant example of [[ResultScraping]] the returned html file.
  
  

Revision as of 15:17, 24 May 2012

IPv6 Port Scan Automation

Terms of Use

Please ensure that you accept the terms of use for my IPv6 port scanner and are authorised to perform IPv6 port scans against the machine that you wish to test BEFORE attempting any of the steps outlined below. Please also ensure that you are not accessing web pages using an HTTP proxy. If in doubt then a web proxy can be disabled by following the command-line examples shown below.


Rules for Forming the URL

It is possible to request automatic scans using wget but the URLs must be constructed as shown below. In each case you MUST:

  • target my IPv6-only host and IPv6 cgi-bin directory (www6.ipv6.chappell-family.com/cgi-bin6/)
  • use the text-browser compatible cgi target (ipscan-txt.cgi)
  • include an includeexisting query term, setting it to either 1 (include default ports IPv6_Ports) or -1 (exclude default ports)
  • include all 4 customport terms (numbered 0 to 3), setting them equal to nothing if they are unused
  • ensure that there are no spaces in the query string, particularly if using cut'n'paste
  • wrap the resulting URL in quotes to ensure that the ampersand characters are not mis-interpreted

Failure to follow all of the above rules will result in a failure to scan your host. I'd also suggest that you specify a desired output document in the wget command-line since otherwise the filename will be somewhat convoluted!

Windows Users - please READ

If you're intending to test a windows PC, then you need to be careful which pre-compiled version of wget you have installed. Some of the available versions do not include IPv6 support. The download at the following link is known to work on windows 7:


Now for some concrete examples:


Testing just the default port list

wget --no-proxy --output-document=ipv6.html "http://www6.ipv6.chappell-family.com/cgi-bin6/ipscan-txt.cgi?includeexisting=1&customport0=&customport1=&customport2=&customport3="

  
  --2012-01-28 14:28:03--  http://www6.ipv6.chappell-family.com/cgi-bin6/ipscan-txt.cgi?includeexisting=1&customport0=&customport1=&customport2=&customport3=
  Resolving www6.ipv6.chappell-family.com... 2001:470:1f08:185c::2
  Connecting to www6.ipv6.chappell-family.com|2001:470:1f08:185c::2|:80... connected.
  HTTP request sent, awaiting response... 200 OK
  Length: 10147 (9.9K) [text/html]
  Saving to: `ipv6.html' 
  
  100%[======================================>] 10,147      --.-K/s   in 0s
  
  2012-01-28 14:28:03 (165 MB/s) - `ipv6.html' saved [10147/10147]


Testing a single TCP port, e.g. 8080

wget --no-proxy --output-document=ipv6.html "http://www6.ipv6.chappell-family.com/cgi-bin6/ipscan-txt.cgi?includeexisting=-1&customport0=8080&customport1=&customport2=&customport3="

  --2012-01-28 14:37:21--  http://www6.ipv6.chappell-family.com/cgi-bin6/ipscan-txt.cgi?includeexisting=-1&customport0=8080&customport1=&customport2=&customport3=
  Resolving www6.ipv6.chappell-family.com... 2001:470:1f08:185c::2
  Connecting to www6.ipv6.chappell-family.com|2001:470:1f08:185c::2|:80... connected.
  HTTP request sent, awaiting response... 200 OK
  Length: 7323 (7.2K) [text/html]
  Saving to: `ipv6.html'
  
  100%[======================================>] 7,323       --.-K/s   in 0s
  
  2012-01-28 14:37:21 (112 MB/s) - `ipv6.html' saved [7323/7323]


Testing the default port list and 3 custom ports

wget --no-proxy --output-document=ipv6.html "http://www6.ipv6.chappell-family.com/cgi-bin6/ipscan-txt.cgi?includeexisting=1&customport0=8080&customport1=33452&customport2=65535&customport3="

  --2012-01-28 14:39:53--  http://www6.ipv6.chappell-family.com/cgi-bin6/ipscan-txt.cgi?includeexisting=1&customport0=8080&customport1=33452&customport2=65535&customport3=
  Resolving www6.ipv6.chappell-family.com... 2001:470:1f08:185c::2
  Connecting to www6.ipv6.chappell-family.com|2001:470:1f08:185c::2|:80... connected.
  HTTP request sent, awaiting response... 200 OK
  Length: 10263 (10K) [text/html]
  Saving to: `ipv6.html'
  
  100%[======================================>] 10,263      --.-K/s   in 0s
  
  2012-01-28 14:39:54 (222 MB/s) - `ipv6.html' saved [10263/10263]


HTML Results Scraping

It is possible to open the resulting ipv6.html file in a local web-browser, however you may prefer to summarise the results for easier checking. Here is a very quick and inelegant example of ResultScraping the returned html file.




<adsense>1</adsense>