Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6b9d89 commit e33a48dCopy full SHA for e33a48d
1 file changed
lib/techniques/inband/union/use.py
@@ -74,10 +74,11 @@ def __oneShotUnionUse(expression, unpack=True):
74
75
def configUnion(char=None, columns=None):
76
def __configUnionChar(char):
77
- if char.isdigit() or char == "NULL" or char.startswith("[RANDNUM"):
78
- conf.uChar = char
79
- elif not char.startswith("'") or not char.endswith("'"):
80
- conf.uChar = "'%s'" % char
+ if isinstance(char, basestring):
+ if any([char.isdigit(), char == "NULL", char == "[RANDNUM]"]):
+ conf.uChar = char
+ else:
81
+ conf.uChar = "'%s'" % char.strip("'")
82
83
def __configUnionCols(columns):
84
columns = columns.replace(" ", "")
0 commit comments