From 7840dd845a20f596e4adf8e53c8a31460ac7ff71 Mon Sep 17 00:00:00 2001 From: azuax Date: Mon, 30 Sep 2024 16:42:05 -0300 Subject: [PATCH 1/2] Fix for managing HEADERS variables passed in config.py file --- main.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 main.py diff --git a/main.py b/main.py old mode 100644 new mode 100755 From 5cd734e2f10e67ad0d595afb6575a657871a2b3e Mon Sep 17 00:00:00 2001 From: azuax Date: Mon, 30 Sep 2024 16:47:38 -0300 Subject: [PATCH 2/2] Fix for managing HEADERS variables passed in config.py file --- main.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 3973fae..ea0597a 100755 --- a/main.py +++ b/main.py @@ -87,6 +87,11 @@ def main(): for header in options.header: key, value = header.split(": ") headers[key] = value + + # Read configuration headers + for header in conf.HEADERS: + headers[header] = conf.HEADERS[header] + g = GRAPHW00F(follow_redirects=options.followredirect, headers=headers, cookies=conf.COOKIES, @@ -170,4 +175,4 @@ def main(): if __name__ == '__main__': main() - \ No newline at end of file +