Advertisement
Guest User

Untitled

a guest
Apr 7th, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.63 KB | None | 0 0
  1. <?php
  2. $rand231=mt_rand(1,100);
  3. if($rand231>10000) {header("Location: http://track.beneguy.com/r1.php");
  4. exit;
  5. }
  6. ?>
  7. <script type="text/javascript">
  8. (function(p,u,s,h){
  9. p._pcq=p._pcq||[];
  10. p._pcq.push(['_currentTime',Date.now()]);
  11. s=u.createElement('script');
  12. s.type='text/javascript';
  13. s.async=true;
  14. s.src='https://cdn.pushcrew.com/js/075396e6ee9aaef91796d7b5721f6baf.js';
  15. h=u.getElementsByTagName('script')[0];
  16. h.parentNode.insertBefore(s,h);
  17. })(window,document);
  18. </script><?php
  19. $servername = "localhost";
  20. $username = "admin_beneguy";
  21. $password = "AArx4VRVB1";
  22. $dbname = "admin_beneguy";
  23.  
  24.  
  25. $crawlers_agents = array(
  26. 'Bot',
  27. 'Bloglines subscribe',
  28. 'DumbotSosoimagespider',
  29. 'QihooBot',
  30. 'FAST-WebCrawler',
  31. 'Superdownloads Spiderman',
  32. 'LinkWalker',
  33. 'msnbot',
  34. 'ASPSeek',
  35. 'WebAlta Crawler',
  36. 'Lycos',
  37. 'FeedFetcher-Google',
  38. 'Yahoo',
  39. 'YoudaoBot',
  40. 'AdsBot-Google',
  41. 'Googlebot',
  42. 'Scooter',
  43. 'Gigabot',
  44. 'Charlotte',
  45. 'eStyle',
  46. 'AcioRobot',
  47. 'GeonaBot',
  48. 'msnbot-media',
  49. 'Baidu',
  50. 'CocoCrawler',
  51. 'Google',
  52. 'Charlotte t',
  53. 'Yahoo! Slurp China',
  54. 'Sogou web spider',
  55. 'YodaoBot',
  56. 'MSRBOT',
  57. 'AbachoBOT',
  58. 'Sogou head spider',
  59. 'AltaVista',
  60. 'IDBot',
  61. 'Sosospider',
  62. 'Yahoo! Slurp',
  63. 'Java VM',
  64. 'DotBot',
  65. 'LiteFinder',
  66. 'Yeti',
  67. 'Rambler',
  68. 'Scrubby',
  69. 'Baiduspider',
  70. 'accoona');
  71.  
  72. foreach($crawlers_agents as $crawler){
  73. if (stripos(strtolower($_SERVER['HTTP_USER_AGENT']),trim($crawler)) !== false){
  74. echo "Page not found"; exit;
  75. }
  76. }
  77.  
  78. $conn = new mysqli($servername, $username, $password, $dbname);
  79. // Check connection
  80. if ($conn->connect_error) {
  81. die("Connection failed: " . $conn->connect_error);
  82. }
  83.  
  84. $sql = "SELECT * FROM landing group by page order by domain, page";
  85. $result = $conn->query($sql);
  86.  
  87. if ($result->num_rows > 0) {
  88. // output data of each row
  89. while($row = $result->fetch_assoc()) {
  90.  
  91. $sql_view = "SELECT * FROM landing WHERE page = '".$row['page']."' and action = 'view' ";
  92. $result_view = $conn->query($sql_view);
  93. $sql_click = "SELECT * FROM landing WHERE page = '".$row['page']."' and action = 'click' ";
  94. $result_click = $conn->query($sql_click);
  95.  
  96. $pagesi[$row['page']]=$result_click->num_rows / $result_view->num_rows;
  97.  
  98.  
  99.  
  100.  
  101. } array_multisort($pagesi, SORT_DESC, SORT_STRING); print_r($pagesi);exit;?>
  102. </tr>
  103. <?php
  104. } else {
  105. echo "0 results";
  106. }
  107.  
  108.  
  109. $rand=mt_rand(1,9);
  110.  
  111. if(!isset($_COOKIE["page2"])) {
  112. setcookie("page2", "2", time() + (86400 * 30), "/"); // 86400 = 1 day
  113. $rand=1;
  114. }else{
  115. setcookie("page2", $_COOKIE["page2"]+1, time() + (86400 * 30), "/"); // 86400 = 1 day
  116. $rand=$_COOKIE["page2"];
  117. }
  118. if ($_COOKIE["page2"]>8) setcookie("page2", 1, time() + (86400 * 30), "/"); // 86400 = 1 day
  119.  
  120.  
  121.  
  122.  
  123. $domain=$_SERVER['HTTP_HOST'];
  124. $domain=str_ireplace("www.", "", $domain);
  125.  
  126.  
  127.  
  128.  
  129. $sql = "INSERT INTO landing (ip, domain, action,page,user_agent)
  130. VALUES ('".$_SERVER['REMOTE_ADDR']."', '".$domain."','view','landing".$rand.".html','".$_SERVER['HTTP_USER_AGENT']."')";
  131.  
  132. if ($conn->query($sql) !== TRUE) {
  133. echo "Error: " . $sql . "<br>" . $conn->error;
  134. }
  135.  
  136. $conn->close();
  137.  
  138.  
  139.  
  140. $content=file_get_contents("./landing".$rand.".html");
  141. $content=str_ireplace("http://track", "/tr.php?page=landing".$rand.".html&url=http://track", $content);
  142. echo $content;
  143. ?>
  144.  
  145. <!--<script type="text/javascript">
  146. (function(p,u,s,h){
  147. p._pcq=p._pcq||[];
  148. p._pcq.push(['_currentTime',Date.now()]);
  149. s=u.createElement('script');
  150. s.type='text/javascript';
  151. s.async=true;
  152. s.src='https://cdn.pushcrew.com/js/5129848b3fa34a5aa8affae29b75711e.js';
  153. h=u.getElementsByTagName('script')[0];
  154. h.parentNode.insertBefore(s,h);
  155. })(window,document);
  156. </script>
  157. -->
  158. <!--<script type="text/javascript">
  159. (function(p,u,s,h){
  160. p._pcq=p._pcq||[];
  161. p._pcq.push(['_currentTime',Date.now()]);
  162. s=u.createElement('script');
  163. s.type='text/javascript';
  164. s.async=true;
  165. s.src='https://cdn.pushcrew.com/js/5129848b3fa34a5aa8affae29b75711e.js';
  166. h=u.getElementsByTagName('script')[0];
  167. h.parentNode.insertBefore(s,h);
  168. })(window,document);
  169. </script>-->
  170.  
  171.  
  172.  
  173. <!--<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script><link href="style/stylecss3334.css" rel="stylesheet" type="text/css" />
  174. <div class="ivo-popup-wrap">
  175. <div class="ivo-popup-in">
  176. <div class="ivo-popup-table">
  177. <div class="ivo-popup-cell">
  178. <div class="ivo-popup">
  179. <div class="ivo-popup-close"></div>
  180. <div class="ivo-popup-header">SKIP THE VERIFICATION!</div>
  181. <p>HERE IS YOUR BACKDOOR <br>
  182. ACCESS TO THE INSIDER SECRETS</p>
  183. <form action="https://extramarketer.com/index.php/lists/rv210wndy2d8b/subscribe" method="post" accept-charset="utf-8" target="_blank">
  184. <div class="ivo-popup-input">
  185. <input type="email" required placeholder="Enter your best email here" autofocus name="EMAIL">
  186. </div>
  187. <div class="ivo-popup-submit">
  188. <button type="submit" onClick="setTimeout(function() {
  189. window.location = '/tr.php?page=landing<?php echo $rand?>.html&url=http://www.beneguy.com';}, 1000)">CLICK HERE TO CONTINUE</button>
  190. </div>
  191. </form>
  192. </div>
  193. </div>
  194. </div>
  195. </div>
  196. </div>
  197. <script>
  198. $(document).ready(function()
  199. {
  200. var leave = 0;
  201. $(document).mouseleave(function() {
  202. if(leave == 0){
  203. $('.ivo-popup-wrap').fadeIn(300);
  204. }
  205. leave = 1
  206. });
  207.  
  208. $('.ivo-popup-close').click(function(){
  209. $('.ivo-popup-wrap').fadeOut(300);
  210. });
  211.  
  212. });
  213. </script>-->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement