Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add support for --rw-dirs <rwDirs> cmd line argumant / conf file option#1403

Closed
ejtaal wants to merge 1 commit intosqlmapproject:masterfrom
ejtaal:master
Closed

Add support for --rw-dirs <rwDirs> cmd line argumant / conf file option#1403
ejtaal wants to merge 1 commit intosqlmapproject:masterfrom
ejtaal:master

Conversation

@ejtaal
Copy link
Copy Markdown

@ejtaal ejtaal commented Sep 10, 2015

This allows one to fully automate commands where the default
upload directories cannot be used, as in:

$ sqlmap --batch --rw-dirs='/var/www/html/uploads' --os-cmd="ls;id"
-u 'http://nullbyte/kzMb5nVYJw/420search.php?usrtosearch=ramses'

option. This allows one to fully automate commands where the default
upload directories cannot be used, as in:

$ sqlmap --batch --rw-dirs='/var/www/html/uploads' --os-cmd="ls;id" \
	-u 'http://nullbyte/kzMb5nVYJw/420search.php?usrtosearch=ramses'
@stamparm
Copy link
Copy Markdown
Member

Don't take me wrong, but including one more option like this is uberkill.

If you have suggestions for default directories please say so. Otherwise, there is a shortcut for this:

--batch --answer="writable=/var/www/html/uploads"

p.s. I'll make a patch for --answer to also accept multiple directories this way

@stamparm stamparm closed this Sep 10, 2015
stamparm added a commit that referenced this pull request Sep 10, 2015
@stamparm
Copy link
Copy Markdown
Member

With the latest commit #c4f9e66 user can provide multiple answers like:

--batch --answer="/var/www/html/uploads,/var/www/wordpress/images"

@ejtaal
Copy link
Copy Markdown
Author

ejtaal commented Sep 10, 2015

Clearly I didn't understand the --answer feature properly, many thanks for your updates :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants