<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link rel="hub" href="http://tumblr.superfeedr.com/" xmlns:atom="http://www.w3.org/2005/Atom"/><description>pello lives near Paris (France)
Deep diving in network security
Having fun on rollerblades!</description><title>pello + network security</title><generator>Tumblr (3.0; @fropert)</generator><link>http://stack.packetfault.org/</link><item><title>Decrypt IPSEC traffic with wireshark</title><description>&lt;p&gt;I’ve setup a VPN IPSEC link between a Cisco and a Linux to demo the ESP decrypting feature of wireshark.&lt;/p&gt;
&lt;p&gt;After having configured both sides of the IPSEC link, it’s time to test from the Cisco router: &lt;/p&gt;
&lt;p&gt;ping 192.168.3.1 source 192.168.2.1 size 123 data CAFE&lt;br/&gt;Type escape sequence to abort.&lt;br/&gt;Sending 5, 123-byte ICMP Echos to 192.168.3.1, timeout is 2 seconds:&lt;br/&gt;Packet sent with a source address of 192.168.2.1 &lt;br/&gt;Packet has data pattern 0xCAFE&lt;br/&gt;..!!!&lt;br/&gt;Success rate is 80 percent (3/5), round-trip min/avg/max = 1/3/4 ms&lt;/p&gt;
&lt;p&gt;Sucess! The 2 first dot are because it took seconds to bring up the tunnel.&lt;/p&gt;
&lt;p&gt;&lt;br/&gt;As you can see in the following trace, the icmp-request is unencrypted. Righ after we see some ESP traffic. Could it be the icmp-replies?&lt;/p&gt;
&lt;p&gt;No.     Time        Source                Destination           Protocol Info                                                            heure              &lt;/p&gt;
&lt;p&gt;        fw-1 chain&lt;/p&gt;
&lt;p&gt;     12 6.376835    10.100.100.200        10.100.100.100        ESP      ESP (SPI=0x09bfd93b)                                            2011-07-17 20:36:08&lt;/p&gt;
&lt;p&gt;.629993 &lt;/p&gt;
&lt;p&gt;     13 6.376835    192.168.2.1           192.168.3.1           &lt;strong&gt;ICMP     Echo (ping) request&lt;/strong&gt;  (id=0x0008, seq(be/le)=1/256, ttl=255)     2011-07-17 20:36:08&lt;/p&gt;
&lt;p&gt;.629993 &lt;/p&gt;
&lt;p&gt;     14 6.376933    10.100.100.100        10.100.100.200        ESP      ESP (SPI=0x8134dedc)                                            2011-07-17 20:36:08&lt;/p&gt;
&lt;p&gt;.630091 &lt;/p&gt;
&lt;p&gt;     15 6.383264    10.100.100.200        10.100.100.100        ESP      ESP (SPI=0x09bfd93b)                                            2011-07-17 20:36:08&lt;/p&gt;
&lt;p&gt;.636422 &lt;/p&gt;
&lt;p&gt;     16 6.383264    192.168.2.1           192.168.3.1           &lt;strong&gt;ICMP     Echo (ping) request&lt;/strong&gt;  (id=0x0008, seq(be/le)=2/512, ttl=255)     2011-07-17 20:36:08&lt;/p&gt;
&lt;p&gt;.636422 &lt;/p&gt;
&lt;p&gt;     17 6.383348    10.100.100.100        10.100.100.200        ESP      ESP (SPI=0x8134dedc)                                            2011-07-17 20:36:08&lt;/p&gt;
&lt;p&gt;.636506 &lt;/p&gt;
&lt;p&gt;     18 6.385546    10.100.100.200        10.100.100.100        ESP      ESP (SPI=0x09bfd93b)                                            2011-07-17 20:36:08&lt;/p&gt;
&lt;p&gt;.638704 &lt;/p&gt;
&lt;p&gt;     19 6.385546    192.168.2.1           192.168.3.1           &lt;strong&gt;ICMP     Echo (ping) request&lt;/strong&gt;  (id=0x0008, seq(be/le)=3/768, ttl=255)     2011-07-17 20:36:08&lt;/p&gt;
&lt;p&gt;.638704 &lt;/p&gt;
&lt;p&gt;     20 6.385614    10.100.100.100        10.100.100.200        ESP      ESP (SPI=0x8134dedc)                                            2011-07-17 20:36:08&lt;/p&gt;
&lt;p&gt;.638772 &lt;/p&gt;
&lt;p&gt;     21 6.387761    10.100.100.200        10.100.100.100        ESP      ESP (SPI=0x09bfd93b)                                            2011-07-17 20:36:08&lt;/p&gt;
&lt;p&gt;.640919 &lt;/p&gt;
&lt;p&gt;     22 6.387761    192.168.2.1           192.168.3.1           &lt;strong&gt;ICMP     Echo (ping) request&lt;/strong&gt;  (id=0x0008, seq(be/le)=4/1024, ttl=255)    2011-07-17 20:36:08&lt;/p&gt;
&lt;p&gt;.640919 &lt;/p&gt;
&lt;p&gt;     23 6.387827    10.100.100.100        10.100.100.200        ESP      ESP (SPI=0x8134dedc)                                            2011-07-17 20:36:08&lt;/p&gt;
&lt;p&gt;.640985 &lt;/p&gt;
&lt;p&gt;Now, go find information that wireshark requires to decode the ESP traffic. Note that some implementation like the Cisco’s one doesn’t disclose the keys with a command. However it’s possible to find it within the Cisco IOS arcanes by drilling into a core dump and look for the good hex string. On Linux, you could use the ip xfrm state command to display the automatically generated session specific encryption and authentication keys:&lt;/p&gt;
&lt;p&gt;$ &lt;strong&gt;sudo ip xfrm state&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;src 10.100.100.100 dst 10.100.100.200&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;proto esp spi 0x8134dedc reqid 0 mode tunnel&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;replay-window 4 &lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;auth hmac(md5) &lt;strong&gt;0xa45c1bde51d20a61381025a1d55b675f&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;enc cbc(des3_ede) &lt;strong&gt;0x7926ddbf7170fe9ece55bffede0e74e5a0b532958bcd0bc2&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;sel src 0.0.0.0/0 dst 0.0.0.0/0 &lt;/p&gt;
&lt;p&gt;src 10.100.100.200 dst 10.100.100.100&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;proto esp spi 0x09bfd93b reqid 0 mode tunnel&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;replay-window 4 &lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;auth hmac(md5) &lt;strong&gt;0x09be7b297316b0085a5c99fd59745b54&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;enc cbc(des3_ede) &lt;strong&gt;0xe4f6a1c56f8c31ff6c76a3ac24f284aaeb3a653cde839dcd&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;sel src 0.0.0.0/0 dst 0.0.0.0/0&lt;/p&gt;
&lt;p&gt;Now, go to the wireshark preferences and fill the ESP protocol by the gathered information.&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;Tick the ‘Attempt to detect/decode encrypted ESP payloads’ box&lt;/li&gt;
&lt;li&gt;SA #1 : IPv4|10.100.100.100|10.100.100.200|0x8134dedc&lt;/li&gt;
&lt;li&gt;Encryption algorithm #1: TripleDES-CBC [RFC2451]&lt;/li&gt;
&lt;li&gt;Authentication algorithm #1: HMAC-MD5-96 [RFC2403]&lt;/li&gt;
&lt;li&gt;Encryption Key #1: 0x7926ddbf7170fe9ece55bffede0e74e5a0b532958bcd0bc2&lt;/li&gt;
&lt;li&gt;Authentication Key #1: 0xa45c1bde51d20a61381025a1d55b675f&lt;/li&gt;
&lt;li&gt;SA #2 : IPv4|10.100.100.200|10.100.100.100|0x09bfd93b&lt;/li&gt;
&lt;li&gt;Encryption algorithm #2: TripleDES-CBC [RFC2451]&lt;/li&gt;
&lt;li&gt;Authentication algorithm #2: HMAC-MD5-96 [RFC2403]&lt;/li&gt;
&lt;li&gt;Encryption Key #2 : 0xe4f6a1c56f8c31ff6c76a3ac24f284aaeb3a653cde839dcd&lt;/li&gt;
&lt;li&gt;Authentication Key #2 : 0x09be7b297316b0085a5c99fd59745b54&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;After clicking the Apply button, the white magic occurs and a new tab called “Decrypted Tab” appears at the right of the frame’s one:&lt;/p&gt;
&lt;p&gt;No.     Time        Source                Destination           Protocol Info                                                            heure              &lt;/p&gt;
&lt;p&gt;        fw-1 chain&lt;/p&gt;
&lt;p&gt;      1 0.000000    192.168.2.1           192.168.3.1           ICMP     Echo (ping) request  (id=0x0008, seq(be/le)=1/256, ttl=255)     2011-07-17 20:36:08&lt;/p&gt;
&lt;p&gt;.629993 &lt;/p&gt;
&lt;p&gt;      2 0.000000    192.168.2.1           192.168.3.1           ICMP     Echo (ping) request  (id=0x0008, seq(be/le)=1/256, ttl=255)     2011-07-17 20:36:08&lt;/p&gt;
&lt;p&gt;.629993 &lt;/p&gt;
&lt;p&gt;      3 0.000098    192.168.3.1           192.168.2.1           ICMP     Echo (ping) reply    (id=0x0008, seq(be/le)=1/256, ttl=64)      2011-07-17 20:36:08&lt;/p&gt;
&lt;p&gt;.630091 &lt;/p&gt;
&lt;p&gt;      4 0.006429    192.168.2.1           192.168.3.1           ICMP     Echo (ping) request  (id=0x0008, seq(be/le)=2/512, ttl=255)     2011-07-17 20:36:08&lt;/p&gt;
&lt;p&gt;.636422 &lt;/p&gt;
&lt;p&gt;      5 0.006429    192.168.2.1           192.168.3.1           ICMP     Echo (ping) request  (id=0x0008, seq(be/le)=2/512, ttl=255)     2011-07-17 20:36:08&lt;/p&gt;
&lt;p&gt;.636422 &lt;/p&gt;
&lt;p&gt;      6 0.006513    192.168.3.1           192.168.2.1           ICMP     Echo (ping) reply    (id=0x0008, seq(be/le)=2/512, ttl=64)      2011-07-17 20:36:08&lt;/p&gt;
&lt;p&gt;.636506 &lt;/p&gt;
&lt;p&gt;      7 0.008711    192.168.2.1           192.168.3.1           ICMP     Echo (ping) request  (id=0x0008, seq(be/le)=3/768, ttl=255)     2011-07-17 20:36:08&lt;/p&gt;
&lt;p&gt;.638704 &lt;/p&gt;
&lt;p&gt;      8 0.008711    192.168.2.1           192.168.3.1           ICMP     Echo (ping) request  (id=0x0008, seq(be/le)=3/768, ttl=255)     2011-07-17 20:36:08&lt;/p&gt;
&lt;p&gt;.638704 &lt;/p&gt;
&lt;p&gt;      9 0.008779    192.168.3.1           192.168.2.1           ICMP     Echo (ping) reply    (id=0x0008, seq(be/le)=3/768, ttl=64)      2011-07-17 20:36:08&lt;/p&gt;
&lt;p&gt;.638772 &lt;/p&gt;
&lt;p&gt;     10 0.010926    192.168.2.1           192.168.3.1           ICMP     Echo (ping) request  (id=0x0008, seq(be/le)=4/1024, ttl=255)    2011-07-17 20:36:08&lt;/p&gt;
&lt;p&gt;.640919 &lt;/p&gt;
&lt;p&gt;     11 0.010926    192.168.2.1           192.168.3.1           ICMP     Echo (ping) request  (id=0x0008, seq(be/le)=4/1024, ttl=255)    2011-07-17 20:36:08&lt;/p&gt;
&lt;p&gt;.640919 &lt;/p&gt;
&lt;p&gt;     12 0.010992    192.168.3.1           192.168.2.1           ICMP     Echo (ping) reply    (id=0x0008, seq(be/le)=4/1024, ttl=64)     2011-07-17 20:36:08&lt;/p&gt;
&lt;p&gt;.640985 &lt;/p&gt;
&lt;p&gt;Congrats! You are now able to read through IPSEC!&lt;/p&gt;</description><link>http://stack.packetfault.org/post/7731308462</link><guid>http://stack.packetfault.org/post/7731308462</guid><pubDate>Sun, 17 Jul 2011 21:07:00 +0200</pubDate><category>linux</category><category>ipsec</category></item><item><title>BPF aka Boolean Packet Filter language</title><description>&lt;p&gt;Yes. BPF is Berkeley Packet Filter but could be renamed Boolean Packet Filter as the filter function output a true or false regarding a packet traveling from the kernel to the application.&lt;/p&gt;
&lt;p&gt;This result can be obtained glad to a directed acyclic control ﬂow graph composed of comparison predicates and boolean operations.&lt;/p&gt;
&lt;p&gt;Here is how to decrypt the language helped by the next two examples. The people accustomed with the randomly chosen assembly languages should enjoy the syntax :-)&lt;/p&gt;
&lt;p&gt;On a side snote, wireshark 1.6.0 feature a BPF compiler in the capture wizard to impress your girlfriend.&lt;/p&gt;
&lt;p&gt;pello@Networker:~$ sudo tcpdump -i eth0 -d &lt;strong&gt;“ip”&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;(000) ldh      [12] &lt;strong&gt;(Load a half-word (16 bits) at the position 12 in decimal)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;(001) jeq      #0x800           jt 2&lt;span&gt; &lt;/span&gt;jf 3&lt;strong&gt; (jt = jump to (002) if true / jf = jump to (003) if false)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;(002) ret      #65535 (&lt;strong&gt;65535 = TRUE) &lt;= DELIVERED TO THE APP (WIRESHARK by example)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;(003) ret      #0 &lt;strong&gt;(0 = FALSE) &lt;= DELIVERED TO IGNORE LAND&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Another example .. a little bit more complicated:&lt;/p&gt;

&lt;p&gt;pello@Networker:~$ sudo tcpdump -i eth0 -d “&lt;strong&gt;tcp port 22&lt;/strong&gt;”&lt;/p&gt;
&lt;p&gt;(000) ldh      [12]&lt;/p&gt;
&lt;p&gt;(001) jeq      #0x86dd          jt 2&lt;span&gt; &lt;/span&gt;jf 8 &lt;strong&gt;(Check if IPv6)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;(002) ldb      [20] &lt;strong&gt;(Move to position 20 - Next header field - IPv6 branch)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;(003) jeq      #0x6             jt 4&lt;span&gt; &lt;/span&gt;jf 19 &lt;strong&gt;(Check if IPv6 next header is TCP)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;(004) ldh      [54]&lt;/p&gt;
&lt;p&gt;(005) jeq      #0x16            jt 18&lt;span&gt; &lt;/span&gt;jf 6 &lt;strong&gt;(Check if TCP source port equals 22 - IPv6 Branch)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;(006) ldh      [56]&lt;/p&gt;
&lt;p&gt;(007) jeq      #0x16            jt 18&lt;span&gt; &lt;/span&gt;jf 19 &lt;strong&gt;(Check if TCP destination port equals 22 - IPv6 Branch)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;(008) jeq      #0x800           jt 9&lt;span&gt; &lt;/span&gt;jf 19 &lt;strong&gt;(Check if IPv4 from instruction 000)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;(009) ldb      [23] &lt;strong&gt;(Move to the 23th byte position of the packet starting from the link layer header (Ethernet in this case) and read 1 byte considering 1 byte equals to 8 bits)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;(010) jeq      #0x6             jt 11&lt;span&gt; &lt;/span&gt;jf 19 &lt;strong&gt;(Check if TCP - Ipv4 branch)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;(011) ldh      [20] &lt;/p&gt;
&lt;p&gt;(012) jset     #0x1fff          jt 19&lt;span&gt; &lt;/span&gt;jf 13 &lt;strong&gt;(Bitwise and with the IP fragmentation bit mask check. If non-zero then this is a fragmented packet so we cannot find the TCP header in this packet  |=&gt; ignored)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;(013) ldxb     4*([14]&amp;0xf) &lt;strong&gt;(Seek the IP header length bitwise and with 0xf then multiplicate it by 4. The result is stored as a Byte in the index register: x)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;(014) ldh      [x + 14] &lt;strong&gt;(TCP source port position derived from x - IPv4 branch - 16 bits)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;(015) jeq      #0x16            jt 18&lt;span&gt; &lt;/span&gt;jf 16 &lt;em&gt;&lt;strong&gt;(True if 22)&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;(016) ldh      [x + 16] &lt;strong&gt;(TCP destination port position derived from x - IPv4 branch - 16 bits)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;(017) jeq      #0x16            jt 18&lt;span&gt; &lt;/span&gt;jf 19 &lt;em&gt;&lt;strong&gt;(True if 22)&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;(018) ret      #65535&lt;/p&gt;
&lt;p&gt;(019) ret      #0&lt;/p&gt;


&lt;p&gt;As a next step of playing with BPF filters the reader could reverse the order of the ‘and’ filters and observe the difference. As an example: “tcp port 22 and host 127.0.0.1” versus “host 127.0.0.1 and tcp port 22”&lt;/p&gt;
&lt;p&gt;Happy BPF! :&gt;&lt;/p&gt;</description><link>http://stack.packetfault.org/post/6532648316</link><guid>http://stack.packetfault.org/post/6532648316</guid><pubDate>Tue, 14 Jun 2011 23:35:51 +0200</pubDate><category>sniffer</category><category>linux</category></item><item><title>Racket vs Packetfu in Metasploit</title><description>&lt;p&gt;Why the hell did I think I wrote this in packetfu? Looks like my hard disk contains a traffic hijacker glad to HSRP written with the racket lib. That was wrote a long time ago and I decided to push it before I forget it another time in the not-so-used inodes.&lt;/p&gt;
&lt;p&gt;&lt;a title="HSRP traffic hijacker" href="http://dev.metasploit.com/redmine/issues/4568"&gt;&lt;a href="http://dev.metasploit.com/redmine/issues/4568"&gt;http://dev.metasploit.com/redmine/issues/4568&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;AFAIK, Tod is doing some nice work actually on the packetfu lib. Stay tuned for the next clash regarding networking lib in ruby. Racket or Packetfu? It seems the future will be a plentiful of Packetfu!&lt;/p&gt;</description><link>http://stack.packetfault.org/post/5739804859</link><guid>http://stack.packetfault.org/post/5739804859</guid><pubDate>Sun, 22 May 2011 20:56:08 +0200</pubDate><category>metasploit</category></item><item><title>EAP-MD5 sucks *for real*</title><description>&lt;p&gt;&lt;a title="eap md5 sucks" href="http://tools.ietf.org/html/rfc3748#page-35"&gt;EAP-MD5&lt;/a&gt; is deprecated since Windows Vista in the Microsoft world.&lt;/p&gt;
&lt;p&gt;A KB exists to pinpoint the dictionary attack. That’s not the case for Cisco. EAP-MD5 is so great you can still use it on the Cisco’s IP phones. Also, I have found no documents referring to the EAP-MD5 security weakness but the deployment guides that helps the poor administrators to be powned in the future. Hopefully when Cisco stamps a customer network as safe glad to an audit (Probably running by a CISSP leet) then the customer feels indestructible until a real pentester (not the CISSP’s well-suited guy) manages to break-in on their invulnerable network in seconds.&lt;/p&gt;
&lt;p&gt;Reality is bad. Help your customer to kill EAP-MD5 forever by using my &lt;a href="http://dev.metasploit.com/redmine/issues/4439"&gt;metasploit module&lt;/a&gt; which worked succesfully on wired and wireless 802.1x environments.&lt;/p&gt;
&lt;p&gt;You could also use the following &lt;a href="http://lanmaster53.com/?p=588"&gt;script&lt;/a&gt; from LaNMaSteR53 if you are in love with python. Or the well-known xtest and eapmd5pass which is not needed to comment anymore.&lt;/p&gt;
&lt;p&gt;Go for another scheme or… or…sorry definitely no EAP-MD5 even &lt;a title="eap md5 tunneled" href="https://datatracker.ietf.org/doc/draft-funk-eap-md5-tunneled/"&gt;tunneled&lt;/a&gt; as it remove the dictionary attack but add the man in the middle scenario to the attacker.&lt;/p&gt;
&lt;p&gt;Evangelism for the win.&lt;/p&gt;</description><link>http://stack.packetfault.org/post/5514292537</link><guid>http://stack.packetfault.org/post/5514292537</guid><pubDate>Sun, 15 May 2011 19:04:00 +0200</pubDate><category>metasploit</category></item><item><title>XeroX and netsec-catalog</title><description>&lt;p&gt;New Metasploit module developed: &lt;a href="https://dev.metasploit.com/redmine/issues/4007"&gt;&lt;a href="https://dev.metasploit.com/redmine/issues/4007"&gt;https://dev.metasploit.com/redmine/issues/4007&lt;/a&gt;&lt;/a&gt; (XeroX workcentre users enumeration)&lt;/p&gt;
&lt;p&gt;New repository containing network security documents and videos : &lt;a href="http://code.google.com/p/netsec-catalog/"&gt;&lt;a href="http://code.google.com/p/netsec-catalog/"&gt;http://code.google.com/p/netsec-catalog/&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;See you later.&lt;/p&gt;</description><link>http://stack.packetfault.org/post/4215186211</link><guid>http://stack.packetfault.org/post/4215186211</guid><pubDate>Wed, 30 Mar 2011 22:32:00 +0200</pubDate><category>metasploit</category></item><item><title>Links of the day - malware oriented</title><description>&lt;p&gt;&lt;a href="http://eicar.org/anti_virus_test_file.htm"&gt;&lt;a href="http://eicar.org/anti_virus_test_file.htm"&gt;http://eicar.org/anti_virus_test_file.htm&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://spamassassin.apache.org/gtube/"&gt;&lt;a href="http://spamassassin.apache.org/gtube/"&gt;http://spamassassin.apache.org/gtube/&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.malwaredomainlist.com/mdl.php"&gt;&lt;a href="http://www.malwaredomainlist.com/mdl.php"&gt;http://www.malwaredomainlist.com/mdl.php&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.malwaredomains.com/"&gt;&lt;a href="http://www.malwaredomains.com/"&gt;http://www.malwaredomains.com/&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.securelist.com/en/analysis/204792166/Monthly_Malware_Statistics_February_2011"&gt;&lt;a href="http://www.securelist.com/en/analysis/204792166/Monthly_Malware_Statistics_February_2011"&gt;http://www.securelist.com/en/analysis/204792166/Monthly_Malware_Statistics_February_2011&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.fortiguard.com/report/roundup_february_2011.html"&gt;&lt;a href="http://www.fortiguard.com/report/roundup_february_2011.html"&gt;http://www.fortiguard.com/report/roundup_february_2011.html&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;</description><link>http://stack.packetfault.org/post/3857701871</link><guid>http://stack.packetfault.org/post/3857701871</guid><pubDate>Mon, 14 Mar 2011 18:40:41 +0100</pubDate><category>random</category></item><item><title>networkvulns twitter account</title><description>&lt;p&gt;3 hours later… the networkvulns proof of concept is born.&lt;/p&gt;
&lt;p&gt;The tool is a mix of python modules: &lt;a href="http://pyparsing.wikispaces.com/"&gt;pyparsing&lt;/a&gt;, &lt;a href="http://docs.python.org/library/sqlite3.html"&gt;sqlite3&lt;/a&gt;, &lt;a href="https://github.com/simplegeo/python-oauth2"&gt;oauth&lt;/a&gt;, &lt;a href="http://code.google.com/p/python-twitter/"&gt;python-twitter&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;His goal is to tell you if the software your network device runs is safe or not:&lt;/p&gt;
&lt;p&gt;&lt;img height="148" width="297" src="http://www.packetfault.org/networkvulns0.png"/&gt;&lt;/p&gt;
&lt;p&gt;You must follow &lt;a href="http://twitter.com/networkvulns"&gt;@networkvulns&lt;/a&gt; in order to get the reply via a direct message.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Example of valid request: fortinet,fortigate,4.0MR2&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;As you understand it follows the precept of: vendor, product, version.&lt;/p&gt;
&lt;p&gt;The database contains infoblox and fortinet products at the moment:&lt;/p&gt;
&lt;p&gt;sqlite&gt; select distinct product from vulns;&lt;/p&gt;
&lt;p&gt;fortianalyzer&lt;br/&gt;fortiap&lt;br/&gt;fortibridge&lt;br/&gt;forticarrier&lt;br/&gt;forticlient&lt;br/&gt;fortidb&lt;br/&gt;fortiexplorer&lt;br/&gt;fortigate&lt;br/&gt;fortigate-one&lt;br/&gt;fortilog&lt;br/&gt;fortimail&lt;br/&gt;fortimanager&lt;br/&gt;fortiscan&lt;br/&gt;fortiswitch&lt;br/&gt;fortiweb&lt;br/&gt;netmri&lt;br/&gt;nios&lt;br/&gt;portiq&lt;br/&gt;vnios&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;2011-02-27 update&lt;/strong&gt;:&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;whitelist database instead of a blacklist’s one&lt;/li&gt;
&lt;li&gt;fortinet and infoblox products now supported&lt;/li&gt;
&lt;/ul&gt;</description><link>http://stack.packetfault.org/post/3523956848</link><guid>http://stack.packetfault.org/post/3523956848</guid><pubDate>Sat, 26 Feb 2011 16:34:00 +0100</pubDate><category>python</category></item><item><title>Routerdefense 0.5.1 BGP quick update</title><description>&lt;p&gt;Minor add to Routerdefense:&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;BGP maximum as-path limit support. &lt;a title="cymru bgp summary" href="http://www.cymru.com/BGP/summary.html"&gt;Did you know the average AS-PATH is 4.64&lt;/a&gt;?&lt;/li&gt;
&lt;li&gt;eBGP infrastructure ACL support&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;revision 17: &lt;a href="http://code.google.com/p/routerdefense/source/detail?r=17"&gt;&lt;a href="http://code.google.com/p/routerdefense/source/detail?r=17"&gt;http://code.google.com/p/routerdefense/source/detail?r=17&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;</description><link>http://stack.packetfault.org/post/3122382328</link><guid>http://stack.packetfault.org/post/3122382328</guid><pubDate>Sat, 05 Feb 2011 14:09:29 +0100</pubDate><category>python</category></item><item><title>packetfu now includes HSRP layer</title><description>&lt;p&gt;Hi packets monkeyz and others,&lt;/p&gt;
&lt;p&gt;Better late than never.. contribution to the packetfu project to add the HSRP layer.&lt;/p&gt;
&lt;p&gt;The first application layer added to the project by the 24 of December 2010!&lt;/p&gt;
&lt;p&gt;&lt;a href="http://code.google.com/p/packetfu/source/detail?r=156"&gt;&lt;a href="http://code.google.com/p/packetfu/source/detail?r=156"&gt;http://code.google.com/p/packetfu/source/detail?r=156&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://code.google.com/p/packetfu/source/detail?r=157"&gt;&lt;a href="http://code.google.com/p/packetfu/source/detail?r=157"&gt;http://code.google.com/p/packetfu/source/detail?r=157&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A Cisco HSRP traffic hijacker is already coded to be included into metasploit but waiting some rex and packetfu libs to be updated before going in the wild…&lt;/p&gt;
&lt;p&gt;Just wish I will not forgot to update it …&lt;/p&gt;
&lt;p&gt;Cheers :~&lt;/p&gt;</description><link>http://stack.packetfault.org/post/2859639548</link><guid>http://stack.packetfault.org/post/2859639548</guid><pubDate>Fri, 21 Jan 2011 20:08:55 +0100</pubDate><category>metasploit</category></item><item><title>Metasploit updates</title><description>&lt;p&gt;Some code I wrote for the Metasploit project …&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="http://www.metasploit.com/redmine/issues/3289"&gt;DNS(SEC) fuzzer&lt;/a&gt;, &lt;/span&gt;&lt;span&gt;&lt;a href="http://www.metasploit.com//redmine/issues/3345"&gt;Cisco IOS configuration grabber via SNMP&lt;/a&gt;, &lt;/span&gt;&lt;span&gt;&lt;a href="http://www.metasploit.com//redmine/issues/3386"&gt;Cisco VPN enumeration module&lt;/a&gt;, &lt;/span&gt;&lt;span&gt;&lt;a href="http://www.metasploit.com//redmine/issues/3261"&gt;[cisco] TTL Expiry Attack&lt;/a&gt;, &lt;/span&gt;&lt;span&gt;&lt;a href="http://www.metasploit.com//redmine/issues/3429"&gt;Cisco IOS SNMP file copy (TFTP)&lt;/a&gt;&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;News coverage by Rapid7 …&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a title="Cisco IOS Penetration Testing with Metasploit" href="http://blog.rapid7.com/?p=5667"&gt;Cisco IOS Penetration Testing with Metasploit&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span&gt;HAPPY 2011 !&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;</description><link>http://stack.packetfault.org/post/2650663923</link><guid>http://stack.packetfault.org/post/2650663923</guid><pubDate>Sat, 08 Jan 2011 12:34:00 +0100</pubDate><category>metasploit</category></item><item><title>Cisco bar magic potion</title><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Ingredients:&lt;/em&gt;&lt;/p&gt;
&lt;ol&gt;&lt;li&gt;Google Chrome (my main browser)&lt;/li&gt;
&lt;li&gt;&lt;a title="tampermonkey" href="http://tampermonkey.biniok.net/"&gt;TamperMonkey&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a title="cisco bar" href="http://www.packetfault.org/ciscobar.user.js"&gt;ciscobar.user.js&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;p&gt;&lt;em&gt;Result:&lt;/em&gt; &lt;strong&gt;the annoying blue Cisco bar is automagically removed from cisco.com pages.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Cheers&lt;/p&gt;</description><link>http://stack.packetfault.org/post/1305010820</link><guid>http://stack.packetfault.org/post/1305010820</guid><pubDate>Wed, 13 Oct 2010 11:32:35 +0200</pubDate><category>cisco</category></item><item><title>dorkmaster 0.1</title><description>&lt;p&gt;Hi Hackers,&lt;/p&gt;
&lt;p&gt;dorkmaster 0.1 is out.&lt;/p&gt;
&lt;p&gt;It check your company’s data leak prevention policy against the google and bing search engines.&lt;/p&gt;
&lt;p&gt;Testing against the google hacking and bing hacking database from the diggity project.&lt;/p&gt;
&lt;p&gt;&lt;a title="dorkmaster" href="http://code.google.com/p/dorkmaster"&gt;&lt;a href="http://code.google.com/p/dorkmaster"&gt;http://code.google.com/p/dorkmaster&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Keep in mind that search engines are more evil than the interns.&lt;/p&gt;
&lt;p&gt;Please generate your &lt;a title="bing appid" href="http://www.bing.com/developers/createapp.aspx"&gt;Bing App ID here&lt;/a&gt; to enable the bing feature.&lt;/p&gt;
&lt;p&gt;Cheers :~&lt;/p&gt;</description><link>http://stack.packetfault.org/post/1299350354</link><guid>http://stack.packetfault.org/post/1299350354</guid><pubDate>Tue, 12 Oct 2010 18:12:50 +0200</pubDate><category>python</category></item><item><title>BruCON 2010 security conference</title><description>&lt;p&gt;Hi Hackers,&lt;/p&gt;
&lt;p&gt;I’ll be &lt;a title="brucon 2010" href="http://2010.brucon.org/index.php/Main_Page"&gt;there&lt;/a&gt; from 23th of september until 26th for attending and giving a lightning talk about routerdefense.&lt;/p&gt;
&lt;p&gt;Schedule:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;First day&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;span&gt;KEYNOTE: Memoirs of a Data Security Street Fighter&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;You Spent All That Money And You Still Got Owned…&lt;br/&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;GSM security: fact and fiction&lt;br/&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;The Monkey Steals the Berries&lt;br/&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Cyber [Crime|War] - connecting the dots&lt;br/&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Embedded System Hacking and My Plot To Take Over The World&lt;br/&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;The WOMBAT Project: Recent Developments in Internet Threats Analysis&lt;br/&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Project Skylab 1.0: Helping You Get Your Cloud On&lt;br/&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Lightning talks day 1&lt;br/&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Podcasters Meetup&lt;br/&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Powerpoint Karaoke&lt;br/&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;&lt;strong&gt;Second day&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;Your Project: From Idea To Reality&lt;/li&gt;
&lt;li&gt;Nokia NFC Malicious Content Sharing&lt;/li&gt;
&lt;li&gt;Finding Backdoors in Code&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Fireshark - A tool to Link the Malicious Web&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Head Hacking – The Magic of Suggestion and Perception&lt;/li&gt;
&lt;li&gt;Top 5 ways to steal a company&lt;/li&gt;
&lt;li&gt;CsFire: browser-enforced mitigation against CSRF&lt;/li&gt;
&lt;li&gt;Lightning talks day 2&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;See you!&lt;/p&gt;</description><link>http://stack.packetfault.org/post/1143992986</link><guid>http://stack.packetfault.org/post/1143992986</guid><pubDate>Sat, 18 Sep 2010 18:35:00 +0200</pubDate><category>security</category></item><item><title>SPF DNS top domains report</title><description>&lt;p&gt;As of 24th july:
dig +short TXT -f top10 | grep spf | wc -l   =&gt; 7
dig +short TXT -f top100 | grep spf | wc -l   =&gt; 67

No ip6 filtering within the top100
 &lt;/p&gt;</description><link>http://stack.packetfault.org/post/853384840</link><guid>http://stack.packetfault.org/post/853384840</guid><pubDate>Sat, 24 Jul 2010 12:58:00 +0200</pubDate><category>DNS</category></item><item><title>IEEE member card.
1 year later update: Feel like to be a spam...</title><description>&lt;img src="http://26.media.tumblr.com/tumblr_l3ci49G2J81qzna6ro1_400.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;IEEE member card.&lt;/p&gt;
&lt;p&gt;1 year later update: Feel like to be a spam victim of IEEE during 1 year.&lt;/p&gt;
&lt;p&gt;I haven’t renew the memberhsip as I don’t outlined any personal benefits.&lt;/p&gt;</description><link>http://stack.packetfault.org/post/653767209</link><guid>http://stack.packetfault.org/post/653767209</guid><pubDate>Tue, 01 Jun 2010 19:04:00 +0200</pubDate><category>ieee</category></item><item><title>BGP strikes again? No… it’s just a change in the...</title><description>&lt;img src="http://25.media.tumblr.com/tumblr_l2rj9wMVGe1qzna6ro1_400.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;BGP strikes again? No… it’s just a change in the SNMP community name&lt;/p&gt;</description><link>http://stack.packetfault.org/post/618768033</link><guid>http://stack.packetfault.org/post/618768033</guid><pubDate>Fri, 21 May 2010 11:20:20 +0200</pubDate><category>snmp</category></item><item><title>Scapy and checksum calculation</title><description>&lt;p&gt;Sometimes you have to (re)calculate a checksum when you modify packets or when you try to solve &lt;a title="network defects" href="http://blog.networkdefects.com/"&gt;friends networking challenge&lt;/a&gt; like the following:&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I’m 45000064000f0000fe013726c0a80108c0a8030b - a 20 bytes IP header.&lt;/p&gt;
&lt;p&gt;What will be my checksum after the next hop? :-)&lt;/p&gt;
&lt;p&gt;It’s easy with scapy … first, import the hex, modify the TTL, delete the checksum then apply show2() function. This one automatically recalculate the new checksum for you.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;»&gt; pownage=IP(import_hexcap())&lt;br/&gt;0000 4500 0064 000f 0000 fe01 3726 c0a8 0108&lt;br/&gt;0010 c0a8 030b&lt;br/&gt;»&gt; pownage.ttl = pownage.ttl - 1&lt;br/&gt;»&gt; del pownage.chksum&lt;br/&gt;»&gt; pownage.show2()&lt;br/&gt;###[ IP ]###&lt;br/&gt;version= 4L&lt;br/&gt;ihl= 5L&lt;br/&gt;tos= 0x0&lt;br/&gt;len= 100&lt;br/&gt;id= 15&lt;br/&gt;flags= &lt;br/&gt;frag= 0L&lt;br/&gt;ttl= 253&lt;br/&gt;proto= icmp&lt;br/&gt;chksum= 0x3826&lt;br/&gt;src= 192.168.1.8&lt;br/&gt;dst= 192.168.3.11&lt;br/&gt;options= ”&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;</description><link>http://stack.packetfault.org/post/609529705</link><guid>http://stack.packetfault.org/post/609529705</guid><pubDate>Tue, 18 May 2010 10:00:00 +0200</pubDate><category>python</category><category>networking</category></item><item><title>OpenBSD 4.7 goodies and Cisco</title><description>&lt;p&gt;Meat and goodies:&lt;/p&gt;
&lt;p&gt;OpenBSD and Cizcoeee:&lt;/p&gt;
&lt;p&gt;&lt;img height="288" width="352" alt="OpenBSD 4.7 Cisco" src="http://www.packetfault.org/obsd47-cisco.jpg"/&gt;&lt;/p&gt;
&lt;p&gt;OpenBSD 4.7 official release date is 19th May of 2010 but already available as pre-order.&lt;/p&gt;</description><link>http://stack.packetfault.org/post/595186516</link><guid>http://stack.packetfault.org/post/595186516</guid><pubDate>Thu, 13 May 2010 15:06:00 +0200</pubDate><category>openbsd</category></item><item><title>Big LAN and ARP broadcast</title><description>&lt;p&gt;Sometimes the network suffers from a very BAD design (like large L2 domain).&lt;/p&gt;
&lt;p&gt;In this situation, some (normal) network behavior are more visible than it should if the network had a better designer.&lt;/p&gt;
&lt;p&gt;The reason of the bad design is often part of the history OR the hired consultant dislikes th company he works for and ship them with a bad design :D&lt;/p&gt;
&lt;p&gt;One of the visible phenomenon occurs when many hosts are populated in ARP caches and the local table overflows. The default ARP cache on Linux (and every other OS) are not suited for the bad designed networks.&lt;/p&gt;
&lt;p&gt;It results in broadcast storms that kills network performances. Another side effect that double the bad effect is when you have configured broadcast rate-limiter. This feature could kills ARP broadcast and make the packets dance … dance again and again through your L2 network.&lt;/p&gt;
&lt;p&gt;To fix the network, you must go in two directions:&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;re-think your broadcast rate-limiter (in some network devices it’s done automatically without configuration! don’t trust the vendor pre-sales in his well-suited costume, trust the packets!&lt;/li&gt;
&lt;li&gt;adjust ARP cache and garbage collector settings on your end hosts. And adjust CAM age entries on your transit L2 devices. For Linux, you can go with those parameters:&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;$ sudo echo ‘net.ipv4.neigh.default.gc_thresh3’ = 4096 » /etc/sysctl.conf&lt;/p&gt;
&lt;p&gt;$ sudo echo ‘net.ipv4.neigh.default.gc_thresh2’ = 2048 » /etc/sysctl.conf&lt;/p&gt;

&lt;p&gt;$ sudo echo ‘net.ipv4.neigh.default.gc_thresh1’ = 1024 » /etc/sysctl.conf&lt;/p&gt;
&lt;p&gt;$ sudo sysctl -p&lt;/p&gt;
&lt;p&gt;Et voilà!&lt;/p&gt;</description><link>http://stack.packetfault.org/post/589131592</link><guid>http://stack.packetfault.org/post/589131592</guid><pubDate>Tue, 11 May 2010 10:00:00 +0200</pubDate><category>linux</category><category>ethernet</category></item><item><title>Wireshark configuration for Check Point fw monitor</title><description>&lt;p&gt;Here is how to set-up correctly wireshark in order to read fw monitor output friendly:&lt;/p&gt;
&lt;ol&gt;&lt;li&gt;ctrl+shift+p&lt;/li&gt;
&lt;li&gt;Protocols / Ethernet / &lt;strong&gt;Attempt to interpret as Firewall-1 monitor file&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Protocols / FW-1 / &lt;strong&gt;Monitor file includes UUID&lt;/strong&gt; and &lt;strong&gt;Interface list includes chain position&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;User Interface / Columns / Add : &lt;em&gt;fw-1 chain&lt;/em&gt;|&lt;strong&gt;FW-1 monitor if/direction&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Apply preferences&lt;/li&gt;
&lt;li&gt;View / Coloring rules / New&lt;/li&gt;
&lt;li&gt;preIn / fw1.direction==i&lt;/li&gt;
&lt;li&gt;postIn / fw1.direction==I&lt;/li&gt;
&lt;li&gt;preOut / fw1.direction==o&lt;/li&gt;
&lt;li&gt;postOut / fw1.direction==O&lt;/li&gt;
&lt;/ol&gt;&lt;p&gt;Good luck!&lt;/p&gt;</description><link>http://stack.packetfault.org/post/581481122</link><guid>http://stack.packetfault.org/post/581481122</guid><pubDate>Sat, 08 May 2010 17:05:39 +0200</pubDate><category>checkpoint</category></item></channel></rss>

