{"id":581,"date":"2011-12-17T16:39:41","date_gmt":"2011-12-17T21:39:41","guid":{"rendered":"http:\/\/zitstif.no-ip.org\/?p=581"},"modified":"2012-02-13T19:31:34","modified_gmt":"2012-02-14T00:31:34","slug":"a-note-on-updating-weaponized-nokia-n900s","status":"publish","type":"post","link":"http:\/\/zitstif.no-ip.org\/?p=581","title":{"rendered":"A Note on Updating Weaponized Nokia N900s"},"content":{"rendered":"<p>I wanted to make this post to save time and headaches for people who own &#8216;weaponized&#8217; Nokia N900s.<\/p>\n<p>If you regularly update your Nokia N900 by doing (as root):<\/p>\n<p>apt-get update &amp;&amp; apt-get upgrade -y<\/p>\n<p>I have ran into some issues with some of the newer packages.<\/p>\n<p>Firstly, the newest beta version of nmap (5.59BETA1_armel) appears to be buggy enough to the point where it&#8217;s almost unusable.<\/p>\n<p>Running this:<br \/>\nnmap -sS -P0 -vv www.google.com -p 80<\/p>\n<p>Yields:<br \/>\nStarting Nmap 5.59BETA1 (http:\/\/nmap.org) at 2011-12-17 21:14 EST<br \/>\nWarning Hostname www.google.com resolves to 6 IPs. Using 74.125.45.147<br \/>\nroute_dst_netlink: can&#8217;t find interface &#8220;wlan0&#8221;<\/p>\n<p>Secondly, subversion (svn) gets completely broken due to a library compatibility issue:<\/p>\n<p>svn -h<br \/>\nSegmentation fault<\/p>\n<p>There has been discussion on this: <a title=\"http:\/\/talk.maemo.org\/showthread.php?p=970467\" href=\"http:\/\/talk.maemo.org\/showthread.php?p=970467\" target=\"_blank\">http:\/\/talk.maemo.org\/showthread.php?p=970467<\/a><\/p>\n<p>Having svn broken really stinks, because then I am not able to update Metasploit. Who in the hell wants to run an outdated version of Metasploit? (I imagine there are some people..)<\/p>\n<p>To work around this for the time being I have crafted the following shell script:<\/p>\n<pre>#!\/bin\/bash\r\n\r\nif [ ${#} -lt 1 ]\r\n then\r\n   echo \"Usage:\t\"\r\n   echo \".\/update.sh normal #This just does a normal update\";\r\n   echo \".\/update.sh modded #This will do a normal update and then downgrade libaprutil1, libapr1 and nmap so that they work\";\r\n   exit 1;\r\nfi\r\n\r\nif echo ${1} | egrep \"normal\"  &gt; \/dev\/null;\r\n then\r\n   apt-get update;\r\n   apt-get upgrade -y;\r\n   exit 0;\r\nelif echo ${1} | egrep \"modded\"  &gt; \/dev\/null;\r\n then\r\n   apt-get update;\r\n   apt-get upgrade -y;\r\n   apt-get install nmap=5.50-2 libaprutil1=1.3.9-2 libapr1=1.4.2-1 --force-yes -y;\r\n   apt-get clean &amp;&amp; apt-get autoclean;\r\n   exit 0;\r\nelse\r\n   echo \"I don't know what you are trying to do..\" #Thanks Arc\r\n   exit 2;\r\nfi<\/pre>\n<p><a title=\"http:\/\/zitstif.no-ip.org\/update.txt\" href=\"http:\/\/zitstif.no-ip.org\/update.txt\" target=\"_blank\">http:\/\/zitstif.no-ip.org\/update.txt<\/a><br \/>\nSHA1 (update.txt) = d83306d18a146a54a38ea236e3a236b4955bb81b<\/p>\n<p>For the time being if you&#8217;re in a similar case like me, you&#8217;ll have to use this shell script (wget http:\/\/zitstif.no-ip.org\/update.sh &amp;&amp;\u00a0 chmod +x update.sh &amp;&amp; .\/update.sh modded).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I wanted to make this post to save time and headaches for people who own &#8216;weaponized&#8217; Nokia N900s. If you regularly update your Nokia N900 by doing (as root): apt-get update &amp;&amp; apt-get upgrade -y I have ran into some issues with some of the newer packages. Firstly, the newest beta version of nmap (5.59BETA1_armel) &hellip; <a href=\"http:\/\/zitstif.no-ip.org\/?p=581\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">A Note on Updating Weaponized Nokia N900s<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,3],"tags":[95,525,524,39,519,520,521,391,526,528,523,522,318,527,392],"class_list":["post-581","post","type-post","status-publish","format-standard","hentry","category-code","category-posts","tag-bash","tag-libapr11-4-2-1","tag-libaprutil11-3-9-2","tag-maemo","tag-n900-fix","tag-n900-nmap-fix","tag-n900-svn-fix","tag-nmap","tag-nmap5-50-2","tag-shell-script","tag-svn","tag-svn-segmentation-fault","tag-weaponizing-the-n900","tag-weaponizing-the-n900-fix","tag-weaponizing-the-nokia-n900"],"_links":{"self":[{"href":"http:\/\/zitstif.no-ip.org\/index.php?rest_route=\/wp\/v2\/posts\/581","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/zitstif.no-ip.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/zitstif.no-ip.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/zitstif.no-ip.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/zitstif.no-ip.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=581"}],"version-history":[{"count":10,"href":"http:\/\/zitstif.no-ip.org\/index.php?rest_route=\/wp\/v2\/posts\/581\/revisions"}],"predecessor-version":[{"id":589,"href":"http:\/\/zitstif.no-ip.org\/index.php?rest_route=\/wp\/v2\/posts\/581\/revisions\/589"}],"wp:attachment":[{"href":"http:\/\/zitstif.no-ip.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=581"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/zitstif.no-ip.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=581"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/zitstif.no-ip.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=581"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}