Portcullis Labs - windows http://labs.portcullis.co.uk Labs Portcullis updates. en Labs portcullis Tue, 15 Dec 2009 11:32:43 GMT http://backend.userland.com/rss 60 Labs Portcullis hhttp://labs.portcullis.co.uk/mg/logo.gif http://labs.portcullis.co.uk polenum | Content Thu, 30 Oct 2008 11:54:12 GMT http://labs.portcullis.co.uk/application/polenum/ <p>polenum is a python script which uses the&nbsp;<a href="http://oss.coresecurity.com/projects/impacket.html">Impacket</a> Library from CORE Security Technologies to extract the password policy information from a windows machine. This allows a non-windows (Linux, Mac OSX, BSD etc..) user to query the password policy of a remote windows box without the need to have access to a windows machine.</p> <h2>features</h2> <ul> <li>can extract password and associated information from a windows machine</li> <li>will connect over a NULL or authenticated share</li> <li>supports encrypted/signed sessions</li> </ul> <h2>limitations</h2> <ul> <li>no NTLMv2 support</li> <li>has a problem with domain connected workstations</li> </ul> <h2>download</h2> <p><a href="/download/polenum-0.2.tar.bz2"> download polenum</a></p> <p>&nbsp;</p> BSQL Hacker | Content Wed, 29 Oct 2008 15:28:02 GMT http://labs.portcullis.co.uk/application/bsql-hacker/ <p>BSQL (Blind SQL) Hacker is an automated SQL Injection Framework / Tool designed to exploit SQL injection vulnerabilities virtually in any database.</p> <p>BSQL Hacker aims for experienced users as well as beginners who want to automate SQL Injections (especially Blind SQL Injections).</p> <p>It allows metasploit alike exploit repository to share and update exploits.</p> <ul> <li><a rel="nofollow" href="http://www.vimeo.com/1536040?pg=embed&amp;sec=1536040">See a sample exploitation video.</a></li> <li><a href="http://code.google.com/p/bsqlhacker/issues/list">Bug Report</a></li> <li><a href="http://bsql.uservoice.com/">Feature Request</a><a href="http://code.google.com/p/bsqlhacker/issues/list"><br /> </a></li> </ul> <h2>Source Code Repository</h2> <ul> <li><a href="http://code.google.com/p/bsqlhacker/ ">Public SVN Server</a> <i>(including nightly builds development environment)</i></li> </ul> <h2>Download Installer</h2> <ul> <li><a href="/download/BSQLHackerSetup-0909.exe">BSQLHackerSetup-0909.exe<br /> </a></li> </ul> <h2>Key Features</h2> <ul> <li>Easy Mode <ul> <li>SQL Injection Wizard</li> <li>Automated Attack Support (database dump) <ul> <li>ORACLE</li> <li>MSSQL</li> <li>MySQL (experimental)</li> </ul> </li> </ul> </li> <li>General <ul> <li>Fast and Multithreaded</li> <li>4 Different SQL Injection Support <ul> <li>Blind SQL Injection</li> <li>Time Based Blind SQL Injection</li> <li>Deep Blind (based on advanced time delays) SQL Injection</li> <li>Error Based SQL Injection</li> </ul> </li> <li>Can automate most of the new SQL Injection methods those relies on Blind SQL Injection</li> <li>RegEx Signature support</li> <li>Console and GUI Support</li> <li>Load / Save Support</li> <li>Token / Nonce / ViewState etc. Support</li> <li>Session Sharing Support</li> <li>Advanced Configuration Support</li> <li>Automated Attack mode, Automatically extract all database schema and data mode</li> </ul> </li> </ul> <ul> <li>Update / Exploit Repository Features <ul> <li>Metasploit alike but exploit repository support</li> <li>Allows to save and share SQL Injection exploits</li> <li>Supports auto-update</li> <li>Custom GUI support for exploits (cookie input, URL input etc.)</li> </ul> </li> </ul> <ul> <li>GUI Features <ul> <li>Load and Save</li> <li>Template and Attack File Support (Users can save sessions and share them. Some sections like username, password or cookie in the templates can be show to the user in a GUI)</li> <li>Visually view true and false responses as well as full HTML response, including time and stats</li> </ul> </li> </ul> <ul> <li>Connection Related <ul> <li>Proxy Support (Authenticated Proxy Support)</li> <li>NTLM, Basic Auth Support, use default credentials of current user/application</li> <li>SSL (also invalid certificates) Support</li> <li>Custom Header Support</li> </ul> </li> </ul> <ul> <li>Injection Points (only one of them or combination) <ul> <li>Query String</li> <li>Post</li> <li>HTTP Headers</li> <li>Cookies</li> </ul> </li> </ul> <ul> <li>Other <ul> <li>Post Injection data can be stored in a separated file</li> <li>XML Output (not stable)</li> <li>CSRF protection support</li> </ul> </li> </ul> <p>one time session tokens or asp.net viewstate ort similar can be used for separated login sessions, bypassing proxy pages etc.</p> <hr /> <p><strong>It's still beta and there are known issues :</strong></p> <ul> <li>Automated Attack for MySQL is experimental, might not work properly</li> </ul> XSS Shell | Content Mon, 10 Nov 2008 14:11:20 GMT http://labs.portcullis.co.uk/application/xssshell/ <p>XSS Shell is powerful a XSS backdoor and zombie manager. This concept first presented by &quot;XSS-Proxy - http://xss-proxy.sourceforge.net/&quot;. Normally in XSS attacks attacker has one shot, in XSS Shell you can interactively send requests and get responses from victim. you can backdoor the page.</p> <p>You can steal basic auth, you can bypass IP restrictions in administration panels, you can DDoS some systems with a permanent XSS vulnerability etc. Attack possibilities are limited with ideas. Basically this tool demonstrates that you can do more with XSS.</p> <h2>Download</h2> <p>This package includes the latest version of XSS Shell and <a href="/application/xss-tunnelling/xss-tunnel/">XSS Tunnel</a>. XSS Shell can be used without XSS Tunnel, however you'll get more out of it with <a href="/application/xss-tunnelling/xss-tunnel/">XSS Tunnel</a>.&nbsp; </p> <p><a href="/download/xssshell-xsstunnell.zip ">Download SS Shell and XSS Tunnel</a></p> <h2>Features</h2> <p>XSS Shell has several features to gain whole access over victim. Also you can simply add your own commands.</p> <p>Most of the features can enable or disabled from configuration or can be tweaked from source code.</p> <ul> <li>Regenerating Pages <ul> <li>This is one of the key and advanced features of XSS Shell. XSS Shell re-renders the infected page and keep user in virtual environment. Thus even user click any links in the infected page he or she will be still under control! (within cross-domain restrictions) In normal XSS attacks when user leaves the page you can't do anything</li> <li>Secondly this feature keeps the session open so even victim follow an outside link from infected page session is not going to timeout and you will be still in charge.</li> </ul> </li> <li>Keylogger</li> <li>Mouse Logger (click points + current DOM)</li> <li>Built-in Commands;<br /> <ul> <li>Get Keylogger Data</li> <li>Get Current Page (Current rendered DOM / like screenshot)</li> <li>Get Cookie</li> <li>Execute supplied javaScript (eval)</li> <li>Get Clipboard (IE only)</li> <li>Get internal IP address (Firefox + JVM only)</li> <li>Check victim's visited URL history</li> </ul> </li> </ul> <h2><br /> Installation</h2> <p>XSS Shell uses ASP + MS Access database as backend but you can simply port them into any other server-side solution. You just need to stick with simple communication protocol.</p> <h3>Install Admin Interface</h3> <ol> <li>Copy &quot;xssshell&quot; folder into your web server</li> <li>Copy &quot;db&quot; to a secure place (below root)</li> <li>Configure &quot;database path&quot; from &quot;xssshell/db.asp&quot;</li> <li>Modify hard coded password in db.asp [default password is : w00t]</li> <li>Now you can access admin interface from something like http://[YOURHOST]/xssshell/</li> </ol> <h3>Configure XSS Shell for communication;</h3> <ol> <li>Open xssshell.asp</li> <li>2. Set &quot;SERVER&quot; variable to where your XSSShell folder is located. i.e: &quot;http://[YOURHOST]/xssshell/&quot;;</li> <li>3. Be sure to check &quot;ME&quot;, &quot;CONNECTOR&quot;, &quot;COMMANDS_URL&quot; variables. If you changed filenames, folder names or some kind of different configuration you need modify them.</li> </ol> <p>Now open your admin interface from your browser,<br /> <br /> To test it, just modify &quot;sample_victim/default.asp&quot; source code and replace &quot;http://attacker:81/release/xssshell.js&quot; URL with your own XSS Shell URL. Open &quot;sample_victim&quot; folder in some other browser and may be upload in to some other server.</p> <p>Now you should see a zombie in admin interface. Just write something into &quot;parameters&quot; textarea and click &quot;alert()&quot;. You should see an alert message in victim's browser.</p> <p><br /> Security Notes</p> <ul> <li>As a hunter be careful about possible &quot;Backfire&quot; in getSelfHTML(). Someone can hack you back or track you by another XSS or XSS Shell attack.</li> <li>Checkout &quot;showdata.asp&quot; and implement your own &quot;filter()&quot; function to make it safer for you.</li> <li>Put &quot;On error resume next&quot; to db.asp, better modify your web server to not show any error.</li> </ul> <h2>How to Extend</h2> <p>First implement new feature to xssshell.asp</p> <ol> <li>Add new enum for your control <ul> <li>Set a name and unique number like &quot;CMD_GETCOOKIE&quot;</li> <li>var CMD_SAMPLE = 78;</li> <li>Set datatype for your response (generally TEXT),</li> <li>dataTypes[CMD_SAMPLE] = TEXT;</li> </ul> </li> <li>Write your function and add it to page <ul> <li>function cmdSample(){return &quot;yeah working !&quot;}</li> </ul> </li> <li>Call it <ul> <li>Go inside to &quot;function processGivenCommand(cmd)&quot;</li> <li>Add a new case like &quot;case CMD_SAMPLE:&quot;</li> </ul> </li> <li>Report it back <ul> <li>Inside the case call log;<br /> &quot;log(cmdSample(), dataTypes[cmd.cmd], cmd.attackID, &quot;waitAndRun()&quot;);&quot;</li> </ul> </li> </ol> <p>Secondly Implement it to admin interface;</p> <ul> <li>In db.asp just add a new element to &quot;Commands&quot; array (command name, command unique number, description).<br /> <br /> i.e. &quot;cmdSample()&quot;,78,&quot;Command sample ! Just returns a message&quot;</li> </ul> <p>There are parameters and lots of helper in the code. Check out other commands for reference. <br /> <br /> Enable debug feature to debug your new commands easily.</p> <h2>External Libraries</h2> <ul> <li>moo.ajax -moofx.mad4milk.net</li> <li>script.aculo.us - (http://script.aculo.us, http://mir.aculo.us)</li> </ul> enum4linux | Content Tue, 16 Sep 2008 11:29:28 GMT http://labs.portcullis.co.uk/application/enum4linux/ <p>Enum4linux is a tool for enumerating information from Windows and Samba systems. It attempts to offer similar functionality to enum.exe formerly available from www.bindview.com.<br /> <br /> It is written in PERL and is basically a wrapper around the Samba tools smbclient, rpclient, net and nmblookup. The samba package is therefore a dependency.<br /> <br /> Features include:</p> <ul> <li>RID Cycling (When RestrictAnonymous is set to 1 on Windows 2000)</li> <li>User Listing (When RestrictAnonymous is set to 0 on Windows 2000)</li> <li>Listing of Group Membership Information</li> <li>Share Enumeration</li> <li>Detecting if host is in a Workgroup or a Domain</li> <li>Identifying the remote Operating System</li> <li>Password Policy Retrieval (using <a href="/application/polenum/">polenum</a>)</li> </ul> <p>Check out the <a href="/content/enum4linux/usage/">usage</a> page for a full list of options. There are also lots of <a href="/content/enum4linux/examples/">examples</a> to get you started.</p>