Skip to content

Unhandled exception (#d3812e45) #3560

@sqlmapreporter

Description

@sqlmapreporter
Running version: 1.3.3.56#dev
Python version: 2.7.16
Operating system: Windows-10-10.0.17134
Command line: sqlmap.py -u ************************************************************** --os-shell
Technique: UNION
Back-end DBMS: MySQL (fingerprinted)
Traceback (most recent call last):
  File "sqlmap.py", line 170, in main
    start()
  File "lib/core/decorators.py", line 53, in _
    result = f(*args, **kwargs)
  File "lib/controller/controller.py", line 666, in start
    action()
  File "lib/controller/action.py", line 204, in action
    conf.dbmsHandler.osShell()
  File "plugins/generic/takeover.py", line 83, in osShell
    self.initEnv(web=web)
  File "lib/takeover/abstraction.py", line 198, in initEnv
    self.webInit()
  File "lib/takeover/web.py", line 381, in webInit
    if not self.webUpload(backdoorName, posixToNtSlashes(directory) if Backend.isOs(OS.WINDOWS) else directory, content=backdoorContent):
  File "lib/takeover/web.py", line 102, in webUpload
    return self._webFileStreamUpload(stream, destFileName, directory)
  File "lib/takeover/web.py", line 123, in _webFileStreamUpload
    page, _, _ = Request.getPage(url=self.webStagerUrl, multipart=multipartParams, raise404=False)
  File "lib/request/connect.py", line 492, in getPage
    conn = _urllib.request.urlopen(req)
  File "/Python27/lib/urllib2.py", line 154, in urlopen
    return opener.open(url, data, timeout)
  File "/Python27/lib/urllib2.py", line 427, in open
    req = meth(req)
  File "thirdparty/multipart/multipartpost.py", line 67, in http_request
    boundary, data = self.multipart_encode(v_vars, v_files)
  File "thirdparty/multipart/multipartpost.py", line 90, in multipart_encode
    file_size = os.fstat(fd.fileno())[stat.ST_SIZE] if isinstance(fd, file) else fd.len
AttributeError: '_io.BytesIO' object has no attribute 'len'

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions