Sunday, 05 July 2009 19:04
1st this method will work on on *nix servers only
Step1 – get the iframe code from your website page it will be something like
<iframe src="http://example.cn:8080/index.php" width=148 height=107
style="visibility: hidden"></iframe>
step 2- make a php file and put it in the root of your website . maybe call it iframe_remover.php and put this code inside it
<?php
$cmd="find * -exec sed -i 's/<iframe src=\"http:\/\/example.cn:8080\/index.php\"
width=148 height=107 style=\"visibility: hidden\"><\/iframe>//' {} \;";
system($cmd);
?>
you can see i scaped (”,/) by puting a back slash \ before them
Step 3 – now go to your website and execute this file . it will find and replace the iframe code
Note: system() must be enabled
Thats it .
if you want to make sure that the code is removed from all the file you can create a php file and put this code inside it
<?php
system("find . -exec grep \"example.cn:8080\" '{}' \; -print ");
?>
where examble.cn is the attack site

| Next > |
|---|
Click Here Web Design Every great business idea takes wings with the launch of a professionally designed website. e-commerce Ecommerce is an agile and trusted business solution.












