reversemap icon indicating copy to clipboard operation
reversemap copied to clipboard

Unexpected keyword argument 'flags'

Open Nassz opened this issue 7 years ago • 2 comments

Processing line 0 of ./access.log and writing to ./logTraceback (most recent call last): File "./reversemap.py", line 91, in deobfuscated = deobfuscate(url) File "./reversemap.py", line 42, in deobfuscate decodedurl = re.sub(sqlkeyword, unescapedsqlkeyword, decodedurl, count=0, flags=re.IGNORECASE) TypeError: sub() got an unexpected keyword argument 'flags'

Nassz avatar Sep 24 '17 16:09 Nassz

Can you share some more information like:

  • Python version
  • The file you are trying to parse
  • Sample log file

z00nx avatar Sep 25 '17 03:09 z00nx

Python 2.6.6 (r266:84292, Aug 18 2016, 15:13:37)

Nginx Access log

8.8.8.8 - - [24/Sep/2017:09:07:46 -0400] "POST /push HTTP/1.0" 200 556 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/601.6.14 (KHTML 26 , like Gecko) Version/9.1.1 Safari/601.6.14" "8.8.8.8, 8.8.8.8"

Nassz avatar Sep 25 '17 17:09 Nassz