<?xml version="1.0"?>
<rss version="2.0.">
  <channel>
    <title>Advogato blog for beraldo</title>
    <link>http://www.advogato.org/person/beraldo/</link>
    <description>Advogato blog for beraldo</description>
    <language>en-us</language>
    <generator>mod_virgule</generator>
    <pubDate>Wed, 9 Jul 2008 15:58:12 GMT</pubDate>
    <item>
      <pubDate>Tue, 1 Jul 2008 17:11:27 GMT</pubDate>
      <title>Scapy, part 1</title>
      <link>http://www.advogato.org/person/beraldo/diary.html?start=15</link>
      <guid>http://beraldoleal.com/index.php/2008/07/scapy-part-1/</guid>
      <description>&lt;p align=justify&gt;Okay, you can say: You are outdated!! Since it is a tool of five years old. But I never gave  considerable attention to it. In last week I see in top 100 network security tool in Fyodor's site, and I can't stop using it. I am talking about the Scapy, a Python program that enables you to forge, dissect, emit or sniff network packets, probe, scan and what your mind wants.&lt;/p&gt;
&lt;p&gt;This is a simple post, only to show the basic concepts of scapy.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;What is scapy?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;From scapy:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p align=justify&gt;&amp;quot;Scapy is a powerful interactive packet manipulation program. It is able to forge or decode packets of a wide number of protocols, send them on the wire, capture them, match requests and replies, and much more. It can easily handle most classical tasks like  scanning, tracerouting, probing, unit tests, attacks or network discovery (it can replace  hping, 85% of nmap, arpspoof, arp-sk, arping, tcpdump, tethereal, p0f, etc.). It also performs  very well at a lot of other specific tasks that most other tools can't handle, like sending invalid frames, injecting your own 802.11 frames,  combining technics (VLAN hopping+ARP cache poisoning, VOIP decoding on  WEP encrypted channel, ...), etc.&amp;quot;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;pre&gt;
ls -la
teste
&lt;/pre&gt;
</description>
    </item>
    <item>
      <pubDate>Tue, 17 Jun 2008 21:07:18 GMT</pubDate>
      <title>Development at the hackathon, go Forrest go!!</title>
      <link>http://www.advogato.org/person/beraldo/diary.html?start=14</link>
      <guid>http://beraldoleal.com/index.php/2008/06/development-at-the-hackathon-go-forrest-go/</guid>
      <description>&lt;p&gt;In openbsd-misc mail list:&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;
"Development is really fast right now, because of the hackathon in Edmonton. &lt;/p&gt;
&lt;p&gt;We are testing as much as we can before we commit, but as always during these hackathon processes we really depend on our user community -- to track our changes and help spot the occasional bug we accidentally introduce.&lt;/p&gt;
&lt;p&gt;We are developing really fast and hard; please help us by testing really fast and hard too.&lt;/p&gt;
&lt;p&gt;There are some snapshots being made, of course, but people who are familiar with checking out their own trees can really help us by buildind and running it immediately."
&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;- Theo de Raddt, in a &lt;a href="http://kerneltrap.org/mailarchive/openbsd-misc/2008/6/11/2091724" &gt; June 11th, 2008 message&lt;/a&gt;.&lt;/p&gt;
</description>
    </item>
    <item>
      <pubDate>Tue, 1 Apr 2008 03:13:13 GMT</pubDate>
      <title>novo teste</title>
      <link>http://www.advogato.org/person/beraldo/diary.html?start=13</link>
      <guid>http://beraldoleal.com/index.php/archives/52</guid>
      <description>&lt;p&gt;Pense num teste besta...&lt;/p&gt;
</description>
    </item>
    <item>
      <pubDate>Tue, 1 Apr 2008 03:13:13 GMT</pubDate>
      <title>Teste</title>
      <link>http://www.advogato.org/person/beraldo/diary.html?start=12</link>
      <guid>http://beraldoleal.com/index.php/archives/51</guid>
      <description>&lt;p&gt;teste de um post r&#xE1;pido para os asides.&lt;/p&gt;
</description>
    </item>
    <item>
      <pubDate>Thu, 14 Feb 2008 17:51:44 GMT</pubDate>
      <title>Hacked!</title>
      <link>http://www.advogato.org/person/beraldo/diary.html?start=11</link>
      <guid>http://beraldoleal.com/index.php/archives/50</guid>
    </item>
    <item>
      <pubDate>Thu, 7 Feb 2008 17:10:55 GMT</pubDate>
      <title>Kids 0.1b released</title>
      <link>http://www.advogato.org/person/beraldo/diary.html?start=10</link>
      <guid>http://beraldoleal.com/index.php/archives/46</guid>
      <description>&lt;p&gt;&lt;img src="http://beraldoleal.com/wp-content/uploads/2008/02/kids_logo2.png" align="left" /&gt;&lt;/p&gt;
&lt;p align="justify"&gt;It is my great pleasure to announce the availability of KIDS 0.1b, an Kernel (Network) Intrusion Detection System. This project is the result of a year of research on kernel and Network IDS. The Kernel Intrusion Detection System-KIDS, is a Network IDS, where the main part, packets grab/string match, is running at kernelspace, with a hook of Netfilter Framework. This project is not ready for use. It is only a proof of concept and should not be put in an environment in production, yet.&lt;/p&gt;
&lt;p align="justify"&gt;The main goal of KIDS is to try to reduce the delay in the processing of the rules, with the elimination of two changes in context (kernel-user-user-kernel), as this task is performed in kernelspace.&lt;/p&gt;
&lt;p align="justify"&gt;The main goal of KIDS is to try to reduce the delay in the processing of the rules, with the elimination of two changes in context (kernel-user-user-kernel), as this task is performed in kernelspace.&lt;/p&gt;
&lt;p align="justify"&gt;A more detailed document for development / hacking will be drafted later.&lt;/p&gt;
&lt;p&gt;For more information about KIDS project, please see:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://sourceforge.net/projects/ids-kids/" &gt;http://sourceforge.net/projects/ids-kids/&lt;/a&gt;&lt;/p&gt;
</description>
    </item>
    <item>
      <pubDate>Wed, 6 Feb 2008 23:09:01 GMT</pubDate>
      <title>Bitlbee</title>
      <link>http://www.advogato.org/person/beraldo/diary.html?start=9</link>
      <guid>http://beraldoleal.com/index.php/archives/43</guid>
      <description>&lt;p&gt;&lt;img src="http://beraldoleal.com/wp-content/uploads/2008/01/bitlbee.png" align="left" /&gt;&lt;/p&gt;
&lt;p align="justify"&gt;Bom.. depois de mais de um m&#xEA;s out, voltei, espero. Ano novo, vida nova, cidade nova (estou morando agora em Sampa) e eu na luta para conseguir tempo para postar algo aqui.&lt;/p&gt;
&lt;p align="justify"&gt;Bom... eu sou f&#xE3; do tal do IRC, desde de mil novecentos e bolinha, e depois que passei a usar o &lt;a href="http://www.bitlbee.org" &gt;bitlbee&lt;/a&gt;, mais ainda! &lt;img src='http://beraldoleal.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /&gt; Para quem n&#xE3;o conhece, trata-se de um gateway IRC para redes de instant messaging (atualmente suporta gtalk, jabber, yahoo, icq, msn, aim e skype). Se voc&#xEA; fica conectado full time no IRC, trocando ideias com outros nerds, e n&#xE3;o quer ter outras aplica&#xE7;&#xF5;es abertas como Gaim, Gtalk, amsn, ou qualquer outro IM, para falar com as pessoas que n&#xE3;o usam IRC, seus problemas acabaram!! Instale hoje mesmo o &lt;a href="http://www.bitlbee.org" &gt;bitlbee&lt;/a&gt;, e tenha seus contatos em uma sala IRC, normalmente, com seu client preferido. Tem at&#xE9; integra&#xE7;&#xE3;o com o emacs!&lt;/p&gt;
&lt;p align="justify"&gt;Instala&#xE7;&#xE3;o f&#xE1;cil f&#xE1;cil (dispon&#xED;vel no apt-get mais pr&#xF3;ximo de voc&#xEA;), conectou, registrou, logou, t&#xE1; l&#xE1;.. todos os contatos, perfeito! Ou quase, por default vem sem suporte a SSL, ent&#xE3;o trate de fazer um t&#xFA;nel seguro (&lt;a href="http://www.stunnel.org" &gt;stunnel&lt;/a&gt; &#xE9; uma boa sugest&#xE3;o), e seja feliz.&lt;/p&gt;
</description>
    </item>
    <item>
      <pubDate>Wed, 6 Feb 2008 23:09:01 GMT</pubDate>
      <title>Bebo nerd&#x2026;</title>
      <link>http://www.advogato.org/person/beraldo/diary.html?start=8</link>
      <guid>http://beraldoleal.com/index.php/archives/42</guid>
      <description>&lt;p&gt;Sabe aquelas brincadeiras de mesa de bar com os palitos de dente, ou coisa parecida? Bom, quem toma umas, sabe que bar tamb&#xE9;m &#xE9; cultura.... Mas nerd &#xE9; osso, ent&#xE3;o, s&#xF3; pra pensar um pouquinho, um Puzzle C, bem conhecido:&lt;/p&gt;
&lt;p&gt;Adicionando ou modificando apenas um caracter, no c&#xF3;digo abaixo, fa&#xE7;a este c&#xF3;digo imprimir exatamente 20 asteriscos:&lt;/p&gt;
&lt;pre&gt;
int main()
{
        int i, n = 20;
        for (i = 0; i &amp;lt; n; i--)
                printf("*");
	return 0;
}&lt;/pre&gt;
&lt;p&gt;&#xC9; simples, e existem algumas solu&#xE7;&#xF5;es para isto! &lt;img src='http://beraldoleal.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /&gt;&lt;/p&gt;
</description>
    </item>
    <item>
      <pubDate>Wed, 6 Feb 2008 23:09:01 GMT</pubDate>
      <title>Oops</title>
      <link>http://www.advogato.org/person/beraldo/diary.html?start=7</link>
      <guid>http://beraldoleal.com/index.php/archives/41</guid>
      <description>&lt;p align="justify"&gt;Quem disse que o Linux n&#xE3;o trava ?? Que atire a primeira pedra quem nunca viu ao menos um kernel panic na tela ? Pois bem, quando um erro grave ocorre no sistema, entre outras coisas que o kernel faz uma delas &#xE9; exibir no terminal e/ou sistema de log, uma mensagem bastante conhecida por quem j&#xE1; passou por isso, a famosa mensagem de &lt;strong&gt;Oops&lt;/strong&gt;. Trata-se de um dump do estado do CPU e da pillha do Kernel no momento em que o problema ocorreu. A mensagem de Oops mais conhecida &#xE9; a que vem acompanhada de um kernel panic. Muitos ao se deparar com isso, percebem que nada funciona (na maioria dos casos), Ctrl+Alt+Backspace, teclas de fun&#xE7;&#xE3;o, e nem &#xE1;gua, ai, simplesmente reiniciam a m&#xE1;quina, podendo causar ainda mais problemas.&lt;/p&gt;
&lt;p&gt;Abaixo um exemplo de uma mensagem de Oops:&lt;/p&gt;
&lt;pre&gt;
Unable to handle kernel paging request at virtual address 00010015
 printing eip:
c01e6608
*pde = 00000000
Oops: 0000
CPU:    0
EIP:    0010:[usb_unlink_urb+8/64]    Tainted: P
EFLAGS: 00010202
eax: 00010001   ebx: d70c6494   ecx: c7c81000   edx: 00010001
esi: c7c81640   edi: d70c6400   ebp: d70c64f0   esp: d2daded0
ds: 0018   es: 0018   ss: 0018
Process kpilotDaemon (pid: 30778, stackpage=d2dad000)
Stack: d892a2ed 00010001 d70c6494 d70c6400 d3df51c0 00000000 d8924350 d70c6494
       d3df51c0 d725a000 cc5faa40 c16063c0 c018c460 d725a000 d3df51c0 d3df51c0
       cc5faa40 c16063c0 c8117e40 00000001 d3df51c0 bffff0e8 00000000 00000000
Call Trace: [&lt;d892a2ed&gt;] [&lt;d8924350&gt;] [release_dev+576/1280]
[n_tty_ioctl+257/1200] [tty_release+10/16]
   [fput+76/224] [filp_close+92/112] [sys_close+67/96] [system_call+51/56] 

Code: 8b 42 14 85 c0 74 21 8b 80 bc 00 00 00 85 c0 74 17 8b 40 18
&lt;/d8924350&gt;&lt;/d892a2ed&gt;&lt;/pre&gt;
&lt;p align="justify"&gt;Esta mensagem pode ajudar aos desenvolvedores do kernel a depurar melhor o problema, e mesmo que voc&#xEA; n&#xE3;o reporte o bug, voc&#xEA; pode se utilizar de um recurso que foi desenvolvido pensando nisto: As &lt;strong&gt;Magic SysRq Keys&lt;/strong&gt;.&lt;/p&gt;
&lt;p align="justify"&gt;Trata-se de uma combina&#xE7;&#xE3;o de teclas que &#xE9; utilizada para comunicar-se com o kernel do Linux, caso a op&#xE7;&#xE3;o CONFIG_MAGIC_SYSRQ  tiver sido habilitada durante a compila&#xE7;&#xE3;o do kernel, ou em &lt;strong&gt;/proc/sys/kernel/sysrq&lt;/strong&gt;.&lt;/p&gt;
&lt;p align="justify"&gt;Basta apertar &lt;strong&gt;Alt+PrintScreen+Tecla&lt;/strong&gt; e a sa&#xED;da (dependendo da tecla) &#xE9; enviada para o dmesg. Abaixo apenas algumas teclas:&lt;/p&gt;
&lt;table border="0" width="100%"&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Tecla&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Descri&#xE7;&#xE3;o&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;t&lt;/td&gt;
&lt;td&gt;Lista de tarefas/processos com suas informa&#xE7;&#xF5;es detalhadas&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;u&lt;/td&gt;
&lt;td&gt;Remonta todas as parti&#xE7;&#xF5;es montadas, s&#xF3; que em read-only&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;m&lt;/td&gt;
&lt;td&gt;Mostra informa&#xE7;&#xF5;es sobre o estado atual da mem&#xF3;ria&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;e&lt;/td&gt;
&lt;td&gt;Envia um sinal do tipo SIGTERM para todos os processos, exceto para o init&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;p align="justify"&gt;Existe a famosa combina&#xE7;&#xE3;o: &lt;strong&gt;Alt+PrintScreen+R E I S U B&lt;/strong&gt;, onde basicamente mata todos os processos, sincroniza os discos, remonta todas os filesystems montados em read-only, e s&#xF3; ent&#xE3;o reinicia a m&#xE1;quina. Por tanto, antes de "meter o ded&#xE3;o" no bot&#xE3;o de power, &lt;strong&gt;REISUB&lt;/strong&gt;. &lt;img src='http://beraldoleal.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /&gt; &lt;/p&gt;
</description>
    </item>
    <item>
      <pubDate>Wed, 6 Feb 2008 23:09:01 GMT</pubDate>
      <title>Just for fun&#x2026;</title>
      <link>http://www.advogato.org/person/beraldo/diary.html?start=6</link>
      <guid>http://beraldoleal.com/index.php/archives/39</guid>
      <description>&lt;p&gt;&lt;center&gt;&lt;a href="http://beraldoleal.com/wp-content/uploads/2007/08/tiraecol_en-260.png" rel="lightbox" &gt;&lt;img src="http://beraldoleal.com/wp-content/uploads/2007/08/tiraecol_en-260.png" width="450" /&gt;&lt;/a&gt;&lt;/center&gt;&lt;/p&gt;
&lt;p&gt;Click na imagem acima para ampliar.&lt;/p&gt;
</description>
    </item>
  </channel>
</rss>
