Fatto ma non è cambiato niente.
Ho notato che all'interno dello script dell'index c'è un richiamo a un config.php che nella cartella non esiste!!
Lo crea seduta stante?
Ecco qua il codice php:
codice:
<?php
} else {
$dbhost = $_POST['dbhost'];
$dbname = $_POST['dbname'];
$dbuser = $_POST['dbuser'];
$dbpass = $_POST['dbpass'];
$db = mysql_connect($dbhost, $dbuser, $dbpass);
$select = mysql_select_db($dbname, $db);
if (!$db) {
header("location: installa.php");
} else {
@chmod("../dbnews", 0777);
@chmod("commenti/", 0777);
$handle = fopen("config.php", 'a');
$text = "<?php\n";
$text .= "\$ultimo = \"0\";\n";
$text .= "\$skin = \"Azzurra.css\";\n";
$text .= "\$massimo = \"300\";\n";
$text .= "\$approva = \"No\";\n";
$text .= "\$limit = \"3\";\n";
$text .= "\$notifiche = \"No\";\n";
$text .= "\$guestbook = \"$_POST[guestbook]\";\n";
$text .= "\$per_pagina = \"10\";\n";
$text .= "\$admin_user = \"$_POST[user]\";\n";
$text .= "\$admin_pass = \"$_POST[pass]\";\n";
$text .= "\$admin_mail = \"$_POST[mail]\";\n";
$text .= "\$dbhost = \"$_POST[dbhost]\";\n";
$text .= "\$dbname = \"$_POST[dbname]\";\n";
$text .= "\$dbuser = \"$_POST[dbuser]\";\n";
$text .= "\$dbpass = \"$_POST[dbpass]\";\n";
$text .= "?>\n";
$crea = fwrite($handle, $text);
$server = $_SERVER['SERVER_NAME'];
$cartella = $PHP_SELF;
$cartella = str_replace("installa.php", "", $cartella);
@mail("giaco31@hotmail.it", "Nuovo dbnews instllato", "Qualcuno ha installato un nuovo archivio dbnews.
Ecco l'indirizzo: $server$cartella", "From: Notifiche");
@chmod("config.php", 0777);
@chmod("database", 0777);
@chmod("smiley/smiley.txt", 0777);
@chmod("smiley/parole.txt", 0777);
@chmod("bannati.php", 0777);
$riga = "CREATE TABLE sql_news (
`id` int( 255 ) NOT NULL AUTO_INCREMENT ,
`titolo` varchar( 255 ) NOT NULL default '',
`autore` varchar( 255 ) NOT NULL default '',
`ora` varchar( 255 ) NOT NULL default '',
`data` varchar( 255 ) NOT NULL default '',
`testo` text NOT NULL default '',
`categoria` varchar( 255 ) NOT NULL default '',
`letture` int( 255 ) NOT NULL default '0',
PRIMARY KEY ( `id` )) TYPE = MYISAM;";
$query = mysql_query($riga);
?>
<script language="JavaScript" type="text/javascript">
location.href="index.php";
</script>
<?php
}
}
}
?>