hunk.code_window:             return True
           else:
               return False
       def xpCmdshellForgeCmd(self, cmd):
           return "EXEC %s '%s'" % (self.xpCmdshellStr, cmd)
       def xpCmdshellExecCmd(self, cmd, silent=False, forgeCmd=False):
           if forgeCmd:
               cmd = self.xpCmdshellForgeCmd(cmd)
  
hunk.labels: keep keep keep keep keep replace keep keep keep keep
hunk.after_edit:         forgedCmd = "EXEC %s '%s'" % (self.xpCmdshellStr, cmd)
           forgedCmd = urlencode(forgedCmd, convall=True)
           return forgedCmd
  
hunk.file_path: lib/takeover/xp_cmdshell.py
hunk.type: replace
file: <?xml version="1.0" encoding="UTF-8"?>
  
  <!--
       References:
       * http://www.http-stats.com/Set-Cookie2
       * http://www.owasp.org/index.php/Category:OWASP_Cookies_Database
  -->
  
  <root>
      <regexp value="ASPSESSIONID">
          <info technology="ASP" type="Windows" distrib="2000"/>
      </regexp>
  
      <regexp value="ASP\.NET_SessionId">
          <info technology="ASP.NET" type="Windows" distrib="2003|2008"/>
      </regexp>
  
      <regexp value="JSESSIONID">
          <info technology="JSP"/>
      </regexp>
  
      <regexp value="PHPSESSION">
          <info technology="PHP"/>
      </regexp>
  
      <regexp value="Apache">
          <info technology="Apache"/>
      </regexp>
  
      <regexp value="JServSessionId">
          <info technology="Apache|JSP"/>
      </regexp>
  </root>
  