<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>IT Security Lab</title>
	<atom:link href="http://itsecuritylab.eu/index.php/feed/" rel="self" type="application/rss+xml" />
	<link>http://itsecuritylab.eu</link>
	<description>The Playground for IT Security Specialists and Pentesters</description>
	<lastBuildDate>Wed, 13 Apr 2011 11:06:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Knowledge sharing event: Risk-based approaches to protecting your data &#8211; London, Tuesday 19th April</title>
		<link>http://itsecuritylab.eu/index.php/2011/04/13/knowledge-sharing-event-risk-based-approaches-to-protecting-your-data-london-tuesday-19th-april/</link>
		<comments>http://itsecuritylab.eu/index.php/2011/04/13/knowledge-sharing-event-risk-based-approaches-to-protecting-your-data-london-tuesday-19th-april/#comments</comments>
		<pubDate>Wed, 13 Apr 2011 10:43:53 +0000</pubDate>
		<dc:creator>Aleks</dc:creator>
				<category><![CDATA[Pentesting]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[7Safe]]></category>
		<category><![CDATA[7Safe event]]></category>
		<category><![CDATA[knowledge sharing]]></category>

		<guid isPermaLink="false">http://itsecuritylab.eu/?p=1378</guid>
		<description><![CDATA[I would like to invite everyone to the knowledge sharing event which my company (7Safe) is arranging in London next week. This will be about risk-based approaches to protecting data. This suppose to be much bigger event (joined with Core Security Technologies), especially comparing to the one we did last year. Interesting (and very much [...]]]></description>
			<content:encoded><![CDATA[<p>I would like to invite everyone to the knowledge sharing event which my company (<a title="7Safe Ltd." href="http://7safe.com" target="_blank">7Safe</a>) is arranging in London next week. This will be about <strong>risk-based approaches to protecting data</strong>. This suppose to be much bigger event (joined with Core Security Technologies), especially comparing to the one we did last year. Interesting (and very much up-to-date!) topics and presentations, highly recommended to attend! As you may notice, I also would be presenting something there (presumably cool), but what is it...? As for now it's a little secret. :-)</p>
<p><strong>Time:</strong> Tuesday 19th April</p>
<p><strong>Location:</strong><br />
Furniture Makers’ Hall, 12 Austin Friars, London, EC2N 2HE<br />
(Nearest convenient tube: Bank, Moorgate, Liverpool Street)</p>
<p><strong>More info:</strong></p>
<p><a href="http://itsecuritylab.eu/wp-content/uploads/2011/04/image.jpg"><img class="alignnone size-full wp-image-1379" title="image" src="http://itsecuritylab.eu/wp-content/uploads/2011/04/image.jpg" alt="" width="493" height="702" /></a></p>
<p>Download the <strong>PDF with the invitation</strong> (as seen above) <a title="Knowledge sharing event - Invitation" href="http://itsecuritylab.eu/files/7safe_london_event/7safe_invitation.pdf" target="_blank">from here <strong>[invitation]</strong></a>.</p>
<p>Please don't forget to confirm if you want to come: send the e-mail to pentestinfo(@)7safe.com <em>/remove brackets of course/</em></p>
<p>C U there! :-)</p>
<p>A.</p>
<p>&nbsp;</p>
<div id="_mcePaste" class="mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;">D:\7SAFE\London 19.04 - Event\image.jpg</div>
]]></content:encoded>
			<wfw:commentRss>http://itsecuritylab.eu/index.php/2011/04/13/knowledge-sharing-event-risk-based-approaches-to-protecting-your-data-london-tuesday-19th-april/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Training &#8211; Hacking and Securing Oracle Database (11g)</title>
		<link>http://itsecuritylab.eu/index.php/2011/04/12/hacking-and-securing-oracle-database-11g/</link>
		<comments>http://itsecuritylab.eu/index.php/2011/04/12/hacking-and-securing-oracle-database-11g/#comments</comments>
		<pubDate>Tue, 12 Apr 2011 12:30:41 +0000</pubDate>
		<dc:creator>Aleks</dc:creator>
				<category><![CDATA[Exploitation practice]]></category>
		<category><![CDATA[Pentesting]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL injection]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[blackhat 2011]]></category>
		<category><![CDATA[hacking oracle]]></category>
		<category><![CDATA[hacking oracle blackhat]]></category>

		<guid isPermaLink="false">http://itsecuritylab.eu/?p=1364</guid>
		<description><![CDATA[My company (7Safe) will be delivering the training at the nearest Blackhat 2011 conference (Las Vegas). This will be about hacking and securing Oracle Database (11g), so highly recommended to be there! I took a liberty to prepare a small promotional video about it. So take a look and well... SEE YOU IN VEGAS! :-) [...]]]></description>
			<content:encoded><![CDATA[<p>My company (7Safe) will be delivering the training at the nearest Blackhat 2011 conference (Las Vegas). This will be about hacking and securing Oracle Database (11g), so highly recommended to be there! I took a liberty to prepare a small promotional video about it. So take a look and well... SEE YOU IN VEGAS! :-)</p>
<p><strong>When:</strong></p>
<ul>
<li> Weekend Training Session: July 30-31</li>
<li> Weekday Training Session: August 1-2</li>
</ul>
<p>&nbsp;</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="550" height="440" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><param name="src" value="http://www.youtube.com/v/ovtMgkh2tAI&amp;hl=en_US&amp;feature=player_embedded&amp;version=3" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="550" height="440" src="http://www.youtube.com/v/ovtMgkh2tAI&amp;hl=en_US&amp;feature=player_embedded&amp;version=3" allowscriptaccess="always" allowfullscreen="true"></embed></object> </p>
<p><strong>Registration:</strong><br />
<a title="Training - Hacking and Securing Oracle Database" href="http://blackhat.com/html/bh-us-11/training/kornbrust-siddharth-oracle.html" target="_blank">http://blackhat.com/...</a></p>
<p><strong>More details:</strong><br />
7Safe together with Red-Database-Security will be delivering the two-day hands-on course at Blackhat 2011. The course will teach the audience the security problems related to Oracle database. The training covers a variety of security problems arising from flaws such as insecure design, insecure features/packages, insecure PL/SQL code, patch management, weak passwords etc. The second day will focus on securing and hardening databases using built-in oracle features along with a number of externally available scripts and tools. Implementing auditing solutions will also be a part of the training. The audience will have access to an infrastructure with a number of Oracle components deployed, and they will be encouraged to identify/exploit/patch security vulnerabilities as they learn them. The training will provide software developers understanding of writing secure PL/SQL code, DBAs the understanding of thorough auditing of the database and penetration testers the understanding of how to break the unbreakable Oracle.</p>
]]></content:encoded>
			<wfw:commentRss>http://itsecuritylab.eu/index.php/2011/04/12/hacking-and-securing-oracle-database-11g/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Changed language does not persist when Skype is restarted: how to solve the annoying issue</title>
		<link>http://itsecuritylab.eu/index.php/2011/01/03/changed-language-does-not-persist-when-skype-is-restarted-how-to-solve-the-annoying-issue/</link>
		<comments>http://itsecuritylab.eu/index.php/2011/01/03/changed-language-does-not-persist-when-skype-is-restarted-how-to-solve-the-annoying-issue/#comments</comments>
		<pubDate>Mon, 03 Jan 2011 16:02:30 +0000</pubDate>
		<dc:creator>Aleks</dc:creator>
				<category><![CDATA[Binary application security]]></category>
		<category><![CDATA[Delphi]]></category>
		<category><![CDATA[Skype]]></category>
		<category><![CDATA[control skype menu]]></category>
		<category><![CDATA[hack skype menu]]></category>
		<category><![CDATA[hacking skype]]></category>
		<category><![CDATA[manage skype remotely]]></category>
		<category><![CDATA[set the default language in skype]]></category>
		<category><![CDATA[skype change default language permanently]]></category>
		<category><![CDATA[skype change language permanently]]></category>
		<category><![CDATA[skype default language]]></category>
		<category><![CDATA[skype language non-persistent]]></category>
		<category><![CDATA[skype language persistent]]></category>
		<category><![CDATA[skype set default language]]></category>

		<guid isPermaLink="false">http://itsecuritylab.eu/?p=1325</guid>
		<description><![CDATA[You know, I like intelligent and handy software. I really do. But I hate with my all heart when the application (or the application's author?) is eee... "too smart". ;-) And what especially makes me nervous is when author calls some idiotic application's behavior "a  feature". I think Skype is a nice example of it. [...]]]></description>
			<content:encoded><![CDATA[<p>You know, I like intelligent and handy software. I really do. But I hate with my all heart when the application (or the application's author?) is eee... "too smart". ;-) And what especially makes me nervous is when author calls some idiotic application's behavior "a  feature". I think Skype is a nice example of it. Look at this:</p>
<p><a href="http://itsecuritylab.eu/wp-content/uploads/2011/01/non_unicode_polish.png"><img class="alignleft size-full wp-image-1327" style="margin-right: 10px; margin-bottom: 5px;" title="non_unicode_polish" src="http://itsecuritylab.eu/wp-content/uploads/2011/01/non_unicode_polish.png" alt="" width="258" height="240" /></a>I have the default system language in Windows set up as English, but the <strong>default one for the non-Unicode programs is set to Polish</strong>. Nothing wrong with it, right. So when I start Skype for the first time it happily detects this setting and switches its language accordingly to the Polish too. Chaaarming. ;-)</p>
<p>Now let's imagine that I want to change the default Skype's language permanently to English (well, I much prefer English UI in all apps, ok). Seems life is easy: click the main menu, then <strong>Tools --&gt; Change language --&gt; English </strong>... and the language is changed. Now try to close Skype and open it again... What you you see: the application's language is immediately switched <strong>back to Polish!</strong> Ok, you may try to attack the problem from the different side: <strong>Tools --&gt; Options --&gt; Tab: General setting --&gt; Languages combo: English</strong>, then <strong>Save</strong>. Unfortunately the effect is exactly the same: <span style="color: #ff0000;"><strong>when Skype is restarted - it switches the language to the one set up as the default for non-Unicode programs</strong></span> (in my case: Polish). God knows why this proggy has such amazing feature, but believe me - to change the language manually after each restart is becoming pretty annoying after some time.</p>
<p>As usual, I google the problem and quickly found out that I am not alone: look here for example <a title="Problem" href="http://portableapps.com/node/21644" target="_blank">http://portableapps.com/node/21644</a>. So can we do anything? <em>Yes we can®! :-)</em></p>
<p>I wrote a small program which runs the Skype and then simulates mouse clicks on the main menu and kind of "pseudo-manually" switches the application's language to the default one (English). This is also a nice small example <strong>how you may access the main menu of the application "B" from the code of application "A" </strong>and execute some  functionality in application "B". No worries, we are not "literally" moving the mouse cursor the the menu, but issuing some appropriate system messages - so everything is pretty elegant.</p>
<p>Ok, if someone needs only executables here they are (with the source code in Delphi):</p>
<ul>
<li>The one should be used with the <strong>Skype Portable</strong> (recommended): <a title="Skype Change Default Language" href="http://itsecuritylab.eu/files/skype_language/SkypeChangeLanguage.zip" target="_blank">http://itsecuritylab.eu/files/...</a></li>
<li>The one may be used with the <strong>regular Skype</strong>: <a title="Skype Change Default Language" href="http://itsecuritylab.eu/files/skype_language/SkypeChangeLanguage.zip" target="_blank">http://itsecuritylab.eu/files/...</a></li>
</ul>
<p>Usage is very simple: extract the executable and put it to the same folder where your<strong> SkypePortable.exe</strong> or <strong>Skype.exe </strong>is located and then run. My little program runs Skype, waits until it is loaded and switches the language to English. Job done! :-)</p>
<p><a href="http://itsecuritylab.eu/wp-content/uploads/2011/01/runSkypeLang1.png"><img class="alignnone size-full wp-image-1335" title="runSkypeLang" src="http://itsecuritylab.eu/wp-content/uploads/2011/01/runSkypeLang1.png" alt="" width="287" height="141" /></a></p>
<h3>Some technical background</h3>
<p>Ok, so this is how it works. First of all we have to find the Skype window in the system (assure it exists, so we may get it's handle and access its child elements). This is rather trivial, so no need to explain anything. Once the window is found this is what we are doing:</p>
<pre>var
  menu: HMenu;
  id: integer;
  s: Array[0..255] of char;
begin
  tmrMain.Enabled := false;

  h := findWindow(pchar('tSkMainForm.UnicodeClass'), nil);  //--- find Skype's window
  menu := getMenu(h); //--- find the main menu
  GetMenuString(menu, 5, @s[0], 255, MF_BYPOSITION); //--- get the text of 6th menu item (should be '&amp;Help')

  if string(s) &lt;&gt; '&amp;Help' then  //--- current language is NOT English
  begin
    menu := getMenu(h); //--- main menu
    menu := GetSubMenu(menu, 4); //--- find the 5th menu item

    //--- activate this (5th) menu item, so all subitems can be redrawn. This is IMPORTANT!
    SendMessage(h, WM_INITMENU, WPARAM(menu), 0);
    SendMessage(h, WM_INITMENUPOPUP, WPARAM(menu),0);

    menu := GetSubMenu(menu, 2); //--- find the 3rd submenu item

    id := GetMenuItemID(menu, 9); //--- 10th menu item (select "English")
    PostMessage(h, WM_COMMAND, id, 0); //--- click it! :-)
  end;

  SendMessage(h, WM_SYSCOMMAND, SC_MINIMIZE, 0);
  application.Terminate;
end;</pre>
<p>So 1st thing we have to do - we have to check <strong>what language is set up currently</strong>. We are getting the text of the 6th menu item and checking if it is equal to "<strong>&amp;Help</strong>" or not. Currently it's "<strong>&amp;Pomoc</strong>", which means the current language is not English (yea, it's Polish actually).</p>
<p><a href="http://itsecuritylab.eu/wp-content/uploads/2011/01/runSkypemenu.png"><img class="alignnone size-full wp-image-1338" title="runSkypemenu" src="http://itsecuritylab.eu/wp-content/uploads/2011/01/runSkypemenu.png" alt="" width="450" height="91" /></a></p>
<p>This is the code used for checking:</p>
<pre>  h := findWindow(pchar('tSkMainForm.UnicodeClass'), nil);  //--- find Skype's window
  menu := getMenu(h); //--- find the main menu
  <span style="color: #ff0000;">GetMenuString(menu, 5, @s[0], 255, MF_BYPOSITION);</span> //--- get the text of 6th menu item (should be '&amp;Help')

  if string(s) &lt;&gt; '&amp;Help' then  //--- current language is NOT English
  begin
  [...]
  end;</pre>
<p>Now we have to iterate through the menus and sub-menus and run some action on the target item. Look at this code:</p>
<pre>    menu := getMenu(h); //--- main menu
    menu := GetSubMenu(menu, 4); //--- find the 5th menu item

    //--- activate this (5th) menu item, so all subitems can be redrawn. This is IMPORTANT!
    <span style="color: #ff0000;">SendMessage(h, WM_INITMENU, WPARAM(menu), 0);</span>
    <span style="color: #ff0000;">SendMessage(h, WM_INITMENUPOPUP, WPARAM(menu),0);</span>

    menu := GetSubMenu(menu, 2); //--- find the 3rd submenu item

    id := GetMenuItemID(menu, 9); //--- 10th menu item (select "English")
    PostMessage(h, WM_COMMAND, id, 0); //--- click it! :-)</pre>
<p>Important detail: look at strings highlighted in red: this is important element of the code as the sub-menu with the list of languages is generated "on-the-fly" once the parent menu item is activated. Without it: the 10th menu item (language "English") simply <strong>does not exist</strong>, (hence can't be called).</p>
<p><a href="http://itsecuritylab.eu/wp-content/uploads/2011/01/runSkypeNoMenu.png"><img class="alignnone size-full wp-image-1343" title="runSkypeNoMenu" src="http://itsecuritylab.eu/wp-content/uploads/2011/01/runSkypeNoMenu.png" alt="" width="389" height="277" /></a></p>
<p>One more remark: the proposed solution requires Skype user interface (Visual Style of the window) get running in<strong> "Classic Windows" mode. </strong></p>
<p><a href="http://itsecuritylab.eu/wp-content/uploads/2011/01/skype_default_options.png"><img class="alignnone size-full wp-image-1361" title="skype_default_options" src="http://itsecuritylab.eu/wp-content/uploads/2011/01/skype_default_options.png" alt="" width="454" height="388" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://itsecuritylab.eu/index.php/2011/01/03/changed-language-does-not-persist-when-skype-is-restarted-how-to-solve-the-annoying-issue/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>More 3D Fun with Kinect and Delphi. You can grab and save still 3D frames!</title>
		<link>http://itsecuritylab.eu/index.php/2010/12/29/more-3d-fun-with-kinect-and-delphi-you-can-grab-and-save-still-3d-frames/</link>
		<comments>http://itsecuritylab.eu/index.php/2010/12/29/more-3d-fun-with-kinect-and-delphi-you-can-grab-and-save-still-3d-frames/#comments</comments>
		<pubDate>Wed, 29 Dec 2010 23:00:52 +0000</pubDate>
		<dc:creator>Aleks</dc:creator>
				<category><![CDATA[Delphi]]></category>
		<category><![CDATA[Fun]]></category>
		<category><![CDATA[Kinect]]></category>
		<category><![CDATA[Delphi and Kinect]]></category>
		<category><![CDATA[Delphi Kinect]]></category>
		<category><![CDATA[Delphi Kinect example]]></category>
		<category><![CDATA[delphi virtual reality]]></category>
		<category><![CDATA[hacking Kinect]]></category>
		<category><![CDATA[hacking Kinect Delphi]]></category>
		<category><![CDATA[kinect blob tracking]]></category>
		<category><![CDATA[Kinect Borland Delphi]]></category>
		<category><![CDATA[kinect data acquisition]]></category>
		<category><![CDATA[kinect virtual reality]]></category>
		<category><![CDATA[kinect windows]]></category>
		<category><![CDATA[kinect windows demo]]></category>
		<category><![CDATA[kinect windows download]]></category>

		<guid isPermaLink="false">http://itsecuritylab.eu/?p=1287</guid>
		<description><![CDATA[Foreword: I am still in a Christmas mood. ;-) And considering  a really huge interest in such "sparkling marriage" (Delphi and Kinect) and a very positive feedback from you guys, - I made some quick changes in the 3D demo, (which you should already know well), and added even more cool features. This is what [...]]]></description>
			<content:encoded><![CDATA[<p>Foreword: <a href="http://itsecuritylab.eu/wp-content/uploads/2010/12/delphi_kinect_logo_upd.jpg"><img class="alignleft size-full wp-image-1292" title="delphi_kinect_logo_upd" src="http://itsecuritylab.eu/wp-content/uploads/2010/12/delphi_kinect_logo_upd.jpg" alt="" width="200" height="61" /></a>I am still in a Christmas mood. ;-) And considering  a really huge interest in such "sparkling marriage" (Delphi and Kinect) and a very positive feedback from you guys, - I made some quick changes in the 3D demo, (which you should already know well), and added even more cool features. This is what was done:</p>
<ul>
<li>Most important thing: now <span style="color: #ff0000;"><strong>you can grab 3D frames (3D data + 2D mapping), save it and run on a computer without Kinect</strong></span>! No need to have any drivers installed. You can give this program to your friends and they will be able to see your 3D pictures! :-)</li>
<li><strong>2D to 3D mapping is fixed</strong>. It's still not ideal, but much better then before.</li>
<li>You can <strong>switch on/off 2D and3D viewing mode</strong>. Pretty handy.</li>
<li>It is possible to <strong>manage motor</strong> and change tilt of the Kinect.</li>
<li>Newest version of <strong>Kinect.pas</strong> is included <em>(Simon J Stuart - thank you for the update! More info about TKinect project is <a title="Simon J Stuart - TKinect" href="http://www.lakraven.com/2010/12/11/tkinect-delphi/" target="_blank">here</a>)</em></li>
<li><strong>Bug fixed</strong> here and there.</li>
</ul>
<p><a href="http://itsecuritylab.eu/wp-content/uploads/2010/12/delphi_kinect3d_01.png"><img class="alignnone size-full wp-image-1295" title="delphi_kinect3d_01" src="http://itsecuritylab.eu/wp-content/uploads/2010/12/delphi_kinect3d_01.png" alt="" width="424" height="395" /></a></p>
<p>EXE is precompiled as usual, so can be used right away. Here is the link to EXE and the source code in Delphi:</p>
<p><a title="Kinect Delphi 3D demo" href="http://itsecuritylab.eu/files/kinect/kinect_delphi_3dpoints.zip" target="_blank">http://itsecuritylab.eu/files/kinect/kinect_delphi_3dpoints.zip</a></p>
<p>To make yourself more familiar with what the story is about, I strongly encourage you to look through the <a title="Kinect and Delphi (1)" href="http://itsecuritylab.eu/index.php/2010/12/27/kinect-and-delphi/" target="_self">previous post</a> about the Kinect and see <a title="Kinect and Delphi - the movie" href="http://www.youtube.com/watch?v=3KKWVPpFJXw&amp;feature=player_embedded" target="_blank">the movie</a>.</p>
<h3>How to save/load3D frame</h3>
<p>It's pretty easy actually. Select<strong> Frame --&gt; Save</strong> from the main menu (you didn't expected anything else, yea?), then give a name <span style="text-decoration: underline;">without file extension</span>. Program will grab the current frame and create 2 BMP files: one for 2D and the other for the 3D data (yes, they are just regular BMP files).</p>
<p><a href="http://itsecuritylab.eu/wp-content/uploads/2010/12/delphi_kinect3d_021.png"><img class="alignnone size-full wp-image-1297" title="delphi_kinect3d_02" src="http://itsecuritylab.eu/wp-content/uploads/2010/12/delphi_kinect3d_021.png" alt="" width="446" height="395" /></a></p>
<p>Those files would have a special suffix inside. A keywords: <strong>_KinectRGB</strong> and <strong>_KinectDepth</strong>.</p>
<p><a href="http://itsecuritylab.eu/wp-content/uploads/2010/12/delphi_kinect3d_03.png"><img class="alignnone size-full wp-image-1299" title="delphi_kinect3d_03" src="http://itsecuritylab.eu/wp-content/uploads/2010/12/delphi_kinect3d_03.png" alt="" width="264" height="214" /></a></p>
<p>If you want to open a frame: go to <strong>Frame --&gt; Load</strong> and point to any of those two files. Program would find it's way to load them properly :-)</p>
<h3>3D view on/off</h3>
<p>There is nothing to explain here really.</p>
<p><a href="http://itsecuritylab.eu/wp-content/uploads/2010/12/delphi_kinect3d_04_3doff.png"><img class="alignnone size-full wp-image-1300" title="delphi_kinect3d_04_3doff" src="http://itsecuritylab.eu/wp-content/uploads/2010/12/delphi_kinect3d_04_3doff.png" alt="" width="240" height="227" /></a> <a href="http://itsecuritylab.eu/wp-content/uploads/2010/12/delphi_kinect3d_04_3don.png"><img class="alignnone size-full wp-image-1301" title="delphi_kinect3d_04_3don" src="http://itsecuritylab.eu/wp-content/uploads/2010/12/delphi_kinect3d_04_3don.png" alt="" width="240" height="227" /></a></p>
<p>Some sample images are included in the package (e.g. a nice 3D view of my corridor) :-)</p>
<p><a href="http://itsecuritylab.eu/wp-content/uploads/2010/12/delphi_kinect3d_05.png"><img class="alignnone size-full wp-image-1302" title="delphi_kinect3d_05" src="http://itsecuritylab.eu/wp-content/uploads/2010/12/delphi_kinect3d_05.png" alt="" width="400" height="342" /></a></p>
<p>This is it. Have fun and definitely drink enough to celebrate a New Year properly!</p>
]]></content:encoded>
			<wfw:commentRss>http://itsecuritylab.eu/index.php/2010/12/29/more-3d-fun-with-kinect-and-delphi-you-can-grab-and-save-still-3d-frames/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Having Fun with Kinect and Delphi (examples of 2D and 3D visualization)</title>
		<link>http://itsecuritylab.eu/index.php/2010/12/27/kinect-and-delphi/</link>
		<comments>http://itsecuritylab.eu/index.php/2010/12/27/kinect-and-delphi/#comments</comments>
		<pubDate>Mon, 27 Dec 2010 13:27:57 +0000</pubDate>
		<dc:creator>Aleks</dc:creator>
				<category><![CDATA[Delphi]]></category>
		<category><![CDATA[Fun]]></category>
		<category><![CDATA[Kinect]]></category>
		<category><![CDATA[Delphi and Kinect]]></category>
		<category><![CDATA[Delphi Kinect]]></category>
		<category><![CDATA[Delphi Kinect example]]></category>
		<category><![CDATA[delphi virtual reality]]></category>
		<category><![CDATA[hacking Kinect]]></category>
		<category><![CDATA[hacking Kinect Delphi]]></category>
		<category><![CDATA[kinect blob tracking]]></category>
		<category><![CDATA[Kinect Borland Delphi]]></category>
		<category><![CDATA[kinect data acquisition]]></category>
		<category><![CDATA[kinect virtual reality]]></category>
		<category><![CDATA[kinect windows]]></category>
		<category><![CDATA[kinect windows demo]]></category>
		<category><![CDATA[kinect windows download]]></category>

		<guid isPermaLink="false">http://itsecuritylab.eu/?p=1233</guid>
		<description><![CDATA[Well well well... All signs in the Sky and on the Earth clearly say: it's a Christmas time! So it's time to have some rest and fun, and definitely nothing can be better then to spend some time with family and a new toy. ;-) Actually it's my son who got the XBox with the [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://itsecuritylab.eu/wp-content/uploads/2010/12/delphi_kinect_logo2.png"><img class="alignleft size-full wp-image-1271" title="delphi_kinect_logo2" src="http://itsecuritylab.eu/wp-content/uploads/2010/12/delphi_kinect_logo2.png" alt="" width="227" height="92" /></a>Well well well... All signs in the Sky and on the Earth clearly say: it's a Christmas time! So it's time to have some rest and fun, and definitely nothing can be better then to spend some time with <span style="text-decoration: line-through;">family and</span> a new toy. ;-) Actually it's my son who got the XBox with the Kinect, but well... let parents have some fun too, right!</p>
<p>It's not like I am trying to reinvent the wheel (there are plenty of applications using Kinect on PC), but recently I did not find any nice examples of <strong>how this incredibly cool thing can be used with Delphi</strong>. And you don't think I can leave it "just like that", don't you? ;-) So see the results below (video) and so more technical details of both applications (2D and 3D visualization). So as for today there will be no hacking, boys and girls, but just <em>pure awesome 3D-virtual-reality joy...</em> :-)</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="550" height="440" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/3KKWVPpFJXw?fs=1&amp;hl=en_US" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="550" height="440" src="http://www.youtube.com/v/3KKWVPpFJXw?fs=1&amp;hl=en_US" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>Ok, so you want to try to get those samples tweak them probably and run your own code? There is nothing more simple:</p>
<h3>Prerequisits:</h3>
<ul>
<li>Computer (PC) with <strong>hardware accelerated graphic card</strong> (anything with OPENGL hardware rendering).</li>
<li><strong>Kinect controller</strong> :-)</li>
<li><strong>Kinect windows drivers</strong> (NUI Group) <a title="NUI KInect drivers" href="http://nuigroup.com/forums/viewthread/11249/" target="_blank">http://nuigroup.com/...</a></li>
<li> Simon J Stuart's <strong>TKinect component for Delphi</strong> taken from here: <a title="Simon J Stuart's TKinect" href="http://www.lakraven.com/2010/12/11/tkinect-delphi/" target="_blank">http://www.lakraven.com/...</a> <em>(you did EXCELLENT work, dude!)</em></li>
<li> Super fast Delphi 2D Image processing library<strong> graphics32</strong>: <a title="Graphic32 Library" href="http://www.graphics32.org/wiki/" target="_blank">http://www.graphics32.org/...</a></li>
<li><strong>GLScene</strong> (Delphi OPENGL library): <a title="GLScene library" href="http://glscene.sourceforge.net/wikka/HomePage" target="_blank">http://glscene.sourceforge.net/...</a></li>
</ul>
<p>Everything is installing like a charm. Some subtle obstacles with GLScene, but nothing too complicated to be mentioned really. <span style="color: #ff0000;"><strong>Important: </strong>Before you run anything - be sure that the Kinect device is recognizable by your computer (check it in you Device Management panel).</span></p>
<p><a href="http://itsecuritylab.eu/wp-content/uploads/2010/12/drivers_kinect.png"><img class="alignnone size-full wp-image-1245" title="drivers_kinect" src="http://itsecuritylab.eu/wp-content/uploads/2010/12/drivers_kinect.png" alt="" width="173" height="142" /></a></p>
<p>Ach, almost forgotten: take the source files of my applications from here:</p>
<ul>
<li>2D data visualization: <a title="Kinect Delphi 2D visualization" href="http://itsecuritylab.eu/files/kinect/kinect_delphi_2d.zip" target="_blank">http://itsecuritylab.eu/files/kinect/kinect_delphi_2d.zip</a></li>
<li>3D data visualization: <a title="Kinect Delphi 3D visualization" href="http://itsecuritylab.eu/files/kinect/kinect_delphi_3dpoints.zip" target="_blank">http://itsecuritylab.eu/files/kinect/kinect_delphi_3dpoints.zip</a></li>
</ul>
<h3>Running all that stuff</h3>
<p>Now you can try to compile and test both applications. More details about how those application can be used you have already seeing in the movie. Pre-compiled exe files are already included into ZIP packages, just for your convenience. So at the end this is what we have:</p>
<h3>2D data visualization</h3>
<p>The experiment showing how to collect, process and draw the Kinect's data on the screen. Rather typical,- you've seen it before for sure. Additional challenge was to write a function which would be able to "track  blobs" - areas on the screen with similar pixels. This is needed to track your hands, fingers, nose or whatever you want to use. It is far far from ideal, but surprisingly works!</p>
<p>One more remark: this <strong>DOF function</strong>, selecting pixels in certain 3D range - is a part of the application, not the Kinect hardware.</p>
<p>I also hope you will forgive me such eeee... "untypical" way of getting depth data from pixel's color by such innocent transformation: RGB -&gt; HLS -&gt; [custom function] -&gt; range [0..255]</p>
<p><a href="http://itsecuritylab.eu/wp-content/uploads/2010/12/1st_kinect_app.jpg"><img class="size-full wp-image-1257 alignnone" title="1st_kinect_app" src="http://itsecuritylab.eu/wp-content/uploads/2010/12/1st_kinect_app.jpg" alt="" width="445" height="342" /></a></p>
<h3>3D data visualization</h3>
<p>You can see my room (and actually yours too) in 3D in wobbling 3D virtual screen, containing tiny colorful dots :-) Do you like my Xmass tree?</p>
<p><a href="http://itsecuritylab.eu/wp-content/uploads/2010/12/2nd_kinect_app.jpg"><img class="alignnone size-full wp-image-1258" title="2nd_kinect_app" src="http://itsecuritylab.eu/wp-content/uploads/2010/12/2nd_kinect_app.jpg" alt="" width="450" height="377" /></a></p>
<p>So you see, Delphi is so nice and (important!) <span style="text-decoration: underline;">easy</span> language (appropriate for lazy coders), so even writing pretty complex applications can take you just couple of hours. I also hope now even more people will start playing with Kinect and do some cool things, [so more happiness will come on Earth this Christmas, etc, etc.]. Remember: You are the controller®. Amen. :-)</p>
<p>Special thanks for<strong> Simon J Stuart </strong>for his <a title="TKinect component" href="http://www.lakraven.com/2010/12/11/tkinect-delphi/" target="_blank">TKinect Delphi component</a><br />
and for <strong>Jet Noir</strong> (<a title="Jet Noir" href="http://soundcloud.com/jet-noir" target="_blank">http://soundcloud.com/jet-noir</a>) for her music for the video!</p>
<p>This is it. Let me know it you like those crazy apps, and well... <strong>Have a nice Christmas and a happy New Year! </strong>:-)</p>
]]></content:encoded>
			<wfw:commentRss>http://itsecuritylab.eu/index.php/2010/12/27/kinect-and-delphi/feed/</wfw:commentRss>
		<slash:comments>25</slash:comments>
		</item>
		<item>
		<title>Smuggling .NET code inside batch files. Impossible? Who said that?</title>
		<link>http://itsecuritylab.eu/index.php/2010/12/14/smuggling-net-inside-batch-files-impossible-who-said-that/</link>
		<comments>http://itsecuritylab.eu/index.php/2010/12/14/smuggling-net-inside-batch-files-impossible-who-said-that/#comments</comments>
		<pubDate>Tue, 14 Dec 2010 12:59:47 +0000</pubDate>
		<dc:creator>Aleks</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Binary application security]]></category>
		<category><![CDATA[Exploitation practice]]></category>
		<category><![CDATA[Pentesting]]></category>
		<category><![CDATA[Windows security]]></category>
		<category><![CDATA[.NET and .bat files]]></category>
		<category><![CDATA[.NET inside .bat files]]></category>
		<category><![CDATA[.NET inside batch files]]></category>

		<guid isPermaLink="false">http://itsecuritylab.eu/?p=1224</guid>
		<description><![CDATA[This will be rather a quick one. :-) Just check this out: Create a batch (.bat) file with the following content and execute!: /* @echo off &#38;&#38; cls set WinDirNet=%WinDir%\Microsoft.NET\Framework IF EXIST "%WinDirNet%\v2.0.50727\csc.exe" set csc="%WinDirNet%\v2.0.50727\csc.exe" IF EXIST "%WinDirNet%\v3.5\csc.exe" set csc="%WinDirNet%\v3.5\csc.exe" IF EXIST "%WinDirNet%\v4.0.30319\csc.exe" set csc="%WinDirNet%\v4.0.30319\csc.exe" %csc% /nologo /out:"%~0.exe" %0 "%~0.exe" del "%~0.exe" exit */ class [...]]]></description>
			<content:encoded><![CDATA[<p>This will be rather a quick one. :-) Just check this out:</p>
<p>Create a batch (.bat) file with the following content and execute!:</p>
<pre>/*
@echo off &amp;&amp; cls
set WinDirNet=%WinDir%\Microsoft.NET\Framework
IF EXIST "%WinDirNet%\v2.0.50727\csc.exe" set csc="%WinDirNet%\v2.0.50727\csc.exe"
IF EXIST "%WinDirNet%\v3.5\csc.exe" set csc="%WinDirNet%\v3.5\csc.exe"
IF EXIST "%WinDirNet%\v4.0.30319\csc.exe" set csc="%WinDirNet%\v4.0.30319\csc.exe"
%csc% /nologo /out:"%~0.exe" %0
"%~0.exe"
del "%~0.exe"
exit
*/

class HelloWorld
{
static void Main()
{
System.Console.WriteLine("Greetings from IT Security Lab!");
System.Console.WriteLine("-------------------------------");
System.Console.WriteLine("RTM: " + System.Environment.Version);
System.Console.WriteLine("User: " + System.Environment.UserName);
System.Console.WriteLine("Machine name: " + System.Environment.MachineName);
System.Console.WriteLine("OS version: " + System.Environment.OSVersion);
System.Console.WriteLine("Stack trace: " + System.Environment.StackTrace);
System.Console.ReadLine();
}
}
</pre>
<p>I was absolutely amazed. The implications for security are... well... pretty complex. You are clever boys and girls, so you already know what can be done with it, right...</p>
<p>Found here: <a title="antichat.ru" href="http://forum.antichat.ru/" target="_blank">http://forum.antichat.ru/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://itsecuritylab.eu/index.php/2010/12/14/smuggling-net-inside-batch-files-impossible-who-said-that/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Cross-site scripting explained (video)</title>
		<link>http://itsecuritylab.eu/index.php/2010/10/20/cross-site-scripting-explained/</link>
		<comments>http://itsecuritylab.eu/index.php/2010/10/20/cross-site-scripting-explained/#comments</comments>
		<pubDate>Wed, 20 Oct 2010 13:39:39 +0000</pubDate>
		<dc:creator>Aleks</dc:creator>
				<category><![CDATA[Exploitation practice]]></category>
		<category><![CDATA[Pentesting]]></category>
		<category><![CDATA[cross site scripting demo]]></category>
		<category><![CDATA[cross-site scripting explained]]></category>
		<category><![CDATA[exploit cross-site scripting]]></category>
		<category><![CDATA[exploit xss]]></category>
		<category><![CDATA[what is cross-site scripting]]></category>
		<category><![CDATA[what xss is]]></category>
		<category><![CDATA[xss demo]]></category>
		<category><![CDATA[XSS explained]]></category>
		<category><![CDATA[xss for dummies]]></category>

		<guid isPermaLink="false">http://itsecuritylab.eu/?p=1197</guid>
		<description><![CDATA[Maybe you noticed that recently I was not being writing too much here. But I have an excuse (of course I do have one!): in a meantime I was quite busy by doing different things (e.g. relocating) and also preparing "this-and-that" to the corporate event which took place in London couple of days ago. So [...]]]></description>
			<content:encoded><![CDATA[<p>Maybe you noticed that recently I was not being writing too much here. But I have an excuse (of course I do have one!): in a meantime I was quite busy by doing different things (e.g. relocating) and also preparing "this-and-that" to the corporate event which took place in London couple of days ago. So now I may proudly present the video I made for this event, which explains what cross-site scripting is. The film is especially good for well... rather less-technical audience. ;-) Actually it's a <strong>live scenario of persistent XSS exploitation</strong>, so may be quite interesting for you to watch as well.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="550" height="440" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><param name="src" value="http://www.youtube.com/v/foTEOsJuR4c&amp;hl=en_US&amp;feature=player_embedded&amp;version=3" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="550" height="440" src="http://www.youtube.com/v/foTEOsJuR4c&amp;hl=en_US&amp;feature=player_embedded&amp;version=3" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>I also had incredible opportunity to spend couple of days making the intro (last time I was playing with 3d modeling and video editing was... oh my god, probably couple of years ago). So it was definitely good to recall some old (but not forgotten) skills. Anyway have fun! :-) Let me know what do you think about the video and if you have any ideas about the next ones.</p>
<p>More info about the event on the 7Safe's web page: <a title="7Safe Pentesting" href="http://penetration-testing.7safe.com/penetration-testing-it-security-knowledge-share-evening/" target="_self">http://penetration-testing.7safe.com/...</a></p>
<p>Btw, I also recommend you to look through the video prepared for the same event by a colleague of mine running <a title="commonexploits.com" href="http://www.commonexploits.com/" target="_blank">http://commonexploits.com</a> (you've been there already, right). So this is a <strong>hacking presentation demonstrating client side exploits, pivot attacks using Metasploit</strong>. Really cool stuff.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="550" height="440" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><param name="src" value="http://www.youtube.com/v/IdYUJUoRNIA&amp;rel=0&amp;hl=en_GB&amp;feature=player_embedded&amp;version=3" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="550" height="440" src="http://www.youtube.com/v/IdYUJUoRNIA&amp;rel=0&amp;hl=en_GB&amp;feature=player_embedded&amp;version=3" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://itsecuritylab.eu/index.php/2010/10/20/cross-site-scripting-explained/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Innocent comment regarding sensitive information disclosure…</title>
		<link>http://itsecuritylab.eu/index.php/2010/09/27/crazy-information-disclosure/</link>
		<comments>http://itsecuritylab.eu/index.php/2010/09/27/crazy-information-disclosure/#comments</comments>
		<pubDate>Mon, 27 Sep 2010 12:57:59 +0000</pubDate>
		<dc:creator>Aleks</dc:creator>
				<category><![CDATA[Exploitation practice]]></category>
		<category><![CDATA[Fun]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[horrible information disclosure]]></category>
		<category><![CDATA[IP disclosure]]></category>
		<category><![CDATA[sensitive information disclosure]]></category>

		<guid isPermaLink="false">http://itsecuritylab.eu/?p=1159</guid>
		<description><![CDATA[I don't know really how to comment it... This is what I found recently in my web server logs in the "Referrers" table: http://10.10.1.1/login?user=0045f2&#38;password=806361&#38;popup=false &#38;dst=http://hcrservermirror.ecnex.com/hccrs/fitio/clogin.php?nasIp=10.10.1.1 &#38;nasId=fitio&#38;loginIp=10.10.1.1:80&#38;vlan=bridge1&#38;macAddress=00:21:6B:15:E3:70 &#38;ipAddress=10.10.1.95&#38;loginPort=&#38;urlPostLogin=http://itsecuritylab.eu/index.php/2010/09/26/pentesting-privilege-escalation-in-web-applications/ So what can I find here? Oh God... URL to the Network provider: http://hcrservermirror.ecnex.com/hccrs/fitio/clogin.php Someone's internal IPs disclosure: 10.10.1.1, 10.10.1.95 Login IP and port: 10.10.1.1:80 MAC address: 00:21:6B:15:E3:70 [...]]]></description>
			<content:encoded><![CDATA[<p>I don't know really how to comment it... This is what I found recently in my web server logs in the "Referrers" table:</p>
<pre>http://<span style="color: #ff0000;">10.10.1.1</span>/login?<span style="color: #ff0000;">user=0045f2</span>&amp;<span style="color: #ff0000;">password=806361</span>&amp;popup=false
&amp;dst=<span style="color: #ff0000;">http://hcrservermirror.ecnex.com</span>/hccrs/fitio/clogin.php?nasIp=<span style="color: #ff0000;">10.10.1.1
</span>&amp;nasId=<span style="color: #ff0000;">fitio</span>&amp;loginIp=<span style="color: #ff0000;">10.10.1.1</span>:80&amp;vlan=<span style="color: #ff0000;">bridge1</span>&amp;macAddress=<span style="color: #ff0000;">00:21:6B:15:E3:70
</span>&amp;ipAddress=<span style="color: #ff0000;">10.10.1.95</span>&amp;loginPort=&amp;urlPostLogin=http://itsecuritylab.eu/index.php/2010/09/26/pentesting-privilege-escalation-in-web-applications/</pre>
<p>So what can I find here? Oh God...</p>
<ul>
<li>URL to the Network provider: <span style="color: #ff0000;">http://hcrservermirror.ecnex.com/hccrs/fitio/clogin.php</span></li>
<li>Someone's internal IPs disclosure: <span style="color: #ff0000;">10.10.1.1, 10.10.1.95</span></li>
<li>Login IP and port: <span style="color: #ff0000;">10.10.1.1:80</span></li>
<li>MAC address: <span style="color: #ff0000;">00:21:6B:15:E3:70</span></li>
<li> Someone's credentials: <span style="color: #ff0000;">user=0045f2</span>, <span style="color: #ff0000;">password=806361</span></li>
<li> NAS ID: <span style="color: #ff0000;">fitio</span></li>
<li> VLAN name: <span style="color: #ff0000;">bridge1</span></li>
</ul>
<p>What else I already know (from geolocation info):</p>
<ul>
<li> Connection from IP: <span style="color: #ff0000;">189.223.43.88.dsl.dyn.telnor.net</span></li>
<li> Country : <span style="color: #ff0000;">Mexico</span></li>
<li> City : <span style="color: #ff0000;">Tijuana</span></li>
</ul>
<p>Definitely I will try to mess with this VLAN next time I will be in Tijuana! One thing is clear: if the next time I would get something like this - I should not be surprised at all... ;-)</p>
<pre>...<span style="color: #0000ff;">http://besure.bank.com</span>/login?<span style="color: #0000ff;">user=<span style="color: #ff0000;">crazyUser</span></span>&amp;<span style="color: #0000ff;">password=<span style="color: #ff0000;">Tijuana12345</span></span>&amp;popup=false&amp;<span style="color: #0000ff;">account=<span style="color: #ff0000;">1652635-1232-12312</span></span>&amp;<span style="color: #0000ff;">lastTransaction=<span style="color: #ff0000;">moneyTransf</span></span>&amp;<span style="color: #0000ff;">targetAccount=<span style="color: #ff0000;">123123-0000-0734</span></span>&amp;<span style="color: #0000ff;">success=<span style="color: #ff0000;">true</span></span>&amp;vlan=bridge1...</pre>
<p>I think you are already big boys and girls, so think twice what sensitive information about you may leak out, in what weird and unusual way. Make conclusion by yourself and well... Beware! ;-)</p>
]]></content:encoded>
			<wfw:commentRss>http://itsecuritylab.eu/index.php/2010/09/27/crazy-information-disclosure/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pentesting privilege escalation in web applications</title>
		<link>http://itsecuritylab.eu/index.php/2010/09/26/pentesting-privilege-escalation-in-web-applications/</link>
		<comments>http://itsecuritylab.eu/index.php/2010/09/26/pentesting-privilege-escalation-in-web-applications/#comments</comments>
		<pubDate>Sun, 26 Sep 2010 11:25:29 +0000</pubDate>
		<dc:creator>Aleks</dc:creator>
				<category><![CDATA[Exploitation practice]]></category>
		<category><![CDATA[Pentesting]]></category>
		<category><![CDATA[pentesting practice web applications]]></category>
		<category><![CDATA[pentesting privilege escalation]]></category>
		<category><![CDATA[pentesting privilege escalation in web applications]]></category>
		<category><![CDATA[pentesting web applications]]></category>
		<category><![CDATA[privilege escalation]]></category>

		<guid isPermaLink="false">http://itsecuritylab.eu/?p=1132</guid>
		<description><![CDATA[Quick tip from my pentesting practice about how you can make your life easier when testing for privilege escalation in web applications. Background of the problem Let's imagine that we have a web application to test, so have (at least) two sets of credentials: for a high-privileged user and low-privilege one. When we log-in as [...]]]></description>
			<content:encoded><![CDATA[<p>Quick tip from my pentesting practice about how you can make your life easier when<strong> testing for privilege escalation in web applications. </strong></p>
<h4>Background of the problem</h4>
<p>Let's imagine that we have a web application to test, so have (at least) two sets of credentials: for a high-privileged user and low-privilege one. When we log-in as high-privileged user (e.g.: admin) - we obviously have access to much more information (more menu items, more functionality, etc.). Now what we want to know - <strong>if those items may be accessed directly by low-privileged user</strong>. It is clear that if you just would click "here and there" manually (or even copy some URLs) as low-privileged user - you still may omit something important very easily. So the question is: how we may be sure that all combination are checked?</p>
<h4>Proposed solution</h4>
<p>The whole idea is quite simple:</p>
<ol>
<li>We have to <strong>spider the application from the perspective of high-privileged user</strong>. You may use any tools you like (e.g.: Burp Suite, DirBuster, Paros, etc.). Important is to have the whole list of visited URLs written in simple text file.</li>
<li>We have to <strong>log-in as a low-privileged user and get a copy of sample GET request</strong> with appropriate cookie (e.g.: Burp, Paros or Fiddler may be used for it).</li>
<li>We may use Burp's "Intruder" module and <strong>re-issue the captured header</strong> (with cookie appropriate for low-privileged user) and automatically <strong>replace URL with ones from our list</strong>.</li>
<li>We should carefully<strong> examine results and look for all discrepancies</strong> (e.g.: when unexpectedly status is "200 OK" when it should be an error or redirection).</li>
</ol>
<h4>Illustration</h4>
<p>Assume you have the following URL to test: <strong>http://vulnerableapp.com</strong> This is the sample list of URLs you may get from your spidering tools being authenticated as <span style="text-decoration: underline;">high-privileged user</span>:</p>
<pre>...
/admin/edit_my_details.asp
/admin/my_folders.asp
/admin/list_suggestions.asp
/admin/list_asset.asp
/admin/my_assets.asp
/admin/usage_category.asp
/admin/upload_file.asp
/admin/list_category.asp
/admin/bulk_copy.asp
/admin/list_users.asp
/admin/list_subcategory.asp
/admin/list_logged_in_users.asp
/admin/list_company.asp
/admin/manage_project.asp
/admin/manage_intro.asp
/admin/manage_contacts.asp
/admin/manage_event_types.asp
...</pre>
<p>So it does mean you were able successfully navigate there <span style="text-decoration: underline;">from the perspective of high-privileged user</span>. Let's check how far the low-privileged user may go. :-)</p>
<p>Log-in to the system as low-privileged user and copy sample GET request to "Intruder".</p>
<p><a href="http://itsecuritylab.eu/wp-content/uploads/2010/09/intruder_01.png"><img class="alignnone size-full wp-image-1138" title="intruder_01" src="http://itsecuritylab.eu/wp-content/uploads/2010/09/intruder_01.png" alt="" width="516" height="218" /></a></p>
<p>In Intruder we must set up the "fuzzing point":</p>
<p><a href="http://itsecuritylab.eu/wp-content/uploads/2010/09/intruder_02.png"><img class="alignnone size-full wp-image-1140" title="intruder_02" src="http://itsecuritylab.eu/wp-content/uploads/2010/09/intruder_02.png" alt="" width="281" height="81" /></a></p>
<p>Now use our saved list of URLs as the payload:</p>
<p><a href="http://itsecuritylab.eu/wp-content/uploads/2010/09/intruder_03.png"><img class="alignnone size-full wp-image-1141" title="intruder_03" src="http://itsecuritylab.eu/wp-content/uploads/2010/09/intruder_03.png" alt="" width="514" height="350" /></a></p>
<p>Finally, run Intruder and see what happened:</p>
<p><a href="http://itsecuritylab.eu/wp-content/uploads/2010/09/intruder_04.png"><img class="alignnone size-full wp-image-1146" title="intruder_04" src="http://itsecuritylab.eu/wp-content/uploads/2010/09/intruder_04.png" alt="" width="511" height="258" /></a></p>
<p>Now all points where low-privileged user have access are clearly visible. The next step would be only to open those URLs in a web browser and check if this user really should be able to access it.</p>
<p>Oh yes, you can also repeat the same trick <strong>without cookie</strong> at all, so then you may easily check <strong>what functionality may be accessed for unauthenticated user</strong>.</p>
]]></content:encoded>
			<wfw:commentRss>http://itsecuritylab.eu/index.php/2010/09/26/pentesting-privilege-escalation-in-web-applications/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>TinyWeb: Pocket-size Portable Web Server With CGI And PHP Support (!)</title>
		<link>http://itsecuritylab.eu/index.php/2010/09/24/tinyweb-pocket-size-portable-web-server-with-cgi-and-php-support/</link>
		<comments>http://itsecuritylab.eu/index.php/2010/09/24/tinyweb-pocket-size-portable-web-server-with-cgi-and-php-support/#comments</comments>
		<pubDate>Fri, 24 Sep 2010 19:50:26 +0000</pubDate>
		<dc:creator>Aleks</dc:creator>
				<category><![CDATA[Delphi]]></category>
		<category><![CDATA[Exploitation practice]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[hacking web server]]></category>
		<category><![CDATA[portable web server]]></category>
		<category><![CDATA[portable web server CGI]]></category>
		<category><![CDATA[portable web server perl]]></category>
		<category><![CDATA[portable web server php]]></category>
		<category><![CDATA[tiny web server]]></category>
		<category><![CDATA[tiny web server CGI]]></category>

		<guid isPermaLink="false">http://itsecuritylab.eu/?p=1066</guid>
		<description><![CDATA[You know, each of us has some tools we really like to use. Tools which are not "just good". We simply love them. They are nice-looking, reliable, and (this is especially important) - simple and easy to use. One of such little toys I use quite often in exploitation practice (and obviously, in many other [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://itsecuritylab.eu/wp-content/uploads/2010/09/logo_tinyweb.png"><img class="alignleft size-full wp-image-1106" style="margin-right: 10px;" title="logo_tinyweb" src="http://itsecuritylab.eu/wp-content/uploads/2010/09/logo_tinyweb.png" alt="" width="136" height="104" /></a>You know, each of us has some tools we really like to use. Tools which are not "just good". We simply love them. They are nice-looking, reliable, and (this is especially important) - simple and easy to use. One of such little toys I use quite often in exploitation practice (and obviously, in many other weird experiments): is a freeware <a title="TinyWeb web server" href="http://www.ritlabs.com/en/products/tinyweb/"><strong>TinyWeb web server</strong></a> created by Maxim Masiutin from <a title="RitLabs" href="http://www.ritlabs.com" target="_blank"><strong>RitLabs</strong></a>. The server is <strong>extremely small</strong> (actually it's a<strong> single file</strong> <strong>only, about 60 Kb</strong>). Despite of it, this little creature serves HTML, executes CGI, supports SSL, writes logs, etc., etc. Full list of features you may find <a title="TinyWeb web server - features" href="http://www.ritlabs.com/en/products/tinyweb/features.php" target="_blank"><strong>[here]</strong></a>.</p>
<p>It's a really nice tool, and recently I had an opportunity to improve TinyWeb server a little bit, so want to share it with you. Obviously this is still not such a full-featured server as Wamp, but it is<strong> tiny, handy and can be a significant part of your "pocket hacking toolset".</strong> How to use it for your own benefit - I would leave it to you. :-)</p>
<h4>So what functionality I added</h4>
<ul>
<li><strong>TinyWeb supports PHP </strong>(Yeeeeaa!). (Can you imagine a web server without PHP? I can't.) Surprisingly, original version of the server had some difficulties running PHP. Now source code is slightly changed, so everything works smoothly. Note: PHP is running as CGI.</li>
<li><strong>The</strong> <strong>server is 100% portable</strong> now! <strong>No need for installation</strong> <strong>or configuration</strong>:  just copy it to any folder, make a single click and voila! everything  is configured and running immediately (yes, PHP is also configured  automatically).</li>
<li><strong>PHP files may be placed in <span style="text-decoration: underline;">any</span> folder</strong> inside <strong>\wwwroot</strong> (note that in original TinyWeb server - CGI is handled <span style="text-decoration: underline;">only</span> in <strong>\wwwroot\cgi-bin</strong> folder).</li>
</ul>
<p>Looks good? Och, believe me, it is. Let's see what this little beast can do for us, but "first things first": see what you may download:</p>
<h4>Download binaries:</h4>
<ul>
<li><a title="TinyWeb Portable - web server with PHP support" href="http://itsecuritylab.eu/files/tiny_web/tiny_web_server_portable_with_php.zip" target="_blank"><strong>TinyWeb Portable - web server with PHP support</strong></a> (binaries only, most recent PHP is included, CGI demo included) - recommended for download (about 9 MB).</li>
<li><a title="TinyWeb Portable - web server with PHP support" href="http://itsecuritylab.eu/files/tiny_web/tiny_web_server_portable.zip" target="_blank"><strong>TinyWeb Portable - web server with PHP support</strong></a> (binaries only, CGI demo included).</li>
<li><a title="TinyWeb Portable - web server with SSL support" href="http://itsecuritylab.eu/files/tiny_web/tiny_web_server_portable_with_ssl.zip" target="_blank"><strong>TinyWeb Portable - web  server with SSL support</strong></a> (binaries only, SSL fully configured, CGI demo included).</li>
</ul>
<h4>Download source code:</h4>
<ul>
<li><a title="TinyWeb Portable - web server's source code" href="http://itsecuritylab.eu/files/delphi/tiny_web/tiny_web_server_portable_source.zip" target="_blank"><strong>TinyWeb Portable - web server source code</strong></a> (with my modifications needed to support PHP, also includes the source code for "run_web_server.exe" utility) .</li>
<li><strong><a title="Run_web_server.exe utility - source code" href="http://itsecuritylab.eu/files/delphi/tiny_web/run_tiny_web_server_source.zip" target="_blank">Run_web_server.exe</a> </strong>(the utility, source code only).</li>
<li><a title="TinyWeb 1.93 web server - source code" href="http://www.ritlabs.com/download/tinyweb/tinyweb.zip"><strong>Original TinyWeb 1.93 source code</strong></a> (from RitLabs).</li>
</ul>
<p>Note that author (Maxim Masiutin) kindly published the source code of standard TinyWeb server only (without SSL support), so this is the only version which is modified by me now (hence supports PHP).</p>
<h4>Running the little daemon</h4>
<p>Ok, in our first example we will be using the version of the server with PHP support. Download it and unzip to any folder in you PC (<em>you already did it, yea?</em>). Now run the file "<strong>run_web_server.exe</strong>". Important: <strong>you <span style="text-decoration: underline;">must</span> run it as Administrator</strong>. Same application may be used for both versions of TinyWeb: with and without SSL support. Once you have it running - everything should be self-explanatory (not much to configure really):</p>
<p><a href="http://itsecuritylab.eu/wp-content/uploads/2010/09/tinyWeb_explained.png"><img class="alignnone size-full wp-image-1086" title="tinyWeb_explained" src="http://itsecuritylab.eu/wp-content/uploads/2010/09/tinyWeb_explained.png" alt="" width="556" height="391" /></a></p>
<p>If you will be using the TinyWeb version with SSL - you would see the following info at the bottom:</p>
<p><a href="http://itsecuritylab.eu/wp-content/uploads/2010/09/tinyWeb_explained_ssl.png"><img class="alignnone size-full wp-image-1087" title="tinyWeb_explained_ssl" src="http://itsecuritylab.eu/wp-content/uploads/2010/09/tinyWeb_explained_ssl.png" alt="" width="321" height="73" /></a></p>
<p>Once we have the port chosen: press <strong>[RUN] </strong>button. Note that LPORT field is grayed now and button <strong>[RUN] </strong>is also disabled. Our server is running!</p>
<p><a href="http://itsecuritylab.eu/wp-content/uploads/2010/09/tinyWeb_running.png"><img class="alignnone size-full wp-image-1089" title="tinyWeb_running" src="http://itsecuritylab.eu/wp-content/uploads/2010/09/tinyWeb_running.png" alt="" width="280" height="91" /></a></p>
<p>Now <strong>you can close this application</strong> completely, the TinyWeb server would be happily running in the background. How to stop the server? Oh I don't know, try to guess... ;-)</p>
<h4>Is it really working?</h4>
<p>Ok, the server is running, now let's browse the structure of our folders:</p>
<pre>wwwroot
¦   index.htm
¦   index.php
¦   login.htm
¦
+---cgi-bin
        login.exe
        shell.php
        test.cmd
        test.php
        test.pl</pre>
<p>Those files will be available "on-line" under following URLs:</p>
<pre>http://localhost:81/index.htm

http://localhost:81/index.php

http://localhost:81/login.htm

http://localhost:81/cgi-bin/shell.php

http://localhost:81/cgi-bin/test.cmd

http://localhost:81/cgi-bin/test.php

http://localhost:81/cgi-bin/test.pl &lt;-- to run this you must have Perl installed</pre>
<p>Try to open it in your browser and see what would happen. :-) Actually any console program with<strong> stdIN</strong> and <strong>stdOUT </strong>may be easily handled by TinyWeb server (which is really handy).</p>
<p>Imagine that you have the following batch file:</p>
<p><a href="http://itsecuritylab.eu/wp-content/uploads/2010/09/batch-file.png"><img class="alignnone size-full wp-image-1127" title="batch file" src="http://itsecuritylab.eu/wp-content/uploads/2010/09/batch-file.png" alt="" width="355" height="181" /></a></p>
<p>When you navigate to the following URL: <strong>http://localhost:81/cgi-bin/test.cmd</strong> you can see in your browser something like this:</p>
<p><a href="http://itsecuritylab.eu/wp-content/uploads/2010/09/batch-file-executed.png"><img class="alignnone size-full wp-image-1128" title="batch file executed" src="http://itsecuritylab.eu/wp-content/uploads/2010/09/batch-file-executed.png" alt="" width="514" height="216" /></a></p>
<p>Nice, isn't it! :-)</p>
<p>Remember one important thing: PHP is supported in <strong>\wwwroot</strong> (also in any nested subfolder inside). CGI is handled only in <strong>\wwwroot\cgi-bin</strong> folder and any subfolders.</p>
<h4>Couple of words about TinyWeb with SSL support</h4>
<p>This is the original version of TinyWeb binary with SSL support, compiled by Maxim Masiutin. Source code unfortunately is not available, so I may not make necessary modifications, hence PHP is not supported. Sad but true.</p>
<p>Anyway you may download it from here <strong>along with sample SSL certificates</strong> (and of course with <strong>run_web_server.exe</strong>) and in fully portable form. So again -  <strong>nothing to configure. Just unzip, and run!</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://itsecuritylab.eu/index.php/2010/09/24/tinyweb-pocket-size-portable-web-server-with-cgi-and-php-support/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>

