It looks like you're new here. If you want to get involved, click one of these buttons!
use WWW::Mechanize;
use LWP::Simple;
use HTTP::Cookies;
use Digest::MD5;
print \"Username: \"; # username
chomp($user = <STDIN>);
print \"Password: \"; # password
chomp($pass = <STDIN>);
$request_information = \"http://psls.3owl.com/updater_file.php\"; # PHP file location
$passmd5 = Digest::MD5->new;
$passmd5->add($pass);
$encrypted = $passmd5->hexdigest; # encrypt password
my $mech = WWW::Mechanize->new();
$mech->cookie_jar(HTTP::Cookies->new());
$mech->get($request_information);
$mech->form_name('get');
$mech->field(username => $user);
$mech->field(password => $encrypted);
$mech->click();
$version = \"1.0 Beta\";
if(($mech->content =~ /$user/)&&($mech->content =~ /$encrypted/)){
print \"\n\nChecking For Updates...\n\n\";
if($mech->content =~ /$version/){
print \"You are all up to date...\n\";
}else{
print \"\nYou are out of date, starting download...\n\n\";
$software_url = 'http://www.rarlab.com/rar/wrar410.exe'; # Just sample file, i used winrar
$localfilename = 'winrar-fromperl.exe'; # filename
my $mech = WWW::Mechanize->new;
getstore($software_url, $localfilename );
print \"Download Complete, Please Install the new version.\n\n\";
system('start '.$localfilename); # linux will require start change to exec
}
}else{
print \"\n\nUnable to check, invalid logins or PC.\n\n\";
}
<?php
//This script will require a database with the following tables
// - users & version
// users columns = username & password
// version columns = version
// Enjoy...
mysql_connect(\"hostname\", \"user\", \"pass\");
mysql_select_db(\"db_name\");
echo \"
<style>
#textbox{border: 0;background: transparent;color: #ffffff;}
#button{border: 0; background: transparent;}
</style>
<center><form name='get' action='' method='POST' >
<input id='textbox' type='text' name='username' /></br>
<input id='textbox' type='password' name='password' /></br>
<input id='button' type='submit' name='button' value=''/>
</form></center><meta http-equiv='REFRESH' content='0;url=index.html'>\";
$password = strip_tags(htmlentities($_POST['password']));
$username = strip_tags(htmlentities($_POST['username']));
$get = isset($_POST['button']);
if($get){
$request_information = mysql_query(\"SELECT * FROM `users` WHERE username='\".$username.\"' AND password='\".$password.\"'\");
$version = mysql_query(\"SELECT * FROM `version`\");
if(mysql_num_rows($request_information) > 0){
while($row = mysql_fetch_array($request_information))
{
echo \"\n\".$row['username'] . \"\n\" . $row['password'];
}
while($versionrow = mysql_fetch_array($version)){
echo \"\n\n\".$versionrow['version'];
}
}
}
mysql_close();
?>