<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Mad Router &#187; Uncategorized</title>
	<atom:link href="http://www.madrouter.com/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.madrouter.com</link>
	<description>CCNA, CCNP, CCVP, Security Technologies</description>
	<lastBuildDate>Tue, 25 May 2010 11:34:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Cisco MadRouter Contest : Round Ten</title>
		<link>http://www.madrouter.com/cisco-madrouter-contest-round-ten/</link>
		<comments>http://www.madrouter.com/cisco-madrouter-contest-round-ten/#comments</comments>
		<pubDate>Wed, 27 May 2009 08:31:44 +0000</pubDate>
		<dc:creator>Florent</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.madrouter.com/?p=95</guid>
		<description><![CDATA[This is a packet analyzer contest ! You will find at the end of this post a link to a .cap file. With this file you will have to provide the Login and extension number of the Cisco Phone. You can also give the version of the IP Phone trace.cap]]></description>
			<content:encoded><![CDATA[<p>This is a packet analyzer contest !</p>
<p>You will find at the end of this post a link to a .cap file.</p>
<p>With this file you will have to provide the Login and extension number of the Cisco Phone.</p>
<p>You can also give the version of the IP Phone <img src='http://www.madrouter.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a class="alignleft" title="trace.cap" href="http://www.madrouter.com/tutoriaux/CMC10/sccp.cap" target="_self">trace.cap</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.madrouter.com/cisco-madrouter-contest-round-ten/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>MadRouter is back</title>
		<link>http://www.madrouter.com/madrouter-is-back/</link>
		<comments>http://www.madrouter.com/madrouter-is-back/#comments</comments>
		<pubDate>Thu, 14 May 2009 12:52:31 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.madrouter.com/?p=72</guid>
		<description><![CDATA[It has been a long time we did not post. From now, every sunday MadRouter will be updated with a new recipe! Keep connected!]]></description>
			<content:encoded><![CDATA[<p>It has been a long time we did not post. From now, every sunday MadRouter will be updated with a new recipe!</p>
<p>Keep connected!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.madrouter.com/madrouter-is-back/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Python et Scapy !</title>
		<link>http://www.madrouter.com/python-et-scapy/</link>
		<comments>http://www.madrouter.com/python-et-scapy/#comments</comments>
		<pubDate>Sun, 16 Dec 2007 21:05:22 +0000</pubDate>
		<dc:creator>Florent</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.madrouter.com/python-et-scapy/</guid>
		<description><![CDATA[Ca faisait longtemps que j&#8217;avais envie de faire du python, et l&#8217;article d&#8217;Alex m&#8217;a poussé à m&#8217;y mettre. Je cherchais donc à créer un petit script pour pinger des gens mais en pouvant spoofer l&#8217;adresse source. Et au gré de mes recherches je suis tombé sur Scapy .. Grosso modo Scapy est un programme qui [...]]]></description>
			<content:encoded><![CDATA[<p>Ca faisait longtemps que j&#8217;avais envie de faire du python, et l&#8217;<a href="http://www.madrouter.com/rip-injection-with-a-simple-password-authentication/">article</a> d&#8217;Alex m&#8217;a poussé à m&#8217;y mettre.<br />
Je cherchais donc à créer un petit script pour pinger des gens mais en pouvant spoofer l&#8217;adresse source.<br />
Et au gré de mes recherches je suis tombé sur Scapy ..</p>
<p><span id="more-28"></span></p>
<p>Grosso modo <a href="http://www.secdev.org/projects/scapy/">Scapy</a> est un programme qui va nous permettre de manipuler les paquets. On pourra notamment forger nos propres paquets. Et c&#8217;est ce qui m&#8217;interessait dans un premier temps.</p>
<p>Je pars du principe que python est deja installé.<br />
Pour commencer il fallait donc installer scapy.<br />
Je suis sous Ubuntu alors un petit<br />
apt-get install scapy<br />
Et ca marche. Pour ceux qui auraient des soucis, vous pouvez télécharger le fichier scapy.py toujours sur le site de scapy.<br />
Il suffit de placer ce fichier dans le dossier courant ou vous placerez vos scripts.</p>
<p>Si vous avez installer scapy vous pouvez lancer scapy directement depuis un terminal en tapant scapy (j&#8217;ai 2 warning qui apparaissent et que je zappe ici car peu important).<br />
Une fois dans scapy vous pouvez taper la commande <strong>ls()</strong> pour voir toutes les fonctions a disposition, plus ou moins bien documenté.</p>
<p class="cisco">bdg@tahiti:~$ scapy<br />
Welcome to Scapy (v1.1.1 / f88d99910220)<br />
&gt;&gt;&gt; ls()<br />
ARP        : ARP<br />
ASN1_Packet : None<br />
BOOTP      : BOOTP<br />
CookedLinux : cooked linux<br />
DHCP       : DHCP options<br />
DNS        : DNS<br />
DNSQR      : DNS Question Record<br />
DNSRR      : DNS Resource Record<br />
Dot11      : 802.11<br />
Dot11ATIM  : 802.11 ATIM<br />
Dot11AssoReq : 802.11 Association Request<br />
Dot11AssoResp : 802.11 Association Response<br />
Dot11Auth  : 802.11 Authentication<br />
Dot11Beacon : 802.11 Beacon<br />
Dot11Deauth : 802.11 Deauthentication<br />
Dot11Disas : 802.11 Disassociation<br />
Dot11Elt   : 802.11 Information Element<br />
Dot11ProbeReq : 802.11 Probe Request<br />
Dot11ProbeResp : 802.11 Probe Response<br />
[...]<br />
PPP        : PPP Link Layer<br />
PPPoE      : PPP over Ethernet<br />
PPPoED     : PPP over Ethernet Discovery<br />
Packet     : None<br />
Padding    : Padding<br />
PrismHeader : Prism header<br />
RIP        : RIP header<br />
RIPEntry   : RIP entry<br />
Radius     : Radius<br />
[...]<br />
TCP        : TCP<br />
TCPerror   : TCP in ICMP<br />
UDP        : UDP<br />
UDPerror   : UDP in ICMP<br />
_IPv6OptionHeader : IPv6 not implemented here.<br />
&gt;&gt;&gt;</p>
<p>Disons maintenant que nous voulons utiliser la fontion IP(), alors on va voir ce qu&#8217;on peut modifier dans cette fonction.</p>
<p class="cisco">&gt;&gt;&gt; ls(IP)<br />
version    : BitField             = (4)<br />
ihl        : BitField             = (None)<br />
tos        : XByteField           = (0)<br />
len        : ShortField           = (None)<br />
id         : ShortField           = (1)<br />
flags      : FlagsField           = (0)<br />
frag       : BitField             = (0)<br />
ttl        : ByteField            = (64)<br />
proto      : ByteEnumField        = (0)<br />
chksum     : XShortField          = (None)<br />
src        : Emph                 = (None)<br />
dst        : Emph                 = (&#8217;127.0.0.1&#8242;)<br />
options    : IPoptionsField       = (&#8221;)</p>
<p>Voila qui est intéressant, on voit notamment qu&#8217;on pourra modifier plusieurs champs, src et dst par exemple qui vont correspondre a l&#8217;ip source et l&#8217;ip destination dans le paquet IP.<br />
Voila donc mon code qui permettra de pinger un host ou un reseau en spoofant l&#8217;adresse source:</p>
<p class="cisco">#!/usr/bin/python<br />
import sys<br />
from scapy import *<br />
conf.iface=&#8221;eth0&#8243;<br />
if len(sys.argv) != 4:<br />
print &#8220;Erreur noob! ./spoof.py &lt;ip source&gt; &lt;ip destination&gt; &lt;nombre de ping&gt;&#8221;<br />
sys.exit(1)<br />
source=sys.argv[1]<br />
dest=sys.argv[2]<br />
nb=sys.argv[3]<br />
ip=IP()<br />
icmp=ICMP()<br />
ip.dst=dest<br />
ip.src=source<br />
a=ip/icmp<br />
k=0<br />
while (int(nb) &lt;&gt; int(k)):<br />
send(a)<br />
time.sleep(0.5)<br />
k+=1<br />
else:<br />
print &#8220;sorti&#8221;</p>
<p>Une fois le fichier créé, on lui donnera les droits d&#8217;exécution</p>
<p class="cisco">bdg@tahiti:~/python$ sudo chmod +x spoof.py</p>
<p>Et on le lance de cette maniere</p>
<p class="cisco">bdg@tahiti:~/python$ sudo ./spoof.py 1.1.1.1 192.168.0.2 5<br />
.<br />
Sent 1 packets.<br />
.<br />
Sent 1 packets.<br />
.<br />
Sent 1 packets.<br />
.<br />
Sent 1 packets.<br />
.<br />
Sent 1 packets.<br />
sorti</p>
<p>Le premier parametre sera l&#8217;adresse IP source dans le paquet, le deuxième parametre l&#8217;adresse IP qui va recevoir l&#8217;echo request et le troisieme parametre le nombre d&#8217;echo request qu&#8217;on enverra.</p>
<p>Sur la machine 192.168.0.2 cela donne<br />
<img src="http://www.madrouter.com/wp-content/upload/spoof1.PNG" alt="" /></p>
<p><strong>Voir en commentaire pour une solution plus élégante.</strong> (Enfin moins code de porc quoi.).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.madrouter.com/python-et-scapy/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>X11 Forwarding</title>
		<link>http://www.madrouter.com/x11-forwarding/</link>
		<comments>http://www.madrouter.com/x11-forwarding/#comments</comments>
		<pubDate>Fri, 12 Oct 2007 22:21:32 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.madrouter.com/index.php/x11-forwarding/</guid>
		<description><![CDATA[As SCTs, we have to use an Epson Projector to display our slides in Supinfo, unfortunately, it&#8217;s only Wind*ws compliant. This night, I&#8217;ve just found a way to keep my laptop under Linux and use the Tablet PC in order to display my linux programs on the wall. I connect the Tablet PC ( Windows [...]]]></description>
			<content:encoded><![CDATA[<p>As SCTs, we have to use an Epson Projector to display our slides in Supinfo, unfortunately, it&#8217;s only Wind*ws compliant.</p>
<p>This night, I&#8217;ve just found a way to keep my laptop under Linux and use the Tablet PC in order to display my linux programs on the wall.</p>
<p>I connect the Tablet PC ( Windows XP ) to the Epson projector and use a ssh connection between my laptop and the Tablet PC to forward the X Window display.</p>
<p><span id="more-14"></span></p>
<p>First install OpenSSH</p>
<pre class="cisco">
alex@pentagram#sudo apt-get install openssh-server</pre>
<p>then be sure that you have this two line in the <strong>/etc/ssh/sshd_config</strong> file</p>
<pre class="cisco">
X11Forwarding yes
X11DisplayOffset 10</pre>
<p>that&#8217;s all we have to do on the laptop.</p>
<p>On the Tablet PC, we have to install Xming, it can be downloaded here on sourceforge</p>
<p><a href="http://sourceforge.net/project/showfiles.php?group_id=156984">http://sourceforge.net/project/showfiles.php?group_id=156984 </a></p>
<p>Download the Xming installer , or Xming-fonts installer.</p>
<p>Install it <img src='http://www.madrouter.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  and download after <strong>putty</strong> at <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html">http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html</a></p>
<p>Click it to open the software.</p>
<p style="text-align: center"><img src="../../../wp-content/upload/putty1.png" height="435" width="456" /></p>
<p>Scroll the left menu until the SSH part, click on X11 and check the box X11 Forwarding</p>
<p style="text-align: center"><img src="../../../wp-content/upload/putty2.png" height="435" width="456" /></p>
<p>Back to the Section part, enter the IP address of your laptop, and OK, you maybe will have to accept the RSA Key.</p>
<p>Connect with your login and pass and test it by launch a graphic application like <strong>gnome-calculator</strong> ( ubuntu-like )  or <strong>gnome-terminal</strong> to have another terminal <img src='http://www.madrouter.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Don&#8217;t forget the &amp; , putty is the only link to keep the connection alive</p>
]]></content:encoded>
			<wfw:commentRss>http://www.madrouter.com/x11-forwarding/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Mad Router FTW!!</title>
		<link>http://www.madrouter.com/mad-router-ftw%c2%a7/</link>
		<comments>http://www.madrouter.com/mad-router-ftw%c2%a7/#comments</comments>
		<pubDate>Sat, 22 Sep 2007 19:02:51 +0000</pubDate>
		<dc:creator>Florent</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://madrouter.o00o.org/?p=3</guid>
		<description><![CDATA[Hi, After some research and a little &#8220;free time&#8221; we can now start our &#8220;technical blog&#8221; which will most deal with Cisco and Linux. We will try to update the website the most often we can. Have Fun.]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>After some research and a little &#8220;free time&#8221; we can now start our &#8220;technical blog&#8221; which will most deal with Cisco and Linux.</p>
<p>We will try to update the website the most often we can.</p>
<p>Have Fun.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.madrouter.com/mad-router-ftw%c2%a7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
