View Single Post
Old 08-29-2006, 06:04 PM  
interracialtoons
Confirmed User
 
Join Date: May 2006
Posts: 1,910
Quote:
Originally Posted by borked
Well, I never said it was hard....
I finshed dinner so now:

Like I said; I only need one guess for a 3 char encrypted password.

Go here and create passwords or use crypt($passwd, $salt).
http://www.htaccesstools.com/htpasswd-generator/


Run script:




#!/usr/bin/perl


print "Content-type: text/html\n\n";


$alphadata = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLM NOPQRSTUVWXYZ";
@one = split(//, $alphadata);
@two = @one;
@three = @one;

$passencrypted = "QVK7qHfRnSw3M";
$salt = substr($passencrypted, 0, 2);
print "salt = $salt<br>";

$a = 0;
foreach (@one) {

if ($a >= 80) {

print "abort<br>";
exit;
}
$b=0;
foreach(@two) {
$c = 0;
foreach (@three) {

$pw = "$one[$a]$two[$b]$three[$c]";

$check = crypt($pw, $salt);
if ($check eq $passencrypted) {
print "$pw - is a possible password<br>";


}
$c++;
}
$b++;
}

$a++;
}

print "Ended OK";

exit;





So much for encryption!
interracialtoons is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote