Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $testo = shell_exec("find /mnt/c/ -name 'desktop.ini'");
- $file = fopen("result.txt", "w");
- fwrite($file, $testo);
- fclose($file);
- $lettura = file("result.txt");
- foreach ($lettura as $directory)
- {
- if(strpos(" ", $directory)
- $directory = str_replace(" ", "\ ", $directory);
- shell_exec("rm -f " . $directory);
- echo "deleted " . $directory . "\n";
- }
- echo "\nRabbit eliminato\n";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement