mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 14:55:40 +00:00
Adding new 3rd party library
This commit is contained in:
parent
dc20c4f058
commit
95a28f2701
5 changed files with 958 additions and 4 deletions
6
thirdparty/ansistrm/ansistrm.py
vendored
6
thirdparty/ansistrm/ansistrm.py
vendored
|
|
@ -6,12 +6,12 @@
|
|||
import logging
|
||||
import os
|
||||
import re
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
from lib.core.convert import stdoutencode
|
||||
from lib.core.settings import IS_WIN
|
||||
|
||||
if subprocess.mswindows:
|
||||
if IS_WIN:
|
||||
import ctypes
|
||||
import ctypes.wintypes
|
||||
|
||||
|
|
@ -74,7 +74,7 @@ class ColorizingStreamHandler(logging.StreamHandler):
|
|||
except:
|
||||
self.handleError(record)
|
||||
|
||||
if not subprocess.mswindows:
|
||||
if not IS_WIN:
|
||||
def output_colorized(self, message):
|
||||
self.stream.write(message)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue