<?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>Mon, 20 May 2013 06:44:29 GMT</pubDate>
    <item>
      <pubDate>Sun, 21 Nov 2010 20:10:17 GMT</pubDate>
      <title>3 anos&#x2026;</title>
      <link>http://www.advogato.org/person/beraldo/diary.html?start=20</link>
      <guid>http://beraldoleal.com/index.php/2010/11/3-anos/</guid>
      <description>&lt;p&gt;3 anos nesta selva de pedras, e longe da Terra do Sol.... &lt;img src='http://beraldoleal.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /&gt;&lt;br /&gt;
Saudades....&lt;br /&gt;
&lt;/p&gt;
</description>
    </item>
    <item>
      <pubDate>Mon, 19 Jul 2010 01:13:57 GMT</pubDate>
      <title>10 Modular Blues Turnarounds and Introductions</title>
      <link>http://www.advogato.org/person/beraldo/diary.html?start=19</link>
      <guid>http://beraldoleal.com/index.php/2010/07/10-modular-blues-turnarounds-and-introductions/</guid>
      <description>&lt;p&gt;&lt;center&gt;&lt;img class="size-medium wp-image-74 alignleft" style="margin: 5px;" title="blues" src="http://beraldoleal.com/wp-content/uploads/2010/07/blues-300x173.png" alt="" width="300" height="173" /&gt;&lt;/center&gt;&lt;BR&gt;After a long time without any post, so I decided to publish here links to the sheet music, tablature and midi file of 10 modular turnarounds and introductions of blues. That's right, I completely changed the main subject of the blog (geeky stuff), but music is for nerds too.&lt;/p&gt;
&lt;p&gt;Here are the files to download, including &lt;a href="http://lilypond.org/" &gt;lilypond&lt;/a&gt; source file.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://beraldoleal.com/music/turnarounds.pdf" &gt;Turnarounds.pdf&lt;/a&gt;&lt;br /&gt;
&lt;a href="http://beraldoleal.com/music/turnarounds.ly" &gt;Turnarounds.ly&lt;/a&gt;&lt;br /&gt;
&lt;a href="http://beraldoleal.com/music/turnarounds.midi" &gt;Turnarounds.midi&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Enjoy!&lt;/p&gt;
</description>
    </item>
    <item>
      <pubDate>Mon, 7 Sep 2009 00:12:26 GMT</pubDate>
      <title>mutt + sidebar patch + postfix + vim + offlineimap + cron = MUA perfeito (para mim)</title>
      <link>http://www.advogato.org/person/beraldo/diary.html?start=18</link>
      <guid>http://beraldoleal.com/index.php/2009/09/mutt-sidebar-patch-postfix-vim-offlineimap-cron-mua-perfeito-para-mim/</guid>
      <description>&lt;p&gt;Fazia bastante tempo que eu queria voltar a usar o mutt, mas tinha perdido meus backups dos arquivos de configura&#xE7;&#xE3;o e estava sem tempo para configur&#xE1;-lo novamente. Finalmente neste fds tive tempo para fazer a brincadeira funcionar com m&#xFA;ltiplas contas. Depois eu posto aqui os arquivos de configura&#xE7;&#xE3;o.... (se me restar tempo...)&lt;/p&gt;
&lt;p&gt;&lt;a rel="lightbox" href="http://beraldoleal.com/wp-content/uploads/2009/09/mutt.png" &gt;&lt;img class="alignnone size-medium wp-image-63" title="Mutt" src="http://beraldoleal.com/wp-content/uploads/2009/09/mutt-299x174.png" alt="Mutt" width="299" height="174" /&gt;&lt;/a&gt;&lt;/p&gt;
</description>
    </item>
    <item>
      <pubDate>Thu, 19 Feb 2009 19:11:07 GMT</pubDate>
      <title>Grabbing and sending packets with Scapy (Scapy, part 2)</title>
      <link>http://www.advogato.org/person/beraldo/diary.html?start=17</link>
      <guid>http://beraldoleal.com/index.php/2009/02/grabbing-and-sending-packets-with-scapy-scapy-part-2/</guid>
      <description>&lt;p&gt;HI folk, in the &lt;a href="http://beraldoleal.com/index.php/2008/07/scapy-part-1/" &gt;last post&lt;/a&gt; (a long time ago), I write a short introduction to &lt;a href="http://www.secdev.org/projects/scapy/" &gt;Scapy tool&lt;/a&gt;. With this post, I need, show to you, how grab and send packets with Scapy. This is a good way to develop tools to test any network application, such study &lt;a href="http://www.unixwiz.net/techtips/iguide-kaminsky-dns-vuln.html" &gt;Kaminsky's DNS flaw&lt;/a&gt;, since no talks about anything else on the Internet.&lt;/p&gt;
&lt;p&gt;In scapy there are many methods to send or receive a packet in network.  We have the families of commands, below:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Send family&lt;/strong&gt; - Just send packets in layer 2 or 3.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Send and Receive family&lt;/strong&gt; - Send packets in layer 2 or 3 and print or store results.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Sniff family&lt;/strong&gt; - Receive packets in promisc mode and return them in a packet list.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This post is not intended as a reference for each of the families above. For more informations, execute lsc() in scapy and see &lt;a href="http://www.secdev.org/projects/scapy/files/scapydoc.pdf" &gt;Scapy doc&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;You can see a sample of Sniff family in action, below (execute scapy as root):&lt;/p&gt;
&lt;pre&gt;&amp;gt;&amp;gt;&amp;gt; a=sniff(count=2)
&amp;gt;&amp;gt;&amp;gt; a
&amp;lt;Sniffed: UDP:2 ICMP:0 TCP:0 Other:0&amp;gt;
&amp;gt;&amp;gt;&amp;gt; a.nsummary()
0000 Ether / IP / UDP / DNS Qry "www.google.com."
0001 Ether / IP / UDP / DNS Ans "www.l.google.com."
&amp;gt;&amp;gt;&amp;gt; a[0].show()
###[ Ethernet ]###
dst= 00:03:99:89:83:a9
src= 00:1e:c9:1b:7b:da
type= 0x800
###[ IP ]###
version= 4L
ihl= 5L
tos= 0x0
len= 60
id= 12959
flags= DF
frag= 0L
ttl= 64
proto= udp
chksum= 0xd5af
src= 10.1.0.1
dst= 200.170.95.182
options= ''
###[ UDP ]###
sport= 54584
dport= domain
len= 40
chksum= 0x329c
###[ DNS ]###
id= 16628
qr= 0L
opcode= QUERY
aa= 0L
tc= 0L
rd= 1L
ra= 0L
z= 0L
rcode= ok
qdcount= 1
ancount= 0
nscount= 0
arcount= 0
qd
|###[ DNS Question Record ]###
|  qname= 'www.google.com.'
|  qtype= A
|  qclass= IN
an= 0
ns= 0
ar= 0
&amp;gt;&amp;gt;&amp;gt;&lt;/pre&gt;
&lt;p&gt;You can have many parameters in sniff() function, like a &lt;strong&gt;filter&lt;/strong&gt; , &lt;strong&gt;timeout&lt;/strong&gt; , an interface (&lt;strong&gt;iface&lt;/strong&gt; ), and a function to apply to each packet (&lt;strong&gt;prn&lt;/strong&gt; and &lt;strong&gt;lfilter&lt;/strong&gt; ).&lt;/p&gt;
&lt;pre&gt;&amp;gt;&amp;gt;&amp;gt;  sniff(filter="udp and port 53", count=2, iface="eth0")
&amp;lt;Sniffed: UDP:2 ICMP:0 TCP:0 Other:0&amp;gt;
&amp;gt;&amp;gt;&amp;gt;&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;Sending a simple ICMP packet&lt;/strong&gt;&lt;/p&gt;
&lt;pre&gt;&amp;gt;&amp;gt;&amp;gt; pkt=IP(dst="10.0.0.1")/ICMP()
&amp;gt;&amp;gt;&amp;gt; pkt
&amp;lt;IP  frag=0 proto=icmp dst=10.0.0.1 |&amp;lt;ICMP  |&amp;gt;&amp;gt;
&amp;gt;&amp;gt;&amp;gt; send(pkt,count=2)
..
Sent 2 packets.&lt;/pre&gt;
&lt;p&gt;Ok, this is a simple sample, I know, but you now can use your mind and play with Scapy.&lt;/p&gt;
</description>
    </item>
    <item>
      <pubDate>Thu, 28 Aug 2008 15:13:40 GMT</pubDate>
      <title>Grabbing and sending packets with Scapy (Scapy, part 2)</title>
      <link>http://www.advogato.org/person/beraldo/diary.html?start=16</link>
      <guid>http://beraldoleal.com/index.php/2008/08/grabbing-and-sending-packets-with-scapy-scapy-part-2/</guid>
      <description>&lt;p&gt;HI folk, in the &lt;a href="http://beraldoleal.com/index.php/2008/07/scapy-part-1/" &gt;last post&lt;/a&gt; (a long time ago), I write a short introduction to &lt;a href="http://www.secdev.org/projects/scapy/" &gt;Scapy tool&lt;/a&gt;. With this post, I need, show to you, how grab and send packets with Scapy. This is a good way to develop tools to test any network application, such study &lt;a href="http://www.unixwiz.net/techtips/iguide-kaminsky-dns-vuln.html" &gt;Kaminsky's DNS flaw&lt;/a&gt;, since no talks about anything else on the Internet.&lt;/p&gt;
&lt;p&gt;In scapy there are many methods to send or receive a packet in network.  We have the families of commands, below:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Send family&lt;/strong&gt; - Just send packets in layer 2 or 3.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Send and Receive family&lt;/strong&gt; - Send packets in layer 2 or 3 and print or store results.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Sniff family&lt;/strong&gt; - Receive packets in promisc mode and return them in a packet list.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This post is not intended as a reference for each of the families above. For more informations, execute lsc() in scapy and see &lt;a href="http://www.secdev.org/projects/scapy/files/scapydoc.pdf" &gt;Scapy doc&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;You can see a sample of Sniff family in action, below (execute scapy as root):&lt;/p&gt;
&lt;pre&gt;&amp;gt;&amp;gt;&amp;gt; a=sniff(count=2)
&amp;gt;&amp;gt;&amp;gt; a
&amp;lt;Sniffed: UDP:2 ICMP:0 TCP:0 Other:0&amp;gt;
&amp;gt;&amp;gt;&amp;gt; a.nsummary()
0000 Ether / IP / UDP / DNS Qry &amp;quot;www.google.com.&amp;quot;
0001 Ether / IP / UDP / DNS Ans &amp;quot;www.l.google.com.&amp;quot;
&amp;gt;&amp;gt;&amp;gt; a[0].show()
###[ Ethernet ]###
dst= 00:03:99:89:83:a9
src= 00:1e:c9:1b:7b:da
type= 0x800
###[ IP ]###
version= 4L
ihl= 5L
tos= 0x0
len= 60
id= 12959
flags= DF
frag= 0L
ttl= 64
proto= udp
chksum= 0xd5af
src= 10.1.0.1
dst= 200.170.95.182
options= ''
###[ UDP ]###
sport= 54584
dport= domain
len= 40
chksum= 0x329c
###[ DNS ]###
id= 16628
qr= 0L
opcode= QUERY
aa= 0L
tc= 0L
rd= 1L
ra= 0L
z= 0L
rcode= ok
qdcount= 1
ancount= 0
nscount= 0
arcount= 0
qd
|###[ DNS Question Record ]###
|  qname= 'www.google.com.'
|  qtype= A
|  qclass= IN
an= 0
ns= 0
ar= 0
&amp;gt;&amp;gt;&amp;gt;&lt;/pre&gt;
&lt;p&gt;You can have many parameters in sniff() function, like a &lt;strong&gt;filter&lt;/strong&gt; , &lt;strong&gt;timeout&lt;/strong&gt; , an interface (&lt;strong&gt;iface&lt;/strong&gt; ), and a function to apply to each packet (&lt;strong&gt;prn&lt;/strong&gt; and &lt;strong&gt;lfilter&lt;/strong&gt; ).&lt;/p&gt;
&lt;pre&gt;&amp;gt;&amp;gt;&amp;gt;  sniff(filter=&amp;quot;udp and port 53&amp;quot;, count=2, iface=&amp;quot;eth0&amp;quot;)
&amp;lt;Sniffed: UDP:2 ICMP:0 TCP:0 Other:0&amp;gt;
&amp;gt;&amp;gt;&amp;gt;&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;Sending a simple ICMP packet&lt;/strong&gt;&lt;/p&gt;
&lt;pre&gt;&amp;gt;&amp;gt;&amp;gt; pkt=IP(dst=&amp;quot;10.0.0.1&amp;quot;)/ICMP()
&amp;gt;&amp;gt;&amp;gt; pkt
&amp;lt;IP  frag=0 proto=icmp dst=10.0.0.1 |&amp;lt;ICMP  |&amp;gt;&amp;gt;
&amp;gt;&amp;gt;&amp;gt; send(pkt,count=2)
..
Sent 2 packets.&lt;/pre&gt;
&lt;p&gt;Ok, this a simple sample, I know, but you now can use your mind and play with Scapy.&lt;/p&gt;
</description>
    </item>
    <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>
  </channel>
</rss>
