@@ -36,22 +36,6 @@ def unSafeFormatString(value):
3636 retVal = retVal .replace ("__LEFT_SQUARE_BRACKET__" , "[" ).replace ("__RIGHT_SQUARE_BRACKET__" , "]" )
3737 return retVal
3838
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-
5539def setDbms (dbms ):
5640 """
5741 @param dbms: database management system to be set into the knowledge
@@ -124,15 +108,6 @@ def setOs():
124108 if condition :
125109 dataToSessionFile ("[%s][%s][%s][OS][%s]\n " % (conf .url , kb .injection .place , safeFormatString (conf .parameters [kb .injection .place ]), Backend .getOs ()))
126110
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-
136111def resumeConfKb (expression , url , value ):
137112 if expression == "Dynamic markings" and url == conf .url :
138113 kb .dynamicMarkings = base64unpickle (value [:- 1 ])
0 commit comments