<?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>The Lab</title>
	<atom:link href="http://lab.algasystems.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://lab.algasystems.net</link>
	<description>Retrocomputing, tinkering and some other stuff that steals my time.</description>
	<lastBuildDate>Fri, 03 Feb 2012 16:21:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Amtec (ElsagDatamag) Argo 55/95 – Take 6: Uncompress rg_conf</title>
		<link>http://lab.algasystems.net/2012/02/amtec-elsagdatamag-argo-5595-take-6-uncompress-rg_conf/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=amtec-elsagdatamag-argo-5595-take-6-uncompress-rg_conf</link>
		<comments>http://lab.algasystems.net/2012/02/amtec-elsagdatamag-argo-5595-take-6-uncompress-rg_conf/#comments</comments>
		<pubDate>Fri, 03 Feb 2012 16:06:18 +0000</pubDate>
		<dc:creator>bano</dc:creator>
				<category><![CDATA[Hacking]]></category>
		<category><![CDATA[Amtec]]></category>
		<category><![CDATA[Argo 55]]></category>
		<category><![CDATA[Argo 95]]></category>
		<category><![CDATA[Elsag]]></category>
		<category><![CDATA[ElsagDatamat]]></category>
		<category><![CDATA[extract rg_conf]]></category>
		<category><![CDATA[fastweb]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[rg_conf]]></category>
		<category><![CDATA[router]]></category>

		<guid isPermaLink="false">http://lab.algasystems.net/?p=110</guid>
		<description><![CDATA[Just a quick one (thanks to purputy for pointing this out): the two configuration areas of the flash we dumped in the previous post are compressed with the deflate algorithm, and it&#8217;s quite easy to extract them. I&#8217;ve made up a quick&#8217;n'dirty script (in php, forgive me, just because the gzinflate function was quicker to use) that you can [...]]]></description>
			<content:encoded><![CDATA[<p>Just a quick one (thanks to <strong>purputy </strong>for pointing this out): the two configuration areas of the flash we dumped in the previous post are compressed with the<strong> deflate </strong>algorithm, and it&#8217;s quite easy to extract them.</p>
<p>I&#8217;ve made up a quick&#8217;n'dirty script (in php, forgive me, just because the gzinflate function was quicker to use) that you can call from command line with:</p>
<p><em>php conf_inflate.php &lt;conf_dump&gt; &lt;dest_file&gt;</em></p>
<p>In <em>&lt;dest_file&gt;</em> you&#8217;ll have the configuration in plain text.</p>
<p>You can get the script <a href="http://www.algasystems.net/pub/ARGO95/conf_inflate.zip" target="_blank">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://lab.algasystems.net/2012/02/amtec-elsagdatamag-argo-5595-take-6-uncompress-rg_conf/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Review: USB-BUB II</title>
		<link>http://lab.algasystems.net/2012/01/review-usb-bub-ii/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=review-usb-bub-ii</link>
		<comments>http://lab.algasystems.net/2012/01/review-usb-bub-ii/#comments</comments>
		<pubDate>Sat, 28 Jan 2012 18:10:08 +0000</pubDate>
		<dc:creator>bano</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[review]]></category>
		<category><![CDATA[rs232]]></category>
		<category><![CDATA[serial]]></category>
		<category><![CDATA[ttl]]></category>
		<category><![CDATA[usb-bub]]></category>

		<guid isPermaLink="false">http://lab.algasystems.net/?p=97</guid>
		<description><![CDATA[Today, you can find serial ports almost everywhere. And when you find one, you know, you cannot resist access it :) Usually, those aren&#8217;t RS232, but so-called TTL-level serial ports: this means that they use diferent voltage levels (0 &#8211; +5v vs. -12 &#8211;  +12v), and you need an adapter to connect them to your [...]]]></description>
			<content:encoded><![CDATA[<p>Today, you can find serial ports <a href="http://todbot.com/blog/2006/01/25/roomba-hacking-via-serial-tether/" target="_blank">almost</a> <a href="http://hackaday.com/2009/10/21/mind-control-via-serial-port/" target="_blank">everywhere</a>. And when you find one, you know, you cannot resist access it :)</p>
<p>Usually, those aren&#8217;t RS232, but so-called TTL-level serial ports: this means that they use diferent voltage levels (0 &#8211; +5v vs. -12 &#8211;  +12v), and you need an adapter to connect them to your computer.</p>
<p>So, this nifty little device comes to hand: the <a href="http://shop.moderndevice.com/products/bub_ii" target="_blank">USB-BUB II</a> from <a href="http://shop.moderndevice.com/" target="_blank">Modern Device</a>. As you can suppose, it&#8217;s at its second incarnation.</p>
<p><a href="http://lab.algasystems.net/wp-content/uploads/2012/01/DSC_2570_large.jpeg"><img class="alignnone size-full wp-image-99" style="border-style: initial; border-color: initial; border-image: initial; border-width: 0px;" title="USB-BUB II" src="http://lab.algasystems.net/wp-content/uploads/2012/01/DSC_2570_large.jpeg" alt="USB-BUB II" width="480" height="245" /></a></p>
<p>The USB-BUB II it&#8217;s based around the FT232R chip: it connects to an usb port, and provides a TTL serial, complete with DTR and CTS signals. But the board has a couple of handy &#8211; and unusual &#8211; features: first of all there&#8217;s a polyfuse, to protect the USB line from short circuits. Also, two smd LEDs &#8211; one green and one red &#8211;  that shows activity on the RX and TX line.</p>
<p>The board can also deliver 3.3v or 5v power &#8211; but don&#8217;t count too much on that, the maximum current is 50mA. In case you need some power, however, on the back of the board there&#8217;s also space to solder an external voltage regulator.</p>
<p>The BUB use is straightforward: drivers are available for Windows, OS X and Windows CE (!), and recent versions of Linux kernel supports it natively. Also, the board is delivered fully mounted, you just need to solder the header, or the wires, and connect the usb. It works pretty well at all the speeds I tried, and it doesn&#8217;t suffer too much from interferences, from what I can say.</p>
<p>Overall, a pretty useful device &#8211; a bit pricey (€13,50, shipped in the EU, from <a href="http://jeelabs.com/products/usb-bub" target="_blank">The JeeLabs Shop</a>), but still a good choice.</p>
]]></content:encoded>
			<wfw:commentRss>http://lab.algasystems.net/2012/01/review-usb-bub-ii/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Amtec (ElsagDatamag) Argo 55/95 – Take 5: Dump the flash</title>
		<link>http://lab.algasystems.net/2012/01/amtec-elsagdatamag-argo-5595-take-5-dump-the-flash/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=amtec-elsagdatamag-argo-5595-take-5-dump-the-flash</link>
		<comments>http://lab.algasystems.net/2012/01/amtec-elsagdatamag-argo-5595-take-5-dump-the-flash/#comments</comments>
		<pubDate>Sat, 21 Jan 2012 10:50:42 +0000</pubDate>
		<dc:creator>bano</dc:creator>
				<category><![CDATA[Hacking]]></category>
		<category><![CDATA[Amtec]]></category>
		<category><![CDATA[Argo 55]]></category>
		<category><![CDATA[Argo 95]]></category>
		<category><![CDATA[Elsag]]></category>
		<category><![CDATA[ElsagDatamat]]></category>
		<category><![CDATA[fastweb]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[router]]></category>

		<guid isPermaLink="false">http://lab.algasystems.net/?p=68</guid>
		<description><![CDATA[Now that we have gained access to the box, let&#8217;s start gather some info &#8211; this is the very first step if we want to try to build a custom firmware. First of all, let&#8217;s make a dump of the flash. We said that the router has a telnet access: when we log in, we&#8217;re [...]]]></description>
			<content:encoded><![CDATA[<p>Now that we have gained access to the box, let&#8217;s start gather some info &#8211; this is the very first step if we want to try to build a custom firmware.</p>
<p>First of all, let&#8217;s make a dump of the flash.</p>
<p>We said that the router has a telnet access: when we log in, we&#8217;re in the command line shell of OpenRG. From there we can control various aspects of the box, but if we type &#8216;<em>system shell</em>&#8216; and press enter&#8230; voilà! We&#8217;re in a busybox shell!</p>
<p>We can put a pendrive in one of the USB ports and mount it:</p>
<p><em>mount /dev/sda1 /mnt/flash</em></p>
<p><em></em>then use dd to dump the flash:</p>
<p><em>dd if=/dev/mtdblock0 of=/mnt/flash/flashdump.img bs=1m </em></p>
<p>Now we have a 16Mb file, but what there&#8217;s inside?</p>
<p>We saw that our router uses U-Boot as its bootloader. This is a good thing: U-Boot is open source, and this version keeps a bunch of useful commands.</p>
<p>With <em>flayout</em>, we have the layout of the flash:</p>
<p><em>=&gt; flayout</em><br />
<em> Section 00 Type UNKNOWN Address 0xBF000000 MaxSize 0&#215;00060000</em><br />
<em> Section 01 Type IMAGE Address 0xBF060000 MaxSize 0x003E0000</em><br />
<em> Section 02 Type IMAGE Address 0xBF440000 MaxSize 0x00AE0000</em><br />
<em> Section 03 Type CONF Address 0xBFF20000 MaxSize 0&#215;00060000</em><br />
<em> Section 04 Type CONF Address 0xBFF80000 MaxSize 0&#215;00060000</em><br />
<em> Section 05 Type FACTORY Address 0xBFFE0000 MaxSize 0x0001FC00</em><br />
<em> Section 06 Type LAYOUT Address 0xBFFFFC00 MaxSize 0&#215;00000400</em></p>
<p>Also, from <em>bdinfo,</em> we know at wich address is the flash start:</p>
<p><em>flashstart = 0xBF000000</em></p>
<p><strong><em></em></strong>Now, we can split our flash image:</p>
<p><em>dd if=flashimage.img of=<em>uboot</em>.img ibs=1 count=$((0&#215;00060000))</em></p>
<div>
<p><em>dd if=flashimage.img of=openrg_1.img ibs=1 skip=$((0&#215;00060000)) count=$((0x003E0000))</em></p>
<div>
<p><em>dd if=flashimage.img of=openrg_2.img ibs=1 skip=$((0&#215;00440000)) count=$((0x00AE0000))</em></p>
<div>
<p><em>dd if=flashimage.img of=conf_1.img ibs=1 skip=$((0x00F20000)) count=$((0&#215;00060000))</em></p>
<div>
<p><em>dd if=flashimage.img of=conf_2.img ibs=1 skip=$((0x00F80000)) count=$((0&#215;00060000))</em></p>
<div>
<p><em>dd if=flashimage.img of=conf_factory.img ibs=1 skip=$((0x00FE0000)) count=$((0x0001FC00))</em></p>
<div>
<p><em>dd if=flashimage.img of=layout.img ibs=1 skip=$((0x00FFFC00)) count=$((0&#215;00000400))</em></p>
<p>Ok, time to fire up an hexdecimal editor :)</p>
<p>&nbsp;</p>
<p><strong>Update (28/01/2012)</strong></p>
<p>Since someone asked for it, here are all the pieces of flash dump that shouldn&#8217;t contain sensitive data. I haven&#8217;t been unable to unpack the openrg images, yet, so if you find a way, please drop me a note.</p>
</div>
</div>
</div>
</div>
</div>
<p><a href="http://www.algasystems.net/pub/ARGO95/uboot.img">uboot.img</a></p>
<p><a href="http://www.algasystems.net/pub/ARGO95/openrg_1.img">openrg_1.img</a></p>
<p><a href="http://www.algasystems.net/pub/ARGO95/openrg_2.img">openrg_2.img</a></p>
<p><a href="http://www.algasystems.net/pub/ARGO95/layout.img">layout.img</a></p>
<p>Also, here&#8217;s the stuff that the router downloaded from the provisioning server during the last update:</p>
<p><a href="http://www.algasystems.net/pub/ARGO95/ED_ARGO95_1.3.19.kit">ED_ARGO95_1.3.19.kit</a> (update image)</p>
<p><a href="http://www.algasystems.net/pub/ARGO95/ED_ARGO95_1.3.19.txt" target="_blank">ED_ARGO95_1.3.19.txt</a> (default configuration)</p>
<p>&nbsp;</p>
<p><strong>Update 2 (03/02/2012)</strong></p>
<p>And here are also the two missing pieces, configuration area and factory area.</p>
<p>I did my best to remove all the sensitive data, but I&#8217;m fairly sure I missed something.</p>
<p><a href="http://www.algasystems.net/pub/ARGO95/conf_1_edit.img">conf_1_edit.img</a></p>
<p><a href="http://www.algasystems.net/pub/ARGO95/conf_factory_edit.img">conf_factory_edit.img</a></p>
<p>&nbsp;</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://lab.algasystems.net/2012/01/amtec-elsagdatamag-argo-5595-take-5-dump-the-flash/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Review: Hakko FX-888 soldering station</title>
		<link>http://lab.algasystems.net/2012/01/review-hakko-fx-888-soldering-station/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=review-hakko-fx-888-soldering-station</link>
		<comments>http://lab.algasystems.net/2012/01/review-hakko-fx-888-soldering-station/#comments</comments>
		<pubDate>Sat, 21 Jan 2012 10:22:55 +0000</pubDate>
		<dc:creator>bano</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[fx-888]]></category>
		<category><![CDATA[fx888]]></category>
		<category><![CDATA[hakko]]></category>
		<category><![CDATA[soldering station]]></category>

		<guid isPermaLink="false">http://lab.algasystems.net/?p=66</guid>
		<description><![CDATA[Every now and then we fall in love with an appliance, a tool, a piece of equipment. This time, it was a soldering station&#8230; but let&#8217;s start from the beginning. Being in need of a soldering station, I started to look for something relatively affordable, but with a good quality. Here in Europe, the obvious choice [...]]]></description>
			<content:encoded><![CDATA[<p>Every now and then we fall in love with an appliance, a tool, a piece of equipment. This time, it was a soldering station&#8230; but let&#8217;s start from the beginning. Being in need of a soldering station, I started to look for something relatively affordable, but with a good quality.</p>
<p>Here in Europe, the obvious choice seems some low end Weller model, but: a) they are greatly overpriced and b) the non-professional line has received <strong>very</strong> poor reviews.</p>
<p>After reading a bunch of forum threads and reviews, a company name stood out: <strong>Hakko</strong>. Everyone loved its products, especially the venerable model <strong>936</strong> (out of production), and its successor, the <strong>FX-888</strong>. Buy it here it&#8217;s not easy: almost nobody sells it online, even on the bay. Hopefully I&#8217;ve been able to get it through a local reseller.</p>
<p><strong>Packaging and apparence</strong></p>
<p><a href="http://lab.algasystems.net/wp-content/uploads/2012/01/IMG_20120119_235544.jpg"><img class="alignnone  wp-image-72" title="Hakko FX-888 packaging (open)" src="http://lab.algasystems.net/wp-content/uploads/2012/01/IMG_20120119_235544-1024x768.jpg" alt="Hakko FX-888 packaging (open)" width="491" height="369" /></a></p>
<p>The FX-888 comes in a robust yellow cardboard box: opening it we find the manuals (a couple of sheets, actually) and the iron. Under that, there&#8217;s the station and the iron holder.</p>
<p><a href="http://lab.algasystems.net/wp-content/uploads/2012/01/IMG_20120119_234858.jpg"><img class="alignnone  wp-image-78" title="FX-888" src="http://lab.algasystems.net/wp-content/uploads/2012/01/IMG_20120119_234858-1024x768.jpg" alt="FX-888" width="491" height="369" /></a></p>
<p>Hakko has made quite a nice job with the look of the soldering station: it&#8217;s small (a nice feature when you&#8217;ve little space on the desk), it has a solid feel and a modern look. The temperature is written in Celsius and Fahrenheit, and a red led indicates when the temperature is reached. Probably a display with a digital readout of the iron temperature would&#8217;ve made a nice addon, but is more a whim than a real need.</p>
<p><strong>Use</strong></p>
<p>The FX-888 is a pleasure to use: the iron is light and comfortable, and the cord is very flexible. It reaches the temperature very quickly, and is extremely accurate. Also, during work, it keeps the temperature very well, something that isn&#8217;t found easily in the low-end stations.</p>
<p>The holder is solid and spots three kinds of cleaners: the usual sponge, a cleaning rubber &#8211; to clean the iron without water, thus help in keeping the temperature &#8211; and a cleaning wire, to remove the oxide while keeping a bit of solder on the tip.</p>
<p><a href="http://lab.algasystems.net/wp-content/uploads/2012/01/IMG_20120119_234832.jpg"><img class="alignnone  wp-image-83" title="IMG_20120119_234832" src="http://lab.algasystems.net/wp-content/uploads/2012/01/IMG_20120119_234832-1024x768.jpg" alt="" width="491" height="369" /></a></p>
<p>&nbsp;</p>
<p>The station is ESD safe (the iron is grounded), thus reducing the risk of electrostatic discharges that can damage your circuits. Also, the control knob can be locked in position, and under the base there&#8217;s a little screwdriver that can be used for thermal corrections.</p>
<p><a href="http://lab.algasystems.net/wp-content/uploads/2012/01/IMG_20120119_235844.jpg"><img class="alignnone  wp-image-82" title="IMG_20120119_235844" src="http://lab.algasystems.net/wp-content/uploads/2012/01/IMG_20120119_235844-1024x768.jpg" alt="" width="491" height="369" /></a></p>
<p><strong>Wrap-up</strong></p>
<p>Of course this cannot be a fair review: I started the piece stating my infatuation for the object in question&#8230; but I felt the need to let know everyone looking for a soldering station with a reasonable price (I paid mine about €110), excellent quality and a broad range of tips to choose from, that this can be a good choice.</p>
<p>Also, if you visit <a href="http://www.hakko.com">Hakko</a>&#8216;s site, you&#8217;ll find plenty of information on the station, tips and also a story (in the form of a personal diary) <a href="http://www.hakko.com/english/hikaru/pages/">to learn soldering</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://lab.algasystems.net/2012/01/review-hakko-fx-888-soldering-station/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Amtec (ElsagDatamag) Argo 55/95 – Take 4: Hardening</title>
		<link>http://lab.algasystems.net/2012/01/amtec-elsagdatamag-argo-5595-take-4-hardening/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=amtec-elsagdatamag-argo-5595-take-4-hardening</link>
		<comments>http://lab.algasystems.net/2012/01/amtec-elsagdatamag-argo-5595-take-4-hardening/#comments</comments>
		<pubDate>Wed, 18 Jan 2012 16:32:16 +0000</pubDate>
		<dc:creator>bano</dc:creator>
				<category><![CDATA[Hacking]]></category>
		<category><![CDATA[Amtec]]></category>
		<category><![CDATA[Argo 55]]></category>
		<category><![CDATA[Argo 95]]></category>
		<category><![CDATA[Elsag]]></category>
		<category><![CDATA[ElsagDatamat]]></category>
		<category><![CDATA[hacking]]></category>

		<guid isPermaLink="false">http://lab.algasystems.net/?p=57</guid>
		<description><![CDATA[It seems like a good idea, since we have now access (again) to the router, try to do our best to lock out the provider, and avoid further remote configurations / upgrades. This is what I did, feel free to find other methods and add a comment to this post :) - Activate the firewall, [...]]]></description>
			<content:encoded><![CDATA[<p>It seems like a good idea, since we have now access (again) to the router, try to do our best to lock out the provider, and avoid further remote configurations / upgrades.</p>
<p>This is what I did, feel free to find other methods and add a comment to this post :)</p>
<p>- Activate the firewall, and block &#8211; with a specific rule &#8211; port 4567 (is used for remote control)</p>
<p>- Delete the firewall rule that allows access &#8211; via telnet &#8211; from a specific list of networks, but <strong>write down those networks</strong> (these are the networks from which the provider connects to do remote maintenance)</p>
<p>- Create a static route for every network noted in the previous step, redirecting to a non-existing gateway (ie. 0.0.0.0)</p>
<p>A note on the last point: when you restart the router, it will fail to connect to the ACS (remote configuration) server. This is a nice thing, but because of this the &#8216;Fastweb&#8217; led will remain red, and the &#8216;Ethernet&#8217; and &#8216;WiFi&#8217; leds will remain off. This is just aesthetic: wireless and wired network works perfectly.</p>
<p><em>Usual disclaimer: these are not general purpose instructions &#8211; I cannot guarantee it will work for you. Use them at your own risk.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://lab.algasystems.net/2012/01/amtec-elsagdatamag-argo-5595-take-4-hardening/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Amtec (ElsagDatamag) Argo 55/95 – Take 3: Sniffing the password!</title>
		<link>http://lab.algasystems.net/2012/01/amtec-elsagdatamag-argo-5595-take-3/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=amtec-elsagdatamag-argo-5595-take-3</link>
		<comments>http://lab.algasystems.net/2012/01/amtec-elsagdatamag-argo-5595-take-3/#comments</comments>
		<pubDate>Tue, 17 Jan 2012 19:19:24 +0000</pubDate>
		<dc:creator>bano</dc:creator>
				<category><![CDATA[Hacking]]></category>
		<category><![CDATA[Amtec]]></category>
		<category><![CDATA[Argo 55]]></category>
		<category><![CDATA[Argo 95]]></category>
		<category><![CDATA[Elsag]]></category>
		<category><![CDATA[ElsagDatamat]]></category>
		<category><![CDATA[fastweb]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[mitm]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[router]]></category>

		<guid isPermaLink="false">http://lab.algasystems.net/?p=41</guid>
		<description><![CDATA[Even if we learned some useful things about our router (and in the next posts, we will continue to explore it), we still need to find the credentials to access to the interface. The interface is available via http or https and telnet, on the external interface - you can access it only from the local network, [...]]]></description>
			<content:encoded><![CDATA[<p>Even if we learned some useful things about our router (and in the next posts, we will continue to explore it), we still need to find the credentials to access to the interface.</p>
<p>The interface is available via http or https and telnet, <strong>on the external interface</strong> - you can access it only from the local network, but you need to use the external ip address of the router.</p>
<p>But how can we find the username / password? Well, when Fastweb started delivering those boxes, they left the default values of admin / admin &#8211; guessing that was easy, and everyone was happy :) But the fun didn&#8217;t last long &#8211; they quickly remotely upgraded the firmware, changing the password and stopping the joy.</p>
<p>So, what can we do? Luckily I found a couple of those things:</p>
<p><a href="http://lab.algasystems.net/wp-content/uploads/2012/01/mediaconv.jpg"><img class="alignnone  wp-image-47" title="Media converters" src="http://lab.algasystems.net/wp-content/uploads/2012/01/mediaconv.jpg" alt="Media converters" width="538" height="403" /></a></p>
<p>&nbsp;</p>
<p>They are media converters &#8211; the media converter it&#8217;s the link between optical fiber and twisted pair. A couple of those, an hub, <a href="http://www.wireshark.org/" target="_blank">Wireshark</a>, and we have the perfect setup to do Man In The Middle!</p>
<p>The plan is simple: we start to sniff packets between the router and the Fastweb infrastructure, then we reset the router configuration (keeping pressed the reset pushbutton for about 15 sec), and&#8230; yes! We get <a href="http://www.algasystems.net/pub/ARGO95/ED_ARGO95_1.3.19.txt" target="_blank">the configuration file</a>!</p>
<p>Luckily, in OpenRG the password is obfuscated (and not encrypted!), and we can deobfuscate it with <a href="http://www.webalice.it/zibri/Deobfuscate.html" target="_blank">Zibri&#8217;s OpenRG deobfiscator</a>. Bingo!</p>
<p><em>Username:</em> <strong>lanadmin</strong> / <em>Password:</em> <strong>lanpasswd</strong></p>
<p><em>Username:</em> <strong>UserName</strong> / <em>Password:</em> <strong>Password</strong></p>
<p>Yes&#8230; they didn&#8217;t learn anything.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://lab.algasystems.net/2012/01/amtec-elsagdatamag-argo-5595-take-3/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Amtec (ElsagDatamag) Argo 55/95 – Take 2: Serial access</title>
		<link>http://lab.algasystems.net/2012/01/amtec-elsagdatamag-argo-5595-take-2/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=amtec-elsagdatamag-argo-5595-take-2</link>
		<comments>http://lab.algasystems.net/2012/01/amtec-elsagdatamag-argo-5595-take-2/#comments</comments>
		<pubDate>Mon, 16 Jan 2012 22:41:22 +0000</pubDate>
		<dc:creator>bano</dc:creator>
				<category><![CDATA[Hacking]]></category>
		<category><![CDATA[Amtec]]></category>
		<category><![CDATA[Argo 55]]></category>
		<category><![CDATA[Argo 95]]></category>
		<category><![CDATA[Elsag]]></category>
		<category><![CDATA[ElsagDatamat]]></category>
		<category><![CDATA[fastweb]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[router]]></category>
		<category><![CDATA[take apart]]></category>

		<guid isPermaLink="false">http://lab.algasystems.net/?p=29</guid>
		<description><![CDATA[In the previous post, we saw that the board sports three interesting headers (in red): But what are they for? Well, this is what I found using a logic probe: 1. UART Vcc   NC    GND   RxD   TxD o     o     o     o     o +3,3   0     0    +2,9 [...]]]></description>
			<content:encoded><![CDATA[<p>In the previous post, we saw that the board sports three interesting headers (in red):</p>
<div id="attachment_33" class="wp-caption alignnone" style="width: 310px"><a href="http://lab.algasystems.net/wp-content/uploads/2012/01/argo95_detail_c.jpg" target="_blank"><img class="size-medium wp-image-33 " title="Argo 95 headers" src="http://lab.algasystems.net/wp-content/uploads/2012/01/argo95_detail_c-300x213.jpg" alt="Argo 95 headers" width="300" height="213" /></a><p class="wp-caption-text">Argo 95 headers (Click to enlarge)</p></div>
<p>But what are they for? Well, this is what I found using a logic probe:</p>
<p>1. UART<br />
Vcc   NC    GND   RxD   TxD<br />
o     o     o     o     o<br />
+3,3   0     0    +2,9  +3,2</p>
<p>2. JTAG<br />
Vcc<br />
o     o     o     o     o     o     o</p>
<p>o     o     o     o     o     o     o<br />
Vcc         GND   GND   GND   GND   GND<br />
(Probable pinout: <a href="http://www.jtagtest.com/pinouts/ejtag" target="_blank">http://www.jtagtest.com/pinouts/ejtag</a>)</p>
<p>3. ?<br />
+3,3   0    +2,9  +3,2  +3,2   0<br />
o     o     o     o     o     o<br />
Vcc   GND               TxD?</p>
<p>I have absolutely no idea of what the port 3 is: there is activity on pin 5, but it isn&#8217;t a serial port. Port 1 is what we were looking for: we can connect using a RS232 &#8211; TTL adapter and a terminal emulator (115000 baud, 8 bits, no parity, 1 stop bit), and&#8230; voilà! The <a href="http://www.algasystems.net/pub/ARGO95/bootlog.txt" target="_blank">bootlog</a>!</p>
<p>Reading the bootlog, we  learn some useful things: the box runs OpenRG, and the bootloader is U-Boot &#8211; and is freely accessible!</p>
<p>These are the available commands:</p>
<p>=&gt; help<br />
? &#8211; alias for &#8216;help&#8217;<br />
askenv &#8211; get environment variables from stdin<br />
autoscr &#8211; run script from memory<br />
base &#8211; print or set address offset<br />
bdinfo &#8211; print Board Info structure<br />
boot &#8211; boot default, i.e., run &#8216;bootcmd&#8217;<br />
boot_openrg &#8211; boot Openrg active image<br />
bootd &#8211; boot default, i.e., run &#8216;bootcmd&#8217;<br />
bootm &#8211; boot application image from memory<br />
bootp &#8211; boot image via network using BOOTP/TFTP protocol<br />
cmp &#8211; memory compare<br />
coninfo &#8211; print console devices and information<br />
cp &#8211; memory copy<br />
crc32 &#8211; checksum calculation<br />
dhcp &#8211; boot image via network using DHCP/TFTP protocol<br />
echo &#8211; echo args to console<br />
erase &#8211; erase FLASH memory<br />
flayout &#8211; print FLASH layout and sections<br />
flinfo &#8211; print FLASH memory information<br />
get_openrg_active &#8211; print info about Openrg images in flash and indicate what is<br />
the active<br />
go &#8211; start application at address &#8216;addr&#8217;<br />
gpio &#8211; GPIO management commands<br />
help &#8211; print online help<br />
iminfo &#8211; print header information for application image<br />
imls &#8211; list all images found in flash<br />
imxtract- extract a part of a multi-image<br />
itest &#8211; return true/false on integer compare<br />
led &#8211; LED management commands<br />
loadb &#8211; load binary file over serial line (kermit mode)<br />
loads &#8211; load S-Record file over serial line<br />
loady &#8211; load binary file over serial line (ymodem mode)<br />
loop &#8211; infinite loop on address range<br />
md &#8211; memory display<br />
mii &#8211; MII utility commands<br />
mm &#8211; memory modify (auto-incrementing)<br />
mtest &#8211; simple RAM test<br />
mw &#8211; memory write (fill)<br />
nfs &#8211; boot image via network using NFS protocol<br />
nm &#8211; memory modify (constant address)<br />
pci &#8211; list and access PCI Configuration Space<br />
ping &#8211; send ICMP ECHO_REQUEST to network host<br />
printenv- print environment variables<br />
protect &#8211; enable or disable FLASH write protection<br />
rarpboot- boot image via network using RARP/TFTP protocol<br />
reset &#8211; Perform RESET of the CPU<br />
run &#8211; run commands in an environment variable<br />
saveenv &#8211; save environment variables to persistent storage<br />
setenv &#8211; set environment variables<br />
sleep &#8211; delay execution for some time<br />
tftpboot- boot image via network using TFTP protocol<br />
update_openrg &#8211; update openrg writing inactive image section<br />
update_openrg_factory &#8211; update openrg factory settings<br />
version &#8211; print monitor version</p>
<p>Wow, seems a lot of fun, right? :)</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://lab.algasystems.net/2012/01/amtec-elsagdatamag-argo-5595-take-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Amtec (ElsagDatamag) Argo 55/95 &#8211; Take 1: The innards</title>
		<link>http://lab.algasystems.net/2012/01/amtec-elsagdatamag-argo-5595-take-1/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=amtec-elsagdatamag-argo-5595-take-1</link>
		<comments>http://lab.algasystems.net/2012/01/amtec-elsagdatamag-argo-5595-take-1/#comments</comments>
		<pubDate>Sun, 15 Jan 2012 14:07:33 +0000</pubDate>
		<dc:creator>bano</dc:creator>
				<category><![CDATA[Hacking]]></category>
		<category><![CDATA[Amtec]]></category>
		<category><![CDATA[Argo 55]]></category>
		<category><![CDATA[Argo 95]]></category>
		<category><![CDATA[Elsag]]></category>
		<category><![CDATA[ElsagDatamat]]></category>
		<category><![CDATA[fastweb]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[router]]></category>
		<category><![CDATA[take apart]]></category>

		<guid isPermaLink="false">http://lab.algasystems.net/?p=7</guid>
		<description><![CDATA[Since the first weeks of 2011, the italian provider Fastweb is delivering this router to new customers. Since it&#8217;s a full-featured router, with a full-featured web interface (but inaccessible to the user), it seemed quite a nice idea to study the box a bit. First a notice: Argo 55 is the model delivered with ADSL [...]]]></description>
			<content:encoded><![CDATA[<p>Since the first weeks of 2011, the italian provider Fastweb is delivering this router to new customers. Since it&#8217;s a full-featured router, with a full-featured web interface (but inaccessible to the user), it seemed quite a nice idea to study the box a bit.</p>
<p>First a notice: Argo 55 is the model delivered with ADSL contracts, while Argo 95 is the FTTH variant &#8211; from what I can tell, the hardware is more or less identical, the only difference being the presence of an ADSL modem in the 55, which becomes a media converter in he 95. Said that, these articles will use the Argo 95 &#8211; the one I have at home &#8211; as a basis.</p>
<p>So let&#8217;s take a peek at the inner guts of the thing:</p>
<div id="attachment_8" class="wp-caption alignnone" style="width: 529px"><a href="http://lab.algasystems.net/wp-content/uploads/2012/01/argo95_c.jpg" target="_blank"><img class=" wp-image-8 " title="Argo 95 innards" src="http://lab.algasystems.net/wp-content/uploads/2012/01/argo95_c-1024x768.jpg" alt="Argo 95 innards" width="519" height="391" /></a><p class="wp-caption-text">Argo 95 innards (click to enlarge)</p></div>
<p>Nice, huh? From left to right we have the power supply section, the media converter, the switch (and, in the lower section, the SoC) and the ATA. In the lower right corner there&#8217;s the wireless miniPCI card (an Atheros AR5700G).</p>
<p>These are the main chips on the board (in yellow):</p>
<p>1. SoC: ikanos IKF6836 (<a href="http://www.algasystems.net/pub/ARGO95/soc.pdf" target="_blank">http://www.algasystems.net/pub/ARGO95/soc.pdf</a>)<br />
2. RAM: SAMSUNG   K4H511638G-LCCC (<a href="http://www.algasystems.net/pub/ARGO95/ram.pdf" target="_blank">http://www.algasystems.net/pub/ARGO95/ram.pdf</a>)<br />
3. Flash: SPANSION S29GL128P11TFI1 (<a href="http://www.algasystems.net/pub/ARGO95/flash.pdf" target="_blank">http://www.algasystems.net/pub/ARGO95/flash.pdf</a>)<br />
4. Media converter: IC+ IP113S LF (<a href="http://www.algasystems.net/pub/ARGO95/mediaconv.pdf" target="_blank">http://www.algasystems.net/pub/ARGO95/mediaconv.pdf</a>)<br />
5. Switch: Marvell 88E6063-RCJ1 (<a href="http://www.algasystems.net/pub/ARGO95/switch.pdf" target="_blank">http://www.algasystems.net/pub/ARGO95/switch.pdf</a>)<br />
6. ATA: ZARLINK Le88266DLC (<a href="http://www.algasystems.net/pub/ARGO95/ata.pdf" target="_blank">http://www.algasystems.net/pub/ARGO95/ata.pdf</a>)</p>
<p>So, our router architecture is similar to <a title="Belgacom BBox2" href="http://www.zoobab.com/bbox2" target="_blank">Belgacom BBox2</a> (aming others), 16Mb of flash and 64Mb of RAM.</p>
<p>Ok, neat piece of hardware. In the next post, we&#8217;ll se what those tasty headers are there for :)</p>
]]></content:encoded>
			<wfw:commentRss>http://lab.algasystems.net/2012/01/amtec-elsagdatamag-argo-5595-take-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

