Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $shellArr = file("shells.txt");
- $shellArr = array_unique($shellArr);
- $fixedShells = array();
- foreach ($shellArr as $shellStr)
- {
- $shellStr = str_replace("\r", "", $shellStr);
- $shellStr = str_replace("\n", "", $shellStr);
- if (!is_numeric($shellStr))
- {
- if (!empty($shellStr))
- {
- $fixedShells[] = $shellStr;
- }
- }
- }
- $fh = fopen("fixed.txt", "w");
- foreach ($fixedShells as $fixedShell)
- {
- fwrite($fh, $fixedShell . "\r\n");
- }
- fclose($fh);
- ?>
Add Comment
Please, Sign In to add comment