sqlmapproject / sqlmapproject/sqlmap

I want the result of --sql-query to be saved as a CSV file.

Open
#5,424 9 comments 7 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request
Dominant language
Python
Stars
38.5k
Forks
6.4k
Avg merge
3d 3h
Merged PRs (30d)
1

Description

Hi! How are you doing? I don't know if I can make this request without a 1 dollar sponsor.
I would love to see sponsor marks on future my GitHub accounts.

As you may have noticed, the results of -D DB -T TB -C A,B --dump and --sql-query="SELECT A,B FROM DB.TB" are slightly different. The latter simply saves to the output and log file.

Currently, I want to save the results to a CSV file when the -D option is not available in SQLMAP (version detection failed [I'll try to debug it!]) or when using the ORDER BY syntax(with --sql-query).

Thank you as always. Dear Stampar👍🏼

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the --sql-query output path and compare it with the -D/-T/-C --dump path, including where output and log files are written. Determine how the requested CSV destination should work when -D is unavailable or ORDER BY is used; done means SQL query results can be saved as CSV without relying on database version detection.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli, security
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.