@@ -36,22 +36,6 @@ def unSafeFormatString(value):
36
36
retVal = retVal .replace ("__LEFT_SQUARE_BRACKET__" , "[" ).replace ("__RIGHT_SQUARE_BRACKET__" , "]" )
37
37
return retVal
38
38
39
- def setDynamicMarkings (markings ):
40
- """
41
- Save information retrieved about dynamic markings to the
42
- session file.
43
- """
44
-
45
- condition = (
46
- ( not kb .resumedQueries
47
- or ( kb .resumedQueries .has_key (conf .url ) and
48
- not kb .resumedQueries [conf .url ].has_key ("Dynamic markings" )
49
- ) )
50
- )
51
-
52
- if condition :
53
- dataToSessionFile ("[%s][%s][%s][Dynamic markings][%s]\n " % (conf .url , None , None , base64pickle (markings )))
54
-
55
39
def setDbms (dbms ):
56
40
"""
57
41
@param dbms: database management system to be set into the knowledge
@@ -124,15 +108,6 @@ def setOs():
124
108
if condition :
125
109
dataToSessionFile ("[%s][%s][%s][OS][%s]\n " % (conf .url , kb .injection .place , safeFormatString (conf .parameters [kb .injection .place ]), Backend .getOs ()))
126
110
127
- def setXpCmdshellAvailability (available ):
128
- condition = (
129
- not kb .resumedQueries or ( kb .resumedQueries .has_key (conf .url ) and
130
- not kb .resumedQueries [conf .url ].has_key ("xp_cmdshell availability" ) )
131
- )
132
-
133
- if condition :
134
- dataToSessionFile ("[%s][%s][%s][xp_cmdshell availability][%s]\n " % (conf .url , kb .injection .place , safeFormatString (conf .parameters [kb .injection .place ]), str (available ).lower ()))
135
-
136
111
def resumeConfKb (expression , url , value ):
137
112
if expression == "Dynamic markings" and url == conf .url :
138
113
kb .dynamicMarkings = base64unpickle (value [:- 1 ])
0 commit comments