From c237ac0d2e5feab2c36099a777e0db87708460c4 Mon Sep 17 00:00:00 2001 From: Siddharth Dushantha Date: Tue, 29 Apr 2025 09:42:11 +0200 Subject: [PATCH] Remove trailing forwardslash Many users may copy the URL from their web browser which results in the URL containing a trailing forwardslash. If this is included in the URL when making the request to the API endpoints the correct data wont be returned. --- exploit.rb | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/exploit.rb b/exploit.rb index bb8c0f0..92d4f1f 100644 --- a/exploit.rb +++ b/exploit.rb @@ -130,11 +130,12 @@ def display_config(root_url, http) args = Docopt.docopt(doc) Paint.mode = 0 if args['--no-color'] puts args if args['--debug'] - + + url = args[''].sub(/\/\z/, '') http = HTTPX - display_users(args[''], http) + display_users(url, http) puts - display_config(args[''], http) + display_config(url, http) rescue Docopt::Exit => e puts e.message -end \ No newline at end of file +end