mirror of
https://github.com/mgeeky/Penetration-Testing-Tools.git
synced 2024-11-21 18:11:37 +01:00
12 lines
328 B
JavaScript
12 lines
328 B
JavaScript
let ipAddresses = [];
|
|
|
|
var oRTCIceGatherer = new RTCIceGatherer({ "gatherPolicy": "all", "iceServers": [] });
|
|
oRTCIceGatherer.onlocalcandidate = function (oEvent) {
|
|
if(oEvent.candidate.type == "host") {
|
|
ipAddresses.push(oEvent.candidate.ip);
|
|
}
|
|
};
|
|
|
|
setTimeout(function() {
|
|
console.log(ipAddresses.toString());
|
|
}, 500); |