Jump to content

[SOLVED] Script doesn't do anything


Lol5916

Recommended Posts

<?php
$l = file_get_contents("admin/admin.php");
$s = $_POST['rand'];
$pp = str_replace("replacethis", $s, $l);
$fw = fopen("admin/admin.php", "w");
fwrite ($fw, $pp); 
fclose($fw);
copy("admin/admin2.php",$s);
unlink("admin/admin2.php");
?>

 

EDIT:Now the only thing the script doesn't do is copy and delete the file, it just deletes it.

Link to comment
https://forums.phpfreaks.com/topic/121128-solved-script-doesnt-do-anything/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.