forked from sqlmapproject/sqlmap
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
33 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/usr/bin/env python | ||
|
||
""" | ||
Copyright (c) 2006-2018 sqlmap developers (http://sqlmap.org/) | ||
See the file 'LICENSE' for copying permission | ||
""" | ||
|
||
import codecs | ||
import httplib | ||
|
||
from lib.core.settings import IS_WIN | ||
|
||
def dirtyPatches(): | ||
""" | ||
Place for "dirty" Python related patches | ||
""" | ||
|
||
# accept overly long result lines (e.g. SQLi results in HTTP header responses) | ||
httplib._MAXLINE = 1 * 1024 * 1024 | ||
|
||
# add support for inet_pton() on Windows OS | ||
if IS_WIN: | ||
from thirdparty.wininetpton import win_inet_pton | ||
|
||
# Reference: https://github.com/nodejs/node/issues/12786#issuecomment-298652440 | ||
codecs.register(lambda name: codecs.lookup("utf-8") if name == "cp65001" else None) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters