From 457757a1747ca9747c888af8c863cd02ea8051c8 Mon Sep 17 00:00:00 2001 From: Vasilij Schneidermann Date: Fri, 18 Oct 2019 01:47:30 +0200 Subject: [PATCH] Resolve symlinks to script path correctly (#23) Previously: If a symlink to autorecon.py is executed, the configuration directory is found relative to the current directory Now: The symlink is resolved and the configuration directory is found relative to the symlink target --- autorecon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 autorecon.py diff --git a/autorecon.py b/autorecon.py old mode 100644 new mode 100755 index d8323d9..a3852dc --- a/autorecon.py +++ b/autorecon.py @@ -34,7 +34,7 @@ global_patterns = [] username_wordlist = '/usr/share/seclists/Usernames/top-usernames-shortlist.txt' password_wordlist = '/usr/share/seclists/Passwords/darkweb2017-top100.txt' -rootdir = os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__))) +rootdir = os.path.dirname(os.path.realpath(__file__)) single_target = False only_scans_dir = False