From eb8e7b006f9c15c127413a71b85b85c341978823 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 11 Mar 2019 14:56:51 +0100 Subject: [PATCH] Updated Usage (markdown) --- Usage.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Usage.md b/Usage.md index a4ee852..b3ebcd0 100644 --- a/Usage.md +++ b/Usage.md @@ -249,7 +249,7 @@ Options: --identify-waf Make a thorough testing for a WAF/IPS/IDS protection --mobile Imitate smartphone through HTTP User-Agent header --offline Work in offline mode (only use session data) - --purge-output Safely remove all content from output directory + --purge Safely remove all content from sqlmap data directory --skip-waf Skip heuristic detection of WAF/IPS/IDS protection --smart Conduct thorough tests only if positive heuristic(s) --sqlmap-shell Prompt for an interactive sqlmap shell @@ -2331,18 +2331,18 @@ Switch: `--offline` By using switch `--offline` sqlmap will use only previous session data in data enumeration. This basically means that there will be zero connection attempts during such run. -### Safely remove all content from output directory +### Safely remove all content from data directory -Switch `--purge-output` +Switch `--purge` -In case that user decides to safely remove all content from `output` directory, containing all target details from previous sqlmap runs, he can use switch `--purge-output`. While purging, all files from (sub)directories in folder `output` will be overwritten with random data, truncated, renamed to random names, (sub)directories will be renamed to random names too, and finally the whole directory tree will be deleted. +In case that user decides to safely remove all content from sqlmap's data directory (e.g. `$HOME/.sqlmap`), containing all target details from previous sqlmap runs, he can use switch `--purge`. While purging, all files from (sub)directories in data folder will be overwritten with random data, truncated, renamed to random names, (sub)directories will be renamed to random names too, and finally the whole directory tree will be deleted. Example run: ``` -$ python sqlmap.py --purge-output -v 3 +$ python sqlmap.py --purge -v 3 [...] -[xx:xx:55] [INFO] purging content of directory '/home/user/sqlmap/output'... +[xx:xx:55] [INFO] purging content of directory '/home/user/sqlmap'... [xx:xx:55] [DEBUG] changing file attributes [xx:xx:55] [DEBUG] writing random data to files [xx:xx:55] [DEBUG] truncating files