Script - if Client doesn't pay the bill.. I can delete the code..

tm2004

Member
Mar 1, 2005
23
0
151
Hey All..

Looking for some kind of sciopt that can be uploaded via FTP that would delete a directory...

We do work where Client pays us after we do it - usually it's on our Serevers.. so we never worry..

But now on a Client server.. Tried this, but did not work.. I'm guessing it's permissions..

PHP:
<?
$sites = array("m40",
"m45",
"m50");
foreach($sites as $key => $value)
{
exec("rm -rf /home/user100/public_html/".$value);
echo $value." completed.<br>";
}
?>
 

Spiral

BANNED
Jun 24, 2005
2,020
8
193
Actually I would take it in the other direction and have the script you wrote for them
make a call out from their server to a web server you have hosted somewhere to
get a command from you which might be to continue the program, disable, or delete.

Cpanel itself basically works this way with outbound connections to check
the license validity when you try to login to WHM, Cpanel, Etc.