From 68a4c9296b9fff27840fde00e040638142c5f39a Mon Sep 17 00:00:00 2001 From: Ethan Date: Wed, 11 Aug 2021 20:40:39 +0100 Subject: [PATCH] Backwards compatibility for Python 2 --- File Inclusion/phpinfolfi.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/File Inclusion/phpinfolfi.py b/File Inclusion/phpinfolfi.py index 2f4cc8e..c369232 100644 --- a/File Inclusion/phpinfolfi.py +++ b/File Inclusion/phpinfolfi.py @@ -1,7 +1,9 @@ #!/usr/bin/python # https://www.insomniasec.com/downloads/publications/LFI%20With%20PHPInfo%20Assistance.pdf +# The following line is not required but supposedly optimizes code. +# However, this breaks on some Python 2 installations, where the future module version installed is > 0.16. This can be a pain to revert. +# from builtins import range from __future__ import print_function -from builtins import range import sys import threading import socket