Portcullis Labs - All Content http://labs.portcullis.co.uk Labs Portcullis updates. en Labs portcullis Thu, 13 Nov 2008 13:08:42 GMT http://backend.userland.com/rss 60 Labs Portcullis hhttp://labs.portcullis.co.uk/mg/logo.gif http://labs.portcullis.co.uk ldapuserenum | Content Thu, 13 Nov 2008 10:40:02 GMT http://labs.portcullis.co.uk/application/ldapuserenum/ <h2>Microsoft Windows Active Directory LDAP Server Information Disclosure Vulnerability</h2> <p>An information disclosure vulnerability exists in the manner that Microsoft LDAP server responds when binding to the LDAP server. In the case when an invalid password is provided, the server will respond with result code 49 (invalidCredentials) and an error message.&nbsp; A different error message is returned if an invalid username is provided.</p> <p>The official advisory is on <a href="http://www.portcullis-security.com/40.php">Portcullis Corporate site</a> and the exploit can be found here.</p> <h2>Usage</h2> <pre> $ python ldapuserenum-0.1.py -h Usage: ldapuserenum-0.1.py [-i] -t <target><br /><br />Options:<br />&nbsp; --version&nbsp;&nbsp; show program's version number and exit<br />&nbsp; -h, --help&nbsp; show this help message and exit<br />&nbsp; -d&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; show description and exit<br />&nbsp; -t TARGET&nbsp;&nbsp; target IP or hostname<br />&nbsp; -i, --info&nbsp; show LDAP information gathering results<br /></target></pre> <h2>Example</h2> <p><span style="font-family: monospace;">$ python ldapuserenum-0.1.py -t 192.168.123.32<br /> <br /> Going to enumerate users taking './users.txt' file as input<br /> <br /> [*] Enumerated users:<br /> &nbsp;&nbsp; &nbsp;[*] User: testuser<br /> &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;[*] LDAP error code: 52e<br /> &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;[*] LDAP message: invalid credentials<br /> &nbsp;&nbsp; &nbsp;[*] User: administrator<br /> &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;[*] LDAP error code: 52e<br /> &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;[*] LDAP message: invalid credentials<br /> &nbsp;&nbsp; &nbsp;[*] User: guest<br /> &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;[*] LDAP error code: 52e<br /> &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;[*] LDAP message: invalid credentials<br /> &nbsp;&nbsp; &nbsp;[*] User: aspnet<br /> &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;[*] LDAP error code: 52e<br /> &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;[*] LDAP message: invalid credentials<br /> </span></p> Insecure Trends in Web 2.0 Applications | Content Fri, 31 Oct 2008 16:08:40 GMT http://labs.portcullis.co.uk/application/insecure-trends-in-web-2-0/ <p>Non technical talk about insecure trends in Web 2.0 applications. Explains what's wrong with today's Web 2.0 applications and why new comers keep repeating these.</p> <p>&nbsp;</p> Flash Security | Content Fri, 31 Oct 2008 16:00:50 GMT http://labs.portcullis.co.uk/application/flash-security/ <p><a href="/download/Flash-Security.pps">This presentation</a> given at <a href="http://www.riatalks.com/istanbul/agust/index.cfm">RIATalks</a>, it's about fundamental flash security issues, attack surface of Flash and secure development.</p> <p>During the presentation there was stealing data through vulnerable Crossdomain.xml files, <a href="/download/FlashSecurityCrossdomain.zip">you can download source code of this file - FlashSecurityCrossdomain.zip</a>.</p> MS08-067 check | Content Mon, 10 Nov 2008 17:07:32 GMT http://labs.portcullis.co.uk/application/ms08-067-check/ <p>This tool can be used to anonymously check if a target machine or a list of target machines are affected by <a href="http://www.microsoft.com/technet/security/Bulletin/ms08-067.mspx">MS08-067</a> issue (Vulnerability in Server Service Could Allow Remote Code Execution).</p> <h2>Usage</h2> <pre> $ python ms08-067_check-0.5.py -h Usage: ms08-067_check-0.5.py [option] {-t &lt;target&gt;|-l &lt;iplist.txt&gt;} Options: --version show program's version number and exit -h, --help show this help message and exit -d show description and exit -t TARGET target IP or hostname -l LIST text file with list of targets -s be silent<target><iplist.txt><br /></iplist.txt></target></pre> <h2>Example</h2> <pre> $ python ms08-067_check-0.5.py -t 192.168.123.30 192.168.123.30: VULNERABLE </pre> <h2>Note</h2> <p>On Windows XP Service Pack 2 and Windows XP Service Pack 3 this check might lead to a race condition and heap corruption in the <i>svchost.exe</i> process, but it may not crash the service immediately: it can trigger later on inside any of the shared services in the process.</p> <h2>References</h2> <ul> <li>BID: <a href="http://www.securityfocus.com/bid/31874">31874</a></li> <li>CVE: <a href="http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-4250">2008-4250</a></li> <li><a href="http://blogs.technet.com/swi/archive/2008/10/25/most-common-questions-that-we-ve-been-asked-regarding-ms08-067.aspx">http://blogs.technet.com/swi/archive/2008/10/25/most-common-questions-that-we-ve-been-asked-regarding-ms08-067.aspx</a></li> <li><a href="http://www.microsoft.com/technet/security/advisory/958963.mspx">http://www.microsoft.com/technet/security/advisory/958963.mspx</a></li> <li><a href="http://www.phreedom.org/blog/2008/decompiling-ms08-067/">http://www.phreedom.org/blog/2008/decompiling-ms08-067/</a></li> <li><a href="http://metasploit.com/dev/trac/browser/framework3/trunk/modules/exploits/windows/smb/ms08_067_netapi.rb">http://metasploit.com/dev/trac/browser/framework3/trunk/modules/exploits/windows/smb/ms08_067_netapi.rb</a></li> <li><a href="http://blog.threatexpert.com/2008/10/gimmiva-exploits-zero-day-vulnerability.html">http://blog.threatexpert.com/2008/10/gimmiva-exploits-zero-day-vulnerability.html</a></li> <li><a href="http://blogs.securiteam.com/index.php/archives/1150">http://blogs.securiteam.com/index.php/archives/1150</a></li> </ul> udp-proto-scanner | Content Wed, 29 Oct 2008 14:17:21 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 -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> <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.</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> 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> vessl | Content Thu, 30 Oct 2008 11:51:42 GMT http://labs.portcullis.co.uk/application/vessl/ <p>vessl is a simple wrapper script that connects, extracts and then verifies the ssl certificate of an encrypted service. It was originally written in order to script up the ability to verify ssl certificates across a large network. </p> <h2>features</h2> <ul> <li>vessl will connect to any service that openssl can</li> <li>it will extract and verify against a given CA Pem file</li> <li>it will check that certificate matches the host it is on</li> <li>it produce a map going from ip's to hostname</li> <li>checks to see if certificate is based on a blacklisted debian key</li> </ul> <h2>dependencies</h2> <ul> <li>openssl</li> <li>ping</li> <li><a href="https://launchpad.net/ubuntu/+source/openssl-blacklist/">openssl-vulnkey</a></li> <li>mktemp</li> <li><a href="/content/vessl/generating-a-ca-pem-file/">CA Pem File</a></li> </ul> <h2>download</h2> <p><a href="/download/vessl-0.3.1.tar.bz2"> download vessl</a></p> <p>&nbsp;</p> BSQL Hacker Help | Document Mon, 18 Aug 2008 15:33:37 GMT http://labs.portcullis.co.uk/content/bsql-hacker/help/ <ul> <li><a href="http://www.vimeo.com/1536040">See BSQL Hacker Videos</a></li> <li><a href="/download/BSQL_Hacker_Manual.pdf">Download BSQL Manual</a></li> </ul> 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> Deep Blind SQL Injection | Content Mon, 18 Aug 2008 06:28:37 GMT http://labs.portcullis.co.uk/application/deep-blind-sql-injection/ <p>Deep Blind SQL Injection reading data is more complex than in classic blind injection. However it is still possible to retrieve data, moreover it is possible with a 66% reduction in the number of requests made of the server, requiring two rather than six requests to retrieve each char.</p> <p><a href="/download/Deep_Blind_SQL_Injection.pdf">Download White Paper</a></p> DoS Attacks Using SQL Wildcards | Content Mon, 18 Aug 2008 06:19:30 GMT http://labs.portcullis.co.uk/application/dos-attacks-using-sql-wildcards/ <p>This paper discusses abusing Microsoft SQL Query wildcards to consume CPU in database servers. This can be achieved using only the search field present in most common web applications. If an application has the following properties then it is highly possibly vulnerable to wildcard attacks:</p> <p><br /> 1- An SQL Server Backend;<br /> 2- More than 300 records in the database and around 500 bytes of data per row;<br /> 3- An application level search feature.</p> <p>As you might notice I have just described 90% of Microsoft SQL Server based CMSs, blogs, CRMs and e-commerce web applications. Other databases could be vulnerable depending on how the applications implement search functionalities although common implementation of the search functionality in SQL Server back-end applications is vulnerable.</p> <p>&nbsp;</p> <p><a href="/download/DoS_Attacks_Using_SQL_Wildcards.pdf">Download White Paper</a></p> Introduction To Format Strings | Content Tue, 17 Jun 2008 13:11:17 GMT http://labs.portcullis.co.uk/application/introduction-to-format-strings/ <h2>What?</h2> <p>This presentation tries to cover the basics of format strings exploitation. Starting with an explanation of the legitimate use of Format Strings (Yin) moving onto how programming flaws can be exploited using this technique.</p> <h2>Why?</h2> <p>I spent many months getting my head aorund the nuonces of FS explitation so though I would put together a presentation on all the little things that I though were they key points when coming accross this subject for the first time. This hopefully will&nbsp; act as a good basis for the <a href="/content/more-adventures-in-format-strings/">More Adventures In Format Strings</a> presentation</p> acccheck | Content Wed, 09 Apr 2008 18:48:49 GMT http://labs.portcullis.co.uk/application/acccheck/ <p>The tool is designed as a password dictionary attack tool that targets windows authentication via the SMB protocol. It is really a wrapper script around the 'smbclient' binary, and as a result is dependent on it for its execution.</p> <p>The simplest way to run the tool is as follows:<br /> <br /> ./acccheck.pl -t 10.10.10.1<br /> <br /> This mode of execution attempts to connect to the target ADMIN$ share with the username 'Administrator' and a [BLANK] for the password.<br /> <br /> ./acccheck.pl -t 10.10.10.1 -u test -p test<br /> <br /> This mode of execution attempts to connect to the target IPC$ share with the username 'test' and a password 'test'.<br /> <br /> Each -t, -u and -p flags can be substituted by -T, -U and -P, where each represents an input file rather than a single input from standard in.<br /> <br /> E.g.<br /> ./acccheck.pl -T iplist -U userfile -P passwordfile<br /> <br /> Only use -v mode on very small dictionaries, otherwise, this has the affect of slowing the scan down to the rate the system writes to standard out.<br /> <br /> Any username/password combinations found are written to a file called 'cracked' in the working directory.</p> MIBparse | Content Mon, 07 Apr 2008 23:38:19 GMT http://labs.portcullis.co.uk/application/mibparse/ <p>MIBparse.pl has been designed as an offline parser to quickly parse output from SNMP tools such as 'snmpwalk' (NET-SNMP project 'net-snmp.sourceforge.net'). The output returned depends on the options that are selected by the user. Typically, information relating to the system, services, open ports, users, shares and installed components is some of the information that can be extracted by the tool.</p> <p><b>Requirements</b></p> <p>The only requirement is Perl.</p> <p><b>Running</b></p> <p>The simplest way to run the tool is as follows:<br /> <br /> ./MIBparse -f public.txt<br /> <br /> Where &quot;public.txt&quot; is the output from 'snmpwalk' piped to a file. In this mode all available information is displayed to the user as standard out.<br /> <br /> The information that is output can be tailored using the '-a' flag. The following values can be used in conjunction with this flag:</p> <p><br /> 1 = All<br /> 2 = System<br /> 3 = Routing information<br /> 4 = Services<br /> 5 = TCP ports<br /> 6 = UDP ports<br /> 7 = Users<br /> 8 = Shares<br /> 9 = Domain<br /> 10 = Installed components<br /> 11 = Community strings</p> <p>Each value corresponds to the type of information that is output. As an example, '-a 7' will output all of the users from a Windows system. The example execution in this case would include:<br /> <br /> ./MIBparse.pl -f public.txt -a 7<br /> <br /> If you wish to execute the tool from a working directory which is not in your $PATH then the '-b' option can be used to specify the location of the 'tags' file. This option can also be used to specify any file as a tags file as long as the format of the file conforms to the example that is provided. The example execution in such a case would be:<br /> <br /> ./MIBparse.pl -f public.txt -b ./tags<br /> OR<br /> ./MIBparse.pl -f public.txt -b ./mytagsfile<br /> <br /> Finally, the '-b' flag can be used in conjunction with the '-a' flag. The example execution in such a case would be:<br /> <br /> ./MIBparse.pl -f public.txt -b ./mytagsfile -a 7</p> How to Detect and Exploit 99% of XSS Vulnerabilities | Content Wed, 02 Apr 2008 16:23:40 GMT http://labs.portcullis.co.uk/application/how-to-detect-and-exploit-99-of-xss-vulnerabilities/ <p>This presentation has given in Intercon 2007 (Portcullis's internal conference), Talks about exploiting and identifying most common XSS vulnerabilities in real world. </p> <p>Examples include following types,</p> <ul> <li>Classic XSS Vulnerabilities</li> <li>In HTML Attributes</li> <li>In Comments</li> <li>In Javascript Blocks</li> <li>DOM Based XSS</li> <li>Flash Based XSS</li> <li>Direct Linking</li> </ul> <p>Presentation was heavily based on demonstration, so you need to fill in the blanks.</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> GPLv2 | Licence Tue, 17 Jun 2008 11:22:19 GMT http://labs.portcullis.co.uk/content/hoppy/liscence/ <pre> GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Lesser General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The &quot;Program&quot;, below, refers to any such program or work, and a &quot;work based on the Program&quot; means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term &quot;modification&quot;.) Each licensee is addressed as &quot;you&quot;. Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and &quot;any later version&quot;, you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM &quot;AS IS&quot; WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the &quot;copyright&quot; line and a pointer to where the full notice is found. <one line="" to="" give="" the="" program="" s="" name="" and="" a="" brief="" idea="" of="" what="" it="" does.=""><br /> Copyright (C) <year> <name of="" author=""><br /><br /> This program is free software; you can redistribute it and/or modify<br /> it under the terms of the GNU General Public License as published by<br /> the Free Software Foundation; either version 2 of the License, or<br /> (at your option) any later version.<br /><br /> This program is distributed in the hope that it will be useful,<br /> but WITHOUT ANY WARRANTY; without even the implied warranty of<br /> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the<br /> GNU General Public License for more details.<br /><br /> You should have received a copy of the GNU General Public License along<br /> with this program; if not, write to the Free Software Foundation, Inc.,<br /> 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.<br /><br />Also add information on how to contact you by electronic and paper mail.<br /><br />If the program is interactive, make it output a short notice like this<br />when it starts in an interactive mode:<br /><br /> Gnomovision version 69, Copyright (C) year name of author<br /> Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.<br /> This is free software, and you are welcome to redistribute it<br /> under certain conditions; type `show c' for details.<br /><br />The hypothetical commands `show w' and `show c' should show the appropriate<br />parts of the General Public License. Of course, the commands you use may<br />be called something other than `show w' and `show c'; they could even be<br />mouse-clicks or menu items--whatever suits your program.<br /><br />You should also get your employer (if you work as a programmer) or your<br />school, if any, to sign a &quot;copyright disclaimer&quot; for the program, if<br />necessary. Here is a sample; alter the names:<br /><br /> Yoyodyne, Inc., hereby disclaims all copyright interest in the program<br /> `Gnomovision' (which makes passes at compilers) written by James Hacker.<br /><br /> <signature of="" ty="" coon="">, 1 April 1989<br /> Ty Coon, President of Vice<br /><br />This General Public License does not permit incorporating your program into<br />proprietary programs. If your program is a subroutine library, you may<br />consider it more useful to permit linking proprietary applications with the<br />library. If this is what you want to do, use the GNU Lesser General<br />Public License instead of this License.<br /></signature></name></year></one></pre> GUI Access Through SQL Injection | Content Tue, 01 Apr 2008 15:30:22 GMT http://labs.portcullis.co.uk/application/gui-access-through-sql-injection/ <p>Slides presented by Alberto Revelli at OwaspDay II in Rome, 31/03/2008. They describe some SQL Injection tricks that can be used to get a full access to the DB server's operating system. The examples are mainly focused on MS SQL Server, but the concepts are valid for other DBMS as well.</p>