From 9696083eb80c2214463c5f97f8faab3dae093752 Mon Sep 17 00:00:00 2001 From: y_k_oo7 Date: Fri, 22 Feb 2019 01:34:28 +0530 Subject: [PATCH] Updated Docs --- .../modules/auxiliary/scanner/http/http_put.md | 12 ++++-------- .../modules/auxiliary/scanner/http/scraper.md | 15 ++++++++++++--- 2 files changed, 16 insertions(+), 11 deletions(-) diff --git a/documentation/modules/auxiliary/scanner/http/http_put.md b/documentation/modules/auxiliary/scanner/http/http_put.md index dd1d2a201f..8ab761ebd7 100644 --- a/documentation/modules/auxiliary/scanner/http/http_put.md +++ b/documentation/modules/auxiliary/scanner/http/http_put.md @@ -15,30 +15,26 @@ This module can abuse misconfigured web servers to upload and delete web content ### ACTION +Set `ACTION` to either `PUT` or `DELETE`. (Default: `PUT`) + **PUT** Action is set to PUT to upload files to the server. If `FILENAME` isn't specified, the module will generate a random string as a .txt file. **DELETE** -Deletes the file specified in the `FILENAME` option. (default: `msf_http_put_test.txt`) +`FILENAME` is required when Action is set to DELETE ### PATH The path at which this module will attempt to either PUT the content or DELETE it. -### FILEDATA - -The file whose data is to be uploaded. - ## Scenarios -Here Action is set to `PUT`. +Here `ACTION` is by default set to `PUT`. ``` msf > use auxiliary/scanner/http/http_put -msf auxiliary(scanner/http/http_put) > set ACTION PUT -ACTION => PUT msf auxiliary(scanner/http/http_put) > set RHOSTS 1.1.1.23 RHOSTS => 1.1.1.23 msf auxiliary(scanner/http/http_put) > set RPORT 8585 diff --git a/documentation/modules/auxiliary/scanner/http/scraper.md b/documentation/modules/auxiliary/scanner/http/scraper.md index 18af4fb159..7b74ded22c 100644 --- a/documentation/modules/auxiliary/scanner/http/scraper.md +++ b/documentation/modules/auxiliary/scanner/http/scraper.md @@ -7,15 +7,22 @@ This module scrapes data from a specific web page based on a regular expression. 2. Do: ```set RHOSTS [IP]``` 3. Do: ```run``` +## Options + +### PATH + +The path from where the data is to be scraped from. + +### PATTERN + +The regular expression to use . Default value:`(.*)` which simply grabs page title. + ## Scenarios -By default this module scrapes the `title` of a web page. ``` msf > use auxiliary/scanner/http/scraper msf auxiliary(scanner/http/scraper) > set RHOSTS 1.1.1.18 RHOSTS => 1.1.1.18 -msf auxiliary(scanner/http/scraper) > set PATTERN '(.*)' -PATTERN => (?-mix:(.*)<\/title>) msf auxiliary(scanner/http/scraper) > run [+] 1.1.1.18 / [Index of /] @@ -24,3 +31,5 @@ msf auxiliary(scanner/http/scraper) > run msf auxiliary(scanner/http/scraper) > ``` +The title of `1.1.1.18/` page is `Index of /`. +