Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhandled exception (#d3812e45) #3560

Closed
sqlmapreporter opened this Issue Mar 30, 2019 · 0 comments

Comments

Projects
None yet
2 participants
@sqlmapreporter
Copy link

sqlmapreporter commented Mar 30, 2019

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'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.