This script removes all files within the current folder.
Php
code posted
by
D9
created at 12 Aug 12:19
Edit
|
Back
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
<?php /* * This script removes all files within the current folder. * Yes, it will delete itself also! * Use with caution! */ $path = `pwd`; echo "<h1>Remove all files within $path?</h1>"; if( isset($_GET['confirm']) && $_GET['confirm']==1 ) { echo '<pre>'; echo `rm -fRv $path/*`."\n"; echo `rm -fRv $path/.*`."\n"; echo '</pre>'; } else { echo '<p><a href="'.$_SERVER['PHP_SELF'].'?confirm=1">Continue</a></p>'; } ?> |
502 Bytes in 2 ms with coderay