Advertisement
Bayz21

Auto Create Random Subdo

May 20th, 2018
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.93 KB | None | 0 0
  1. <html>
  2. <style type="text/css">
  3. html {
  4.     text-align: center;
  5. }
  6. a {
  7.     text-decoration: none;
  8.     color: black;
  9. }
  10. </style>
  11. <h1>Auto Generate Random Subdomains</h1><br>
  12. <h4>Coded By : Bayz21</h4><br>
  13. <form method="post">
  14. Target: <br>
  15. <input type="text" name="dom" size="50" height="10" placeholder="sontolo.com" style="margin: 5px auto; padding-left: 5px;"><br>
  16. Nama File : <br>
  17. <input type="text" name="file" size="50" height="10" placeholder="Nama File" style="margin: 5px auto; padding-left: 5px;"><br>
  18. <input type="submit" name="x" style="width: 150px; height: 25px; margin: 5px;" value="hajar">
  19. </form>
  20. </html>
  21.  
  22.  
  23. <?php
  24. if($_POST['x']){
  25. $file = $_POST['file'];
  26. $dom = $_POST['dom'];
  27. for ($n=0; $n<999999; $n++) {
  28.     $randomNum=substr(str_shuffle("0123456789abcdefghijklmnopqrstvwxyz"), 0, 24);
  29. $mbut = "http://" . $randomNum. "." .$dom . "
  30. ";
  31.   $fh = fopen("$file", "a");
  32.         fwrite($fh, $mbut, strlen($mbut));
  33.  
  34. }
  35. }
  36.  
  37. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement