<?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>Mon, 16 Apr 2012 17:55:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>A bit of joy for the 55+, too!</title>
		<link>http://lab.algasystems.net/2012/04/a-bit-of-joy-for-the-55-too/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=a-bit-of-joy-for-the-55-too</link>
		<comments>http://lab.algasystems.net/2012/04/a-bit-of-joy-for-the-55-too/#comments</comments>
		<pubDate>Thu, 12 Apr 2012 22:38:42 +0000</pubDate>
		<dc:creator>bano</dc:creator>
				<category><![CDATA[Hacking]]></category>
		<category><![CDATA[Amtec]]></category>
		<category><![CDATA[Argo 55]]></category>
		<category><![CDATA[argo55+]]></category>
		<category><![CDATA[downgrade]]></category>
		<category><![CDATA[Elsag]]></category>
		<category><![CDATA[ElsagDatamat]]></category>
		<category><![CDATA[fastweb]]></category>
		<category><![CDATA[firmware]]></category>
		<category><![CDATA[firmware downgrade]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[router]]></category>

		<guid isPermaLink="false">http://lab.algasystems.net/?p=147</guid>
		<description><![CDATA[Big thanks to Arf, that &#8211; using a little voodoo &#8211; has managed to dump an older firmware from a vanilla ARGO55+! So we can downgrade the ADSL flavour, too :) I&#8217;ve updated the relevant post, please let me know if there&#8217;s something wrong. &#160;]]></description>
			<content:encoded><![CDATA[<p>Big thanks to <strong>Arf</strong>, that &#8211; using a little voodoo &#8211; has managed to dump an older firmware from a vanilla ARGO55+!<br />
So we can downgrade the ADSL flavour, too :)</p>
<p>I&#8217;ve updated the relevant post, please let me know if there&#8217;s something wrong.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://lab.algasystems.net/2012/04/a-bit-of-joy-for-the-55-too/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Amtec (ElsagDatamag) Argo 55/95 – Take 8: Firmware downgrade</title>
		<link>http://lab.algasystems.net/2012/03/amtec-elsagdatamag-argo-5595-take-8-firmware-downgrade/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=amtec-elsagdatamag-argo-5595-take-8-firmware-downgrade</link>
		<comments>http://lab.algasystems.net/2012/03/amtec-elsagdatamag-argo-5595-take-8-firmware-downgrade/#comments</comments>
		<pubDate>Thu, 22 Mar 2012 22:16: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[downgrade]]></category>
		<category><![CDATA[Elsag]]></category>
		<category><![CDATA[ElsagDatamat]]></category>
		<category><![CDATA[fastweb]]></category>
		<category><![CDATA[firmware]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[router]]></category>

		<guid isPermaLink="false">http://lab.algasystems.net/?p=127</guid>
		<description><![CDATA[Boring, usual disclaimer: the stuff you&#8217;ll read in this article can easily render your router a not-so-useful paperweight. Please take the time to read and understand it completely, and keep in mind that I cannot guarantee that it will work on your Argo. Also, make sure you follow the instructions for the right model of [...]]]></description>
			<content:encoded><![CDATA[<p><em>Boring, usual disclaimer: the stuff you&#8217;ll read in this article can <strong>easily</strong> render your router a not-so-useful <strong>paperweight</strong>. Please take the time to read and understand it completely, and keep in mind that I cannot guarantee that it will work on your Argo. <strong><br />
Also, make sure you follow the instructions for the right model of router: ARGO55+ is the ADSL version, while ARGO95 is the optical fiber one.</strong></em></p>
<p><em><strong>Warning: we are investigating an issue with the ARGO55+ firmware &#8211; apparently there&#8217;s a configuration problem with the WAN, and clients are unable to reach the outside. Please be aware of that before trying a downgrade on the 55+.</strong><br />
</em></p>
<p>Ok, so we have no way &#8211; at this time, at least &#8211; to unlock the interface of the Argo with the recent firmware revisions.<br />
By the way, what are these revisions?</p>
<p>These are the firmware versions I am aware of:</p>
<p>1.3.19 (Mar 25 2011) [ARGO95]<br />
1.3.20 (Mar 25 2011) [ARGO55+]<br />
0.4.4 (Nov 20 2011) [ARGO55+/ARGO95]<br />
1.4.4 (Jan 19 2012) [ARGO95]<br />
0.4.52 (Feb 28 2012) [ARGO55+/ARGO95]</p>
<p>As you can see, the version numbering is kind of curious, but release 1.3.19 (for 95) and 1.3.20 (for 55+) are the last one with interface enabled. So, how we can downgrade to that firmware version? Well, here the bootloader of the Argo comes handy.</p>
<p>What you&#8217;ll need:</p>
<p>- A <a href="http://lab.algasystems.net/2012/01/amtec-elsagdatamag-argo-5595-take-2/" target="_blank">serial port connection</a> to the Argo<br />
- A tftp server (i.e. <a href="http://tftpd32.jounin.net/" target="_blank">tftp32</a>)<br />
- <strong>For ARGO55+:</strong> <a href="http://www.algasystems.net/pub/ARGO95/argo55_openrg_1_n.img" target="_blank">argo55_openrg_1_n.img</a> and <a href="http://www.algasystems.net/pub/ARGO95/argo55_openrg_2_n.img" target="_blank">argo55_openrg_2_n.img</a><br />
- <strong>For ARGO95:</strong> <a href="http://www.algasystems.net/pub/ARGO95/argo95_openrg_1_n.img" target="_blank">argo95_openrg_1_n.img</a> and <a href="http://www.algasystems.net/pub/ARGO95/argo95_openrg_2_n.img" target="_blank">argo95_openrg_2_n.img</a></p>
<p>Assign your computer a fixed ip address on the same network of the router (i.e. 192.168.1.10), <strong>connect it to the ethernet port nearest to the power supply port</strong>, fire up the tftp server and copy to its root the two *.img files. Connect to the router via serial port, log in and do a</p>
<p><em>conf download tftp://&lt;tftp_server_ip&gt;/my_conf_backup.conf</em></p>
<p>then <strong>do a dump of your entire flash</strong> (if you haven&#8217;t done it already) using the instructions posted <a href="http://lab.algasystems.net/2012/01/amtec-elsagdatamag-argo-5595-take-5-dump-the-flash/" target="_blank">here</a>.</p>
<p>Finally, type <em>system reboot</em> and press enter.</p>
<p>As soon as the router restarts, you&#8217;ll see the message <em>&#8220;Press ENTER twice to stop autoboot in 2 seconds&#8221;</em>. Quicky press (you guessed it) the enter key two times.<br />
You are now in the U-Boot command prompt: this nice bootloader has a load of useful features (take a look at the <em>help</em> command), but has also the power to render your router unusable. So, pay attention!</p>
<p>Now we have to set a couple of variables: I&#8217;m assuming that you used 192.168.1.10 as the ip of your tftp server, <strong>remember to adapt the commands to your setup</strong>.</p>
<p>Set the router ip address:<br />
<em>setenv ipaddr 192.168.1.1</em></p>
<p>Set the router netmask:<br />
<em>setenv netmask 255.255.255.0</em></p>
<p>Set the tftp server ip address:<br />
<em>setenv serverip 192.168.1.10</em></p>
<p>Now check if you can reach the tftp server machine with<br />
<em>ping 192.168.1.10</em></p>
<p><em></em>If everything is ok, you can now cross your fingers, and start the downgrade.</p>
<p>First downgrade the recovery image:<br />
<em>update_openrg argo55_openrg_1_n.img 1 </em><strong>(if you are downgrading an ARGO55+)<br />
or<br />
</strong><em><em>update_openrg argo95_openrg_1_n.img 1 </em></em><strong>(if you are downgrading an ARGO95)</strong><em><strong></strong><em></em><br />
</em></p>
<p><em></em>Then the standard image:<br />
<em>update_openrg argo55_openrg_2_n.img 2 </em><strong>(if you are downgrading an ARGO55+)</strong><em><br />
</em><strong>or</strong> <em><br />
update_openrg argo95_openrg_2_n.img 2</em><strong> (if you are downgrading an ARGO95)</strong><em><br />
</em></p>
<p><em></em>If you haven&#8217;t received any error, you can check that the images are correctly recognized with <em>get_openrg_active </em></p>
<p><strong>Make sure that there are two valid partitions, and the active one is the 3/7</strong>. Then, exit typing <em>reset</em> and pressing enter.</p>
<p>The Argo should now reboot and start your new-old-firmware. Keep in mind that Fastweb has still access to your router, so probably the best way to avoid an immediate upgrade is to disconnect the WAN cable (fiber or adsl) during the boot, log in to the router (via serial port) and issue a</p>
<p><em>cwmp session_stop</em></p>
<p>that should stop the remote configuration service, hopefully. Then reconnect the WAN cable, access to the Argo web interface, and follow the steps in the <a href="http://lab.algasystems.net/2012/01/amtec-elsagdatamag-argo-5595-take-4-hardening/" target="_blank">hardening post</a>, before it&#8217;s too late :)</p>
<p>&nbsp;</p>
<p><strong>Update (02/04/2012)</strong></p>
<p>Corrected a couple of mistakes (mistyped the update_openrg commands and forgot to mention to connect via ethernet). Thanks <strong>D3FenD3r</strong> and<strong> geogeo</strong>!</p>
<p><strong>Update 2 (13/04/2012)</strong></p>
<p>Added files and instructions for ARGO55+. Thanks <strong>Arf</strong>!</p>
<p><strong>Update 3 (14/04/2012)</strong></p>
<p>Added a missing command line. Thanks <strong>D3FenD3r</strong>!</p>
<p><strong>Update 4 (16/04/2012)</strong></p>
<p>Added a warning while we investigate problems with the ARGO55+ configuration.</p>
]]></content:encoded>
			<wfw:commentRss>http://lab.algasystems.net/2012/03/amtec-elsagdatamag-argo-5595-take-8-firmware-downgrade/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Amtec (ElsagDatamag) Argo 55/95 – Take 7: Fastweb strikes back</title>
		<link>http://lab.algasystems.net/2012/03/amtec-elsagdatamag-argo-5595-take-7-fastweb-strikes-back/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=amtec-elsagdatamag-argo-5595-take-7-fastweb-strikes-back</link>
		<comments>http://lab.algasystems.net/2012/03/amtec-elsagdatamag-argo-5595-take-7-fastweb-strikes-back/#comments</comments>
		<pubDate>Thu, 22 Mar 2012 20:45:15 +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=119</guid>
		<description><![CDATA[As probably the vast majority out there already noticed, Fastweb in the past weeks has provisioned a firmware update (version 0.4.4 &#8211; we&#8217;ll came back on this) that locks out users from the interface of the Argo (web, telnet, ssh). Thanks to the user geogeo I&#8217;ve had the opportunity to take a look at the new firmware: apparently, [...]]]></description>
			<content:encoded><![CDATA[<p>As probably the vast majority out there already noticed, Fastweb in the past weeks has provisioned a firmware update (version 0.4.4 &#8211; we&#8217;ll came back on this) that locks out users from the interface of the Argo (web, telnet, ssh). Thanks to the user <strong>geogeo</strong> I&#8217;ve had the opportunity to take a look at the new firmware: apparently, ports (22, 23, 80, 443, etc.) are binded, but are refusing any connection (even from the Argo itself!).</p>
<p>A side-by-side comparison of the pre-update and post-update configurations (including firewall settings fetched with <em>firewall dump</em>), didn&#8217;t reveal anything relevant: the firewall, apparently, isn&#8217;t the culprit. So, in lack of other informations, we must assume that the interface has been locked out at compile time.</p>
<p>So, how can we regain access to the Argo? Well, in the next post we&#8217;ll talk about <strong>downgrade</strong> :)</p>
]]></content:encoded>
			<wfw:commentRss>http://lab.algasystems.net/2012/03/amtec-elsagdatamag-argo-5595-take-7-fastweb-strikes-back/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>13</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/argo95_openrg_1_n.img">openrg_1_n.img</a></p>
<p><a href="http://www.algasystems.net/pub/ARGO95/argo95_openrg_2_n.img">openrg_2_n.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>
<p><strong>Update 3 (22/03/2012)</strong></p>
<p>I finally fetched from the Fastweb server the new firmware releases, the ones with interface locked out.</p>
<div><a href="http://www.algasystems.net/pub/ARGO95/ED_ARGO55+_0.4.4.conf" target="_blank">ED_ARGO55+_0.4.4.conf</a></div>
<div><a href="http://www.algasystems.net/pub/ARGO95/ED_ARGO55+_0.4.4.kit" target="_blank">ED_ARGO55+_0.4.4.kit</a></div>
<div></div>
<div><a href="http://www.algasystems.net/pub/ARGO95/ED_ARGO55+_0.4.52.conf" target="_blank">ED_ARGO55+_0.4.52.conf</a></div>
<div><a href="http://www.algasystems.net/pub/ARGO95/ED_ARGO55+_0.4.52.kit" target="_blank">ED_ARGO55+_0.4.52.kit</a></div>
</div>
<div></div>
<div><a href="http://www.algasystems.net/pub/ARGO95/ED_ARGO95_0.4.4.conf" target="_blank">ED_ARGO95_0.4.4.conf</a></div>
<div><a href="http://www.algasystems.net/pub/ARGO95/ED_ARGO95_0.4.4.kit" target="_blank">ED_ARGO95_0.4.4.kit</a></div>
<div></div>
<div><a href="http://www.algasystems.net/pub/ARGO95/ED_ARGO95_1.4.4.conf" target="_blank">ED_ARGO95_1.4.4.conf</a></div>
<div><a href="http://www.algasystems.net/pub/ARGO95/ED_ARGO95_1.4.4.kit" target="_blank">ED_ARGO95_1.4.4.kit</a></div>
<div></div>
<div><a href="http://www.algasystems.net/pub/ARGO95/ED_ARGO95_0.4.52.conf" target="_blank">ED_ARGO95_0.4.52.conf</a></div>
<div><a href="http://www.algasystems.net/pub/ARGO95/ED_ARGO95_0.4.52.kit" target="_blank">ED_ARGO95_0.4.52.kit</a></div>
<div></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>11</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>5</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>9</slash:comments>
		</item>
	</channel>
</rss>

