From a92d4d910c559a79ea12cb18fb864cadabfff464 Mon Sep 17 00:00:00 2001 From: Jack Walker Date: Mon, 6 Jul 2020 12:44:19 +1000 Subject: [PATCH 1/2] Fixed getElementById method being called on incorrect object causing looping failure. --- config.yaml | 2 +- modules/social_engineering/pretty_theft/command.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config.yaml b/config.yaml index d4d93e81b..64039f64f 100644 --- a/config.yaml +++ b/config.yaml @@ -18,7 +18,7 @@ beef: # Used by both the RESTful API and the Admin interface credentials: user: "beef" - passwd: "beef" + passwd: "beef1" # Interface / IP restrictions restrictions: diff --git a/modules/social_engineering/pretty_theft/command.js b/modules/social_engineering/pretty_theft/command.js index da5b9f3a1..cbd7a8255 100644 --- a/modules/social_engineering/pretty_theft/command.js +++ b/modules/social_engineering/pretty_theft/command.js @@ -93,9 +93,9 @@ beef.execute(function() { $j('#popup').remove(); $j('#darkenScreenObject').remove(); - }else if((uname1.length == 0 || pass1.length == 0) && valcheck == "true"){ + } else if((uname1.length == 0 || pass1.length == 0) && valcheck == "true") { // If user has not entered any data, reset button - document.body.lastChild.getElementById("buttonpress").value = "false"; + document.getElementById("buttonpress").value = "false"; alert("Please enter a valid username and password."); } } From a8606697e0a61c8dbcda7e4bfa61e089a043ddf8 Mon Sep 17 00:00:00 2001 From: Jack Walker Date: Mon, 6 Jul 2020 12:44:43 +1000 Subject: [PATCH 2/2] Reset creds --- config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.yaml b/config.yaml index 64039f64f..d4d93e81b 100644 --- a/config.yaml +++ b/config.yaml @@ -18,7 +18,7 @@ beef: # Used by both the RESTful API and the Admin interface credentials: user: "beef" - passwd: "beef1" + passwd: "beef" # Interface / IP restrictions restrictions: