Advertisement
KiLL3r-Dz

ExTrAcT Users From /etc/passwd

Dec 9th, 2012
509
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.70 KB | None | 0 0
  1. <?php
  2.  
  3.     /*
  4.         Coded By Matlo3a-Dz
  5.         Algerian Hacker & Programmer
  6.         Special Greetz To : DamaneDz - Over-X - Lagrip-Dz - Black-ID & All sec4ever Members
  7.         Home : Sec4ever.com
  8.         Note : Don't Hijack Copyright :D
  9.     */
  10.    
  11. echo '
  12. <title> ExTrAcT Users From /etc/passwd #@! By Matlo3a-Dz </title>
  13. <style type="text/css">
  14. .dz1 { color:red; font-family:Arial; font-weight:bold;}
  15. .dz2 { color:skyblue; font-family:Arial; font-weight:bold; font-size: 12px;}
  16. body {
  17. BACKGROUND-COLOR: #2D3505
  18. }
  19. textarea {
  20. BACKGROUND-COLOR: #697430;
  21. COLOR: #FFFFFF;
  22. BORDER: #E3FF50 1px solid;
  23. }
  24. input {
  25. BORDER:  #E3FF50 1px solid;
  26. BACKGROUND-COLOR: #697430;
  27. COLOR: skyblue;
  28. font: 8pt Tahoma;
  29. font-weight : bold;
  30. }
  31. </style>
  32. ';
  33. echo '
  34. <form method="POST" action="">
  35. <center><br />
  36. <font class="dz1"> ExTrAcT Users From /etc/passwd </font><br /><br />
  37. <font class="dz2"> Put The Contain of /etc/passwd in textarea below </font>
  38. <br /><br />
  39. <textarea name="passwd" cols="85" rows="20"></textarea><br /><br />
  40. <input type="submit" name="go" value="Extract">
  41. <center>
  42. </form>
  43. ';
  44. $get = explode("\n",$_POST['passwd']);
  45. if($_POST['go']){
  46. $open = fopen ("users.txt",'w+') or die ("Can't Open A New File :$");
  47. foreach($get as $gets){
  48. $user = explode(':',$gets);
  49. $users = $user[0]."\n";
  50. fwrite($open,$users);
  51. flush();
  52. }
  53. echo "<br /><tr><td><font style='font: 9pt Tahoma; COLOR: #FFFFFF;font-weight:bold;'>Done With Success <a style='text-decoration: none;color:red;' href='users.txt'>users.txt</a></font></td><td><br/><br/>";
  54. fclose($open);
  55. }
  56. echo "<br /><span style=\"color:#FFFFFF; font: 9px Tahoma; font-weight:bold;\"> Coded By <span style=\"color:red;\">Matlo3a-Dz</span> &copy; Sec4Ever.com </span></center>";
  57.  
  58. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement