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

Bug with sqlmaps API? #5669

Closed
preposing opened this issue Mar 29, 2024 · 2 comments
Closed

Bug with sqlmaps API? #5669

preposing opened this issue Mar 29, 2024 · 2 comments
Assignees
Labels

Comments

@preposing
Copy link

preposing commented Mar 29, 2024

was playing around with the API and while doing a scan on a site I got the error bellow, its very possible my sqlmap is just outdated:

Running version: 1.8.3.13#dev
Python version: 3.10.12
Operating system: Linux-6.5.0-26-generic-x86_64-with-glibc2.35
Command line: sqlmap.py --api -c /tmp/sqlmapconfig-xxwbno2q
Technique: BOOLEAN
Back-end DBMS: Oracle (fingerprinted)
Traceback (most recent call last):
  File "lib/controller/action.py", line 107, in action
    conf.dumper.dbs(conf.dbmsHandler.getDbs())
  File "plugins/generic/databases.py", line 204, in getDbs
    raise SqlmapNoneDataException(errMsg)
lib.core.exception.SqlmapNoneDataException: unable to retrieve the database names

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "sqlmap.py", line 222, in main
    start()
  File "lib/core/decorators.py", line 80, in _
    result = f(*args, **kwargs)
  File "lib/controller/controller.py", line 732, in start
    action()
  File "lib/controller/action.py", line 109, in action
    logger.critical(ex)
  File "/usr/lib/python3.10/logging/__init__.py", line 1524, in critical
    self._log(CRITICAL, msg, args, **kwargs)
  File "/usr/lib/python3.10/logging/__init__.py", line 1624, in _log
    self.handle(record)
  File "/usr/lib/python3.10/logging/__init__.py", line 1634, in handle
    self.callHandlers(record)
  File "/usr/lib/python3.10/logging/__init__.py", line 1696, in callHandlers
    hdlr.handle(record)
  File "/usr/lib/python3.10/logging/__init__.py", line 968, in handle
    self.emit(record)
  File "lib/utils/api.py", line 279, in emit
    conf.databaseCursor.execute("INSERT INTO logs VALUES(NULL, ?, ?, ?, ?)", (conf.taskid, time.strftime("%X"), record.levelname, record.msg % record.args if record.args else record.msg))
  File "lib/utils/api.py", line 110, in execute
    self.cursor.execute(statement, arguments)
sqlite3.InterfaceError: Error binding parameter 3 - probably unsupported type.
@Aridhi-Dhia-eddine
Copy link

can you send the request here?

stamparm added a commit that referenced this issue Mar 29, 2024
@stamparm
Copy link
Member

Unable to reproduce. Nonetheless, made a "patch"

@stamparm stamparm self-assigned this Mar 29, 2024
googlesky pushed a commit to googlesky/sqlmap that referenced this issue Apr 2, 2024
* Patch related to the sqlmapproject#4137

* Patch related to the sqlmapproject#5669

---------

Co-authored-by: Miroslav Stampar <miroslav.stampar@gmail.com>
googlesky pushed a commit to googlesky/sqlmap that referenced this issue Apr 3, 2024
* Patch related to the sqlmapproject#4137

* Patch related to the sqlmapproject#5669

---------

Co-authored-by: Miroslav Stampar <miroslav.stampar@gmail.com>
googlesky pushed a commit to googlesky/sqlmap that referenced this issue Apr 5, 2024
* Patch related to the sqlmapproject#4137

* Patch related to the sqlmapproject#5669

---------

Co-authored-by: Miroslav Stampar <miroslav.stampar@gmail.com>
googlesky pushed a commit to googlesky/sqlmap that referenced this issue Apr 8, 2024
* Patch related to the sqlmapproject#4137

* Patch related to the sqlmapproject#5669

* fixed: sqlite3.OperationalError: table logs already exists (sqlmapproject#5677)

CREATE TABLE IF NOT EXISTS

---------

Co-authored-by: Miroslav Stampar <miroslav.stampar@gmail.com>
Co-authored-by: G3G4X5X6 <87740076+G3G4X5X6@users.noreply.github.com>
googlesky pushed a commit to googlesky/sqlmap that referenced this issue Apr 9, 2024
* Patch related to the sqlmapproject#4137

* Patch related to the sqlmapproject#5669

* fixed: sqlite3.OperationalError: table logs already exists (sqlmapproject#5677)

CREATE TABLE IF NOT EXISTS

* Removing some obsolete code

* Minor patch

---------

Co-authored-by: Miroslav Stampar <miroslav.stampar@gmail.com>
Co-authored-by: G3G4X5X6 <87740076+G3G4X5X6@users.noreply.github.com>
googlesky pushed a commit to googlesky/sqlmap that referenced this issue Apr 14, 2024
* Patch related to the sqlmapproject#4137

* Patch related to the sqlmapproject#5669

* fixed: sqlite3.OperationalError: table logs already exists (sqlmapproject#5677)

CREATE TABLE IF NOT EXISTS

* Removing some obsolete code

* Minor patch

* chore: remove repetitive words (sqlmapproject#5687)

Signed-off-by: laterlaugh <manziwenzhai@sina.cn>

* Trivial update

* Proper patch for sqlmapproject#5688

* Patching some resource-related warnings

---------

Signed-off-by: laterlaugh <manziwenzhai@sina.cn>
Co-authored-by: Miroslav Stampar <miroslav.stampar@gmail.com>
Co-authored-by: G3G4X5X6 <87740076+G3G4X5X6@users.noreply.github.com>
Co-authored-by: laterlaugh <166613655+laterlaugh@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants