Advertisement
Guest User

Rubber Ducky Hacked Together Script - mandatory

a guest
Aug 13th, 2013
1,397
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.60 KB | None | 0 0
  1. <?php
  2. if(!empty($argv[1]))
  3. {
  4.     $handle = @fopen($argv[1], "r");
  5.     $androidFile = "DELAY 5000\n";
  6.     if ($handle) {
  7.         while (($buffer = fgets($handle, 4096)) !== false) {
  8.             if($buffer != "")
  9.             {
  10.                 $androidFile .= "STRING ".trim($buffer)."\n";
  11.                 $androidFile .= "DELAY 1000\n";
  12.                 $androidFile .= "ENTER\n";
  13.                 $androidFile .= "ENTER\n";
  14.             }
  15.         }
  16.         if (!feof($handle)) {
  17.             echo "Error: unexpected fgets() fail\n";
  18.         }
  19.         fclose($handle);
  20.     }
  21.  
  22.     file_put_contents("android_wordlist.txt", $androidFile);
  23.     echo "DONE\n";
  24. }
  25.  
  26. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement