sqlmap/lib/utils
Piyush satyarthi cb5216564a
Close leaked sqlite3 connections (ResourceWarning on Python 3.13+) (#6181)
Python 3.13+ reports sqlite3 connections that are garbage collected
without being closed. The unit tests print a run of
"ResourceWarning: unclosed database" lines on Linux/CPython 3.14:

- SQLAlchemy.close() only returned its connection to the engine's
  pool, so the underlying DBAPI connection (e.g. sqlite3 for
  '-d sqlite://...') stayed open. Dispose the engine on close.
- vulnTest() used "with sqlite3.connect(...)", which commits but does
  not close the connection. Use contextlib.closing().
- test_multibit and test_sqlalchemy never closed what they opened.

Co-authored-by: PiyushSatyarthi <244159432+PiyushSatyarthi@users.noreply.github.com>
2026-11-12 09:46:10 +01:00
..
__init__.py
api.py Minor cleaning after #6146 2026-10-17 13:06:38 +02:00
bcrypt.py Minor refactoring 2026-07-09 09:56:51 +02:00
brotli.py Hardening Brotli/Zstandard decoding against hostile input 2026-07-25 09:59:53 +02:00
brute.py Fixing --common-columns for -T A,B 2026-07-28 16:42:37 +02:00
crawler.py Improved crawling 2026-07-25 19:10:58 +02:00
dbwire.py Adding embedded dbwire library 2026-07-12 10:32:57 +02:00
deps.py Some more patches for -d 2026-07-11 15:51:04 +02:00
dialect.py Improving dialect checks 2026-07-17 14:46:52 +02:00
getch.py
grpcweb.py Add experimental gRPC-Web (text) support 2026-07-17 23:38:34 +02:00
gui.py Improved --gui 2026-07-19 16:31:08 +02:00
har.py Fixes #6168 2026-11-02 11:13:40 +01:00
hash.py Fixes #6180 2026-11-10 15:10:16 +01:00
hashdb.py Switching from pickle to json for serialization 2026-07-08 12:13:49 +02:00
jwt.py Do not crash on a JWT with a non-base64url signature (fixes #6101) (#6102) 2026-09-01 10:24:58 +02:00
keysetdump.py Fixes #6097 2026-08-16 23:52:22 +02:00
library.py Adding support for import sqlmap as a library (#2083) 2026-07-02 09:58:48 +02:00
nonsql.py Minor patch 2026-08-08 01:07:07 +02:00
paraminer.py Adding switch --mine-params 2026-07-24 14:27:05 +02:00
pivotdumptable.py
progress.py Fixing --eta 2026-07-09 13:25:50 +02:00
prove.py Improved mechanism for --proof 2026-08-07 17:04:32 +02:00
purge.py
safe2bin.py Adding a minor comment 2026-07-28 21:58:51 +02:00
search.py Doing some cleaning for web search requests 2026-10-21 12:10:18 +02:00
sgmllib.py
sqlalchemy.py Close leaked sqlite3 connections (ResourceWarning on Python 3.13+) (#6181) 2026-11-12 09:46:10 +01:00
sqllint.py Minor update for SQLlinter 2026-07-12 20:27:37 +02:00
timeout.py
tui.py
versioncheck.py
wafbypass.py
xrange.py