From 03543fd0a8371deae1c64d3f5f5b3950ac25983f Mon Sep 17 00:00:00 2001 From: AKSHAY ARJUN <68991993+Akshay-Arjun@users.noreply.github.com> Date: Sun, 25 Dec 2022 00:17:11 +0530 Subject: [PATCH 1/2] Change URI.unescape to URI.decode_www_form_component URI.unescape is deprecated --- tools/bettercap/lib/bettercap/proxy/stream_logger.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/bettercap/lib/bettercap/proxy/stream_logger.rb b/tools/bettercap/lib/bettercap/proxy/stream_logger.rb index 91d7730..5ebe343 100644 --- a/tools/bettercap/lib/bettercap/proxy/stream_logger.rb +++ b/tools/bettercap/lib/bettercap/proxy/stream_logger.rb @@ -86,7 +86,7 @@ def self.dump_form( request ) name, value = v.split('=') name ||= '' value ||= '' - msg << " #{name.blue} : #{URI.unescape(value).yellow}\n" + msg << " #{name.blue} : #{URI.decode_www_form_component(value).yellow}\n" end msg end From f9265b867d25f5e41845bc23ccfd828c8d11ed62 Mon Sep 17 00:00:00 2001 From: AKSHAY ARJUN <68991993+Akshay-Arjun@users.noreply.github.com> Date: Mon, 26 Dec 2022 20:10:26 +0530 Subject: [PATCH 2/2] Update xerosploit.py --- xerosploit.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xerosploit.py b/xerosploit.py index 938b44d..8b43ecb 100755 --- a/xerosploit.py +++ b/xerosploit.py @@ -771,11 +771,12 @@ def deface(): content = """""" - f1 = open('/home/home/xero-html.html','w') + make_directory = os.system("mkdir -p /opt/xerosploit/xerodeface") + f1 = open('/opt/xerosploit/xerodeface/xero-html.html','w') f1.write(content) f1.close() - cmd_inject = os.system("xettercap " + target_parse + target_ips + " --proxy-module=/opt/xerosploit/tools/bettercap/lib/bettercap/proxy/http/modules/injecthtml.rb --js-file /home/home/xero-html.html -I " + up_interface + " --gateway " + gateway ) + cmd_inject = os.system("xettercap " + target_parse + target_ips + " --proxy-module=/opt/xerosploit/tools/bettercap/lib/bettercap/proxy/http/modules/injecthtml.rb --js-file /opt/xerosploit/xerodeface/xero-html.html -I " + up_interface + " --gateway " + gateway ) deface() else: print("\033[1;91m\n[!] Error : Command not found.\033[1;m")