From c5e623b2b82df725169eebcc287ee7c44935fa9e Mon Sep 17 00:00:00 2001 From: Sundar Karthik S <sundar1007karthik@gmail.com> Date: Fri, 12 Apr 2024 19:52:18 +0530 Subject: [PATCH] updated readfp to read_file as it is outdated --- lib/parse/configfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/parse/configfile.py b/lib/parse/configfile.py index 006537888..258717c59 100644 --- a/lib/parse/configfile.py +++ b/lib/parse/configfile.py @@ -68,7 +68,7 @@ def configFileParser(configFile): try: config = UnicodeRawConfigParser() - config.readfp(configFP) + config.read_file(configFP) except Exception as ex: errMsg = "you have provided an invalid and/or unreadable configuration file ('%s')" % getSafeExString(ex) raise SqlmapSyntaxException(errMsg)