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 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")