Portcullis Labs - enumeration http://labs.portcullis.co.uk Labs Portcullis updates. en Labs portcullis Tue, 22 Feb 2011 11:21:15 GMT http://backend.userland.com/rss 60 Labs Portcullis hhttp://labs.portcullis.co.uk/mg/logo.gif http://labs.portcullis.co.uk udp-proto-scanner | Content Wed, 26 Nov 2008 16:23:36 GMT http://labs.portcullis.co.uk/application/udp-proto-scanner/ <p>udp-proto-scanner.pl discovers UDP services by sending triggers to a list of hosts:</p> <pre> $ udp-proto-scanner.pl -f ips.txt $ udp-proto-scanner.pl 10.0.0.0/16 172.16.16.1 192.168.0.1 $ udp-proto-scanner.pl -p ntp -f ips.txt </pre> <p>The probe names (for -p) are defined in udp-proto-scanner.conf. List probe names using the -l option:</p> <pre> $ udp-proto-scanner.pl -l </pre> <h2>What's it Used For?</h2> <p>It's used in the host-discovery and service-discovery phases of a pentest.<br /> <br /> It can be helpful if you need to discover hosts that only offer UDP services<br /> and are otherwise well firewalled - e.g. if you want to find all the DNS<br /> servers in a range of IP addresses. Alternatively on a LAN, you might want<br /> a quick way to find all the TFTP servers.<br /> <br /> Not all UDP services can be discovered in this way (e.g. SNMPv1 won't respond<br /> unless you know a valid community string). However, many UDP services can be<br /> discovered, e.g.:</p> <ul> <li>DNS</li> <li>TFTP</li> <li>NTP</li> <li>NBT</li> <li>SunRPC</li> <li>MS SQL</li> <li>DB2</li> <li>SNMPv3</li> </ul> <h2>It's Not a Portscanner</h2> <p>It won't give you a list of open and closed ports for each host. It's simply<br /> looking for specific UDP services.</p> <h2>Efficiency</h2> <p>It's most efficient to run udp-proto-scanner.pl against whole networks (e.g.<br /> 256 IPs or more). If you run it against small numbers of hosts it will seem<br /> quite slow because it waits for 1 second between each different type of probe.</p> <p>One cool feature of udp-proto-scanner is that it doesn't load the whole host list <br /> into memory. Therefore if you want to scan 17 million IPs, you can. It'll <br /> take a while, but you won't run out of memory.</p> <h2>Credits</h2> <p>The UDP probes are mainly taken from amap, nmap and ike-scan.<br /> Inspiration for the scanning code was drawn from ike-scan.<br /> Net::Netmask by David Muir Sharnoff is included in this tool.</p> Apache Users | Content Thu, 11 Sep 2008 11:22:18 GMT http://labs.portcullis.co.uk/application/apache-users/ <p>This Perl script will enumerate the usernames on any system that uses Apache with the UserDir module.</p> <p>&nbsp;</p> nbtscan-1.5.2 | Content Thu, 03 Apr 2008 14:24:31 GMT http://labs.portcullis.co.uk/application/nbtstat-1-5-2/ <p>NBTscan is a program for scanning IP networks for NetBIOS name information. It sends NetBIOS status query to each address in supplied range and lists received information in human readable form. For each responded host it lists IP address, NetBIOS computer name, logged-in user name and MAC address.</p> Banner Grab | Content Wed, 02 Apr 2008 12:36:30 GMT http://labs.portcullis.co.uk/application/bannergrab/ <p style="text-align: left;">BannerGrab is a tool that performs connection, trigger-based and basic information collection from network services. The program has two modes of operation; simple connection banner grabbing and the default mode which makes use of service triggers to enumerate additional information.</p> <p style="text-align: left;">BannerGrab can connect to TCP services, UDP services and can connect to SSL services. SSL service banner grabbing will also return the SSL connection details.</p> <h2>Requirements</h2> <p style="text-align: left;">BannerGrab requires the GNU C compiler and has been tested on Linux, but should work on other UNIX type systems. It has even been known to run from an iPhone.</p> <p style="text-align: left;">BannerGrab has an optional requirement of the OpenSSL library to perform SSL-based grabs. However, SSL support can be disabled.</p> <h2>Download</h2> <p style="text-align: left;">BannerGrab can be downloaded from the Source Forge project site at <a href="http://sourceforge.net/projects/bannergrab">sourceforge.net/projects/bannergrab</a>.</p> <h2>Compiling</h2> <p style="text-align: left;">BannerGrab includes a Makefile, so it can be built in the usual way:</p> <ul> <li style="text-align: left;"><code>make</code></li> <li style="text-align: left;"><code>make install </code> (as root)</li> </ul> <p style="text-align: left;">However, it can be manually compiled as follows:</p> <p style="text-align: left;"><code>gcc -lssl -o bannergrab bannergrab.c</code></p> <p style="text-align: left;">On Mac OS-X systems it can be compiled as follows:</p> <p style="text-align: left;"><code>gcc -lssl -lcrypto -o bannergrab bannergrab.c</code></p> <p style="text-align: left;">It can be compiled without OpenSSL support as follows:</p> <p style="text-align: left;"><code>gcc -DNOSSL -o bannergrab bannergrab.c</code></p> <h2>Running</h2> <p style="text-align: left;">BannerGrab can be run in its simplest form by specifying a host and port as the parameters. For example:</p> <p style="text-align: left;"><code>bannergrab 127.0.0.1 80</code></p> <p style="text-align: left;">More advanced options can be shown using the online help with the following command:</p> <p style="text-align: left;"><code>bannergrab --help</code></p> <h2>License</h2> <p style="text-align: left;">BannerGrab is covered by the GPL v3 license with the following exception:</p> <p><em>In addition, as a special exception, the copyright holders give<br /> permission to link the code of portions of this program with the<br /> OpenSSL library under certain conditions as described in each<br /> individual source file, and distribute linked combinations<br /> including the two.<br /> You must obey the GNU General Public License in all respects<br /> for all of the code used other than OpenSSL. If you modify<br /> file(s) with this exception, you may extend this exception to your<br /> version of the file(s), but you are not obligated to do so. If you<br /> do not wish to do so, delete this exception statement from your<br /> version. If you delete this exception statement from all source<br /> files in the program, then also delete it here.</em></p>