diff --git a/extra/cloak/cloak.py b/extra/cloak/cloak.py index d1fe2db1f..d98f6d09d 100644 --- a/extra/cloak/cloak.py +++ b/extra/cloak/cloak.py @@ -7,6 +7,7 @@ Copyright (c) 2006-2018 sqlmap developers (http://sqlmap.org/) See the file 'LICENSE' for copying permission """ +from __future__ import print_function import os import sys import zlib diff --git a/extra/dbgtool/dbgtool.py b/extra/dbgtool/dbgtool.py index 1f5ff92ef..3dc07a836 100644 --- a/extra/dbgtool/dbgtool.py +++ b/extra/dbgtool/dbgtool.py @@ -7,6 +7,7 @@ Copyright (c) 2006-2018 sqlmap developers (http://sqlmap.org/) See the file 'LICENSE' for copying permission """ +from __future__ import print_function import os import sys import struct diff --git a/extra/mssqlsig/update.py b/extra/mssqlsig/update.py index d8d3da6bd..65876d09c 100644 --- a/extra/mssqlsig/update.py +++ b/extra/mssqlsig/update.py @@ -5,6 +5,7 @@ Copyright (c) 2006-2018 sqlmap developers (http://sqlmap.org/) See the file 'LICENSE' for copying permission """ +from __future__ import print_function import codecs import os import re diff --git a/extra/safe2bin/safe2bin.py b/extra/safe2bin/safe2bin.py index 96ae07e77..c4f9ac13f 100644 --- a/extra/safe2bin/safe2bin.py +++ b/extra/safe2bin/safe2bin.py @@ -7,6 +7,7 @@ Copyright (c) 2006-2018 sqlmap developers (http://sqlmap.org/) See the file 'LICENSE' for copying permission """ +from __future__ import print_function import binascii import re import string diff --git a/extra/shutils/duplicates.py b/extra/shutils/duplicates.py index af81cb9f6..d72c346a4 100755 --- a/extra/shutils/duplicates.py +++ b/extra/shutils/duplicates.py @@ -5,6 +5,7 @@ # Removes duplicate entries in wordlist like files +from __future__ import print_function import sys if len(sys.argv) > 0: diff --git a/extra/shutils/pylint.py b/extra/shutils/pylint.py index 62907c7bc..fa3bf1618 100755 --- a/extra/shutils/pylint.py +++ b/extra/shutils/pylint.py @@ -3,6 +3,7 @@ # Runs pylint on all python scripts found in a directory tree # Reference: http://rowinggolfer.blogspot.com/2009/08/pylint-recursively.html +from __future__ import print_function import os import re import sys diff --git a/extra/shutils/regressiontest.py b/extra/shutils/regressiontest.py index 66593266b..9a3217b3c 100755 --- a/extra/shutils/regressiontest.py +++ b/extra/shutils/regressiontest.py @@ -3,6 +3,7 @@ # Copyright (c) 2006-2018 sqlmap developers (http://sqlmap.org/) # See the file 'LICENSE' for copying permission +from __future__ import print_function import codecs import inspect import os diff --git a/extra/sqlharvest/sqlharvest.py b/extra/sqlharvest/sqlharvest.py index 3152c93d5..e7c34df96 100644 --- a/extra/sqlharvest/sqlharvest.py +++ b/extra/sqlharvest/sqlharvest.py @@ -5,6 +5,7 @@ Copyright (c) 2006-2018 sqlmap developers (http://sqlmap.org/) See the file 'LICENSE' for copying permission """ +from __future__ import print_function import cookielib import re import socket diff --git a/lib/core/threads.py b/lib/core/threads.py index 1b6e3af4d..97184fcdf 100644 --- a/lib/core/threads.py +++ b/lib/core/threads.py @@ -5,6 +5,7 @@ Copyright (c) 2006-2018 sqlmap developers (http://sqlmap.org/) See the file 'LICENSE' for copying permission """ +from __future__ import print_function import difflib import random import threading diff --git a/lib/parse/cmdline.py b/lib/parse/cmdline.py index 5a3b2d337..4393c43f7 100644 --- a/lib/parse/cmdline.py +++ b/lib/parse/cmdline.py @@ -5,6 +5,7 @@ Copyright (c) 2006-2018 sqlmap developers (http://sqlmap.org/) See the file 'LICENSE' for copying permission """ +from __future__ import print_function import os import re import shlex diff --git a/lib/request/dns.py b/lib/request/dns.py index 07ead1334..bec0b4334 100644 --- a/lib/request/dns.py +++ b/lib/request/dns.py @@ -5,6 +5,7 @@ Copyright (c) 2006-2018 sqlmap developers (http://sqlmap.org/) See the file 'LICENSE' for copying permission """ +from __future__ import print_function import os import re import socket diff --git a/lib/request/inject.py b/lib/request/inject.py index 32c3849ec..7c6550a05 100644 --- a/lib/request/inject.py +++ b/lib/request/inject.py @@ -5,6 +5,7 @@ Copyright (c) 2006-2018 sqlmap developers (http://sqlmap.org/) See the file 'LICENSE' for copying permission """ +from __future__ import print_function import re import time diff --git a/lib/takeover/abstraction.py b/lib/takeover/abstraction.py index ac7fb0085..f83d54cea 100644 --- a/lib/takeover/abstraction.py +++ b/lib/takeover/abstraction.py @@ -5,6 +5,7 @@ Copyright (c) 2006-2018 sqlmap developers (http://sqlmap.org/) See the file 'LICENSE' for copying permission """ +from __future__ import print_function import sys from extra.safe2bin.safe2bin import safechardecode diff --git a/lib/takeover/metasploit.py b/lib/takeover/metasploit.py index 0d026794f..9bd32e3d9 100644 --- a/lib/takeover/metasploit.py +++ b/lib/takeover/metasploit.py @@ -5,6 +5,7 @@ Copyright (c) 2006-2018 sqlmap developers (http://sqlmap.org/) See the file 'LICENSE' for copying permission """ +from __future__ import print_function import os import re import select diff --git a/lib/techniques/error/use.py b/lib/techniques/error/use.py index ef9f2c6ff..8ab3750d5 100644 --- a/lib/techniques/error/use.py +++ b/lib/techniques/error/use.py @@ -5,6 +5,7 @@ Copyright (c) 2006-2018 sqlmap developers (http://sqlmap.org/) See the file 'LICENSE' for copying permission """ +from __future__ import print_function import re import time diff --git a/lib/utils/api.py b/lib/utils/api.py index 82d48ea6c..a26ae982b 100644 --- a/lib/utils/api.py +++ b/lib/utils/api.py @@ -6,6 +6,7 @@ Copyright (c) 2006-2018 sqlmap developers (http://sqlmap.org/) See the file 'LICENSE' for copying permission """ +from __future__ import print_function import contextlib import httplib import logging diff --git a/lib/utils/hash.py b/lib/utils/hash.py index 4094fe9c9..8ed6abfe1 100644 --- a/lib/utils/hash.py +++ b/lib/utils/hash.py @@ -5,6 +5,7 @@ Copyright (c) 2006-2018 sqlmap developers (http://sqlmap.org/) See the file 'LICENSE' for copying permission """ +from __future__ import print_function try: from crypt import crypt except ImportError: diff --git a/plugins/generic/custom.py b/plugins/generic/custom.py index ccb284b0c..e56576dea 100644 --- a/plugins/generic/custom.py +++ b/plugins/generic/custom.py @@ -5,6 +5,7 @@ Copyright (c) 2006-2018 sqlmap developers (http://sqlmap.org/) See the file 'LICENSE' for copying permission """ +from __future__ import print_function import re import sys diff --git a/sqlmap.py b/sqlmap.py index bffa6c357..d03d99574 100755 --- a/sqlmap.py +++ b/sqlmap.py @@ -5,6 +5,7 @@ Copyright (c) 2006-2018 sqlmap developers (http://sqlmap.org/) See the file 'LICENSE' for copying permission """ +from __future__ import print_function import sys sys.dont_write_bytecode = True @@ -383,4 +384,4 @@ if __name__ == "__main__": main() else: # cancelling postponed imports (because of Travis CI checks) - from lib.controller.controller import start \ No newline at end of file + from lib.controller.controller import start