Skip to content

Unhandled exception (#ec68d085) #4541

@sqlmapreporter

Description

@sqlmapreporter
Running version: 1.5.1.6#dev
Python version: 3.6.8
Operating system: Linux-4.11.8-1.el7.elrepo.x86_64-x86_64-with-centos-7.9.2009-Core
Command line: sqlmap.py -u ********************************************** --random-agent --time-sec 5 --batch -v 3 --dbms=mssql --os-shell
Technique: STACKED
Back-end DBMS: Microsoft SQL Server (fingerprinted)
Traceback (most recent call last):
  File "sqlmap.py", line 216, in main
    start()
  File "lib/core/decorators.py", line 78, in _
    result = f(*args, **kwargs)
  File "lib/controller/controller.py", line 703, in start
    action()
  File "lib/controller/action.py", line 221, in action
    conf.dbmsHandler.osShell()
  File "plugins/generic/takeover.py", line 99, in osShell
    self.shell()
  File "lib/takeover/abstraction.py", line 162, in shell
    self.runCmd(command)
  File "lib/takeover/abstraction.py", line 98, in runCmd
    output = self.evalCmd(cmd)
  File "lib/takeover/abstraction.py", line 78, in evalCmd
    retVal = self.xpCmdshellEvalCmd(cmd, first, last)
  File "lib/takeover/xp_cmdshell.py", line 205, in xpCmdshellEvalCmd
    inject.goStacked(self.xpCmdshellForgeCmd(cmd, self.cmdTblName))
  File "lib/takeover/xp_cmdshell.py", line 169, in xpCmdshellForgeCmd
    self._cmd = "0x%s" % encodeHex(cmd, binary=False)
  File "lib/core/convert.py", line 181, in encodeHex
    value = value.encode(UNICODE_ENCODING)
UnicodeEncodeError: 'utf-8' codec can't encode characters in position 9-12: surrogates not allowed

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions