Portcullis Labs - Ian http://labs.portcullis.co.uk Labs Portcullis updates. en Labs portcullis Fri, 13 Apr 2012 12:13:01 GMT http://backend.userland.com/rss 60 Labs Portcullis hhttp://labs.portcullis.co.uk/mg/logo.gif http://labs.portcullis.co.uk Sun Patch Check | Content Wed, 02 Apr 2008 10:49:02 GMT http://labs.portcullis.co.uk/application/sun-patch-check/ <p>Sun Patch Check is a tool that does exactly what it says on the tin. Sun Patch Check compares the output from the Sun Solaris <code>showrev</code> command to that from the Sun recommended patch list.</p> <h2>Requirements</h2> <p>Sun Patch Check only requires the GNU C compiler.</p> <h2>Download</h2> <p>The latest version of Sun Patch Check can be downloaded from <a href="http://www.titania.co.uk/sunpatchcheck.php">here</a>.</p> <h2>Compiling</h2> <p>Sun Patch Check can be compiled from source using the following command:</p> <p><code>gcc -o sunpatchcheck sunpatchcheck.c</code></p> <h2>Running</h2> <p>Before you can use Sun Patch Check to check the patches of any Sun Solaris system you will need to update the patch list from the Sun web site. This can be done with the following command:</p> <p><code>sunpatchcheck --update</code></p> <p>You may want to update the patch list on a regular basis otherwise there may be more recent patches missing from the database.</p> <p>You will need to collect a patch list from a Sun Solaris system you want to check. This can be done with the following Solaris command:</p> <p><code>showrev -p &gt;patchlist.txt</code></p> <p>Sun Patch Check needs to know what version of Solaris you are comparing the patches from, this is specified on the command line when running Sun Patch Check. To check the patches from a Solaris 10 Sparc system using the file extracted in the previous example:</p> <p><code>sunpatchcheck --check=patchlist.txt --solaris=10</code></p> <p>Online help for all options is available using:</p> <p><code>sunpatchcheck --help</code></p> <h2>License</h2> <p>Sun Patch Check is covered by the GPL v3 license, but you will also need to agree to the <a href="http://sunsolve.sun.com/show.do?target=tous">Sun Solve license</a>.</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> viewstate | Content Wed, 02 Apr 2008 10:50:25 GMT http://labs.portcullis.co.uk/application/viewstate/ <p>Viewstate is an ASP.Net viewstate decoder, checker, parser and encoder. It supports both old and new types of viewstate and the data can be extracted directly from the web.</p> <h2>Requirements</h2> <p>Viewstate is platform independent and can be downloaded in source code or Windows binary formats. If you are building viewstate from source you will need the GNU C compiler (under Windows you can use MinGW).</p> <h2><b>Downloads</b></h2> <p>Viewstate can be downloaded from the Source Forge project page <a href="http://sourceforge.net/projects/viewstate">sourceforge.net/projects/viewstate</a>.</p> <h2>Compiling</h2> <p>A Makefile is provided to provide the usual compilation process of:</p> <ul> <li>make</li> <li>make install (as root)</li> </ul> <p>However, you can compile it manually with the following:</p> <ul> <li>gcc -o viewstate viewstate.c</li> </ul> <h2><b>Running</b></h2> <p>If viewstate is run with no options, the online help is displayed. But a simple decode of the viewstate data held by the Acme company web site would be:</p> <p><code>viewstate --decode --url=http://www.acme.fake/main.asp</code></p> <h2>License</h2> <p>Viewstate is covered by the GPL v3 license.</p>