<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    
    <title>Thoughts of a Cyber-LOONATic - Code Snippets</title>
    <link>http://www.packet-broker.co.za/blog/</link>
    <description>Ramblings from The ZA Packet-Broker</description>
    <dc:language>en</dc:language>
    <generator>Serendipity 1.5.5 - http://www.s9y.org/</generator>
    <pubDate>Tue, 22 Feb 2011 09:17:00 GMT</pubDate>

    <image>
        <url>http://www.packet-broker.co.za/blog/templates/default/img/s9y_banner_small.png</url>
        <title>RSS: Thoughts of a Cyber-LOONATic - Code Snippets - Ramblings from The ZA Packet-Broker</title>
        <link>http://www.packet-broker.co.za/blog/</link>
        <width>100</width>
        <height>21</height>
    </image>

<item>
    <title>Mimicking Command Prompt with a Batch Script</title>
    <link>http://www.packet-broker.co.za/blog/archives/14/Mimicking-Command-Prompt-with-a-Batch-Script.html</link>
            <category>Code Snippets</category>
    
    <comments>http://www.packet-broker.co.za/blog/archives/14/Mimicking-Command-Prompt-with-a-Batch-Script.html#comments</comments>
    <wfw:comment>http://www.packet-broker.co.za/blog/wfwcomment.php?cid=14</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.packet-broker.co.za/blog/rss.php?version=2.0&amp;type=comments&amp;cid=14</wfw:commentRss>
    

    <author>nospam@example.com (Junaid Loonat)</author>
    <content:encoded>
    Without a doubt, &lt;a href=&quot;http://en.wikipedia.org/wiki/Kiosk_software&quot; title=&quot;Kiosk Software&quot;&gt;kiosk hacking&lt;/a&gt; assessments have the simplest objective... &lt;em&gt;Gain command execution!&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
During one of my engagements, I was provided with locked-down desktop that had most/all functionality disabled.&lt;br /&gt;
The user account, of course, was unprivileged.&lt;br /&gt;
&lt;br /&gt;
The system administrators blacklisted &lt;em&gt;cmd.exe&lt;/em&gt; (Command Prompt) but did not prevent the use of batch scripts.&lt;br /&gt;
So although I was unable to work within a command prompt session, I could still run batch scripts to execute commands.&lt;br /&gt;
&lt;br /&gt;
[side note: When locking-down, always opt for whitelisting applications rather than blacklisting]&lt;br /&gt;
&lt;br /&gt;
Instead of constantly modifying-and-running batch scripts, I threw together some quick+dirty batch-fu to mimic a command prompt:&lt;br /&gt;
&lt;blockquote&gt;@echo off&lt;br /&gt;
:getcmd&lt;br /&gt;
set /P CMDIN=Cmd: %=%&lt;br /&gt;
%CMDIN%&lt;br /&gt;
goto getcmd&lt;/blockquote&gt;&lt;br /&gt;
I&#039;m sure it&#039;s been done before, but I&#039;m positive that writing the above script was faster than google&#039;ing for an existing implementation.&lt;br /&gt;
For brownie points, which application / tool does the &quot;Cmd:&quot; prompt most resemble?&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Tue, 22 Feb 2011 10:18:38 +0200</pubDate>
    <guid isPermaLink="false">http://www.packet-broker.co.za/blog/archives/14/guid.html</guid>
    
</item>
<item>
    <title>Creating a Proxy / Shim DLL</title>
    <link>http://www.packet-broker.co.za/blog/archives/1/Creating-a-Proxy-Shim-DLL.html</link>
            <category>Code Snippets</category>
    
    <comments>http://www.packet-broker.co.za/blog/archives/1/Creating-a-Proxy-Shim-DLL.html#comments</comments>
    <wfw:comment>http://www.packet-broker.co.za/blog/wfwcomment.php?cid=1</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.packet-broker.co.za/blog/rss.php?version=2.0&amp;type=comments&amp;cid=1</wfw:commentRss>
    

    <author>nospam@example.com (Junaid Loonat)</author>
    <content:encoded>
    A while back I found the need for a Win32 shim DLL, so I took the opportunity to create a quick hack-up.&lt;br /&gt;
Shim DLLs are normally used to extend or alter the functionality offered by a regular DLL.&lt;br /&gt;
In my case, I just wanted to observe the data being transmitted from an application to its crypto / hashing library.&lt;br /&gt;
So we start with an application we&#039;ll call SecProggie and its respective hashing library, SecLibbie.&lt;br /&gt;
&lt;br /&gt;
Now SecLibbie is exporting a few methods but none of them are decorated.&lt;br /&gt;
As such, we don&#039;t know what argument combination the methods are expecting, unless I take a look at the library&#039;s ASM.&lt;br /&gt;
I&#039;m avoiding that because I wasnt something I can reuse again later.  &lt;br /&gt;&lt;a href=&quot;http://www.packet-broker.co.za/blog/archives/1/Creating-a-Proxy-Shim-DLL.html#extended&quot;&gt;Continue reading &quot;Creating a Proxy / Shim DLL&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Sat, 20 Jun 2009 07:31:00 +0200</pubDate>
    <guid isPermaLink="false">http://www.packet-broker.co.za/blog/archives/1/guid.html</guid>
    
</item>

</channel>
</rss>
