Update reverse_tcp.md, improper switches #18524
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Improper usages of switches are presented in the documentation for the android meterpreter payload reverse_tcp. The example given for generating an APK file from the msfconsole showed two errors.
The example given in the documentation for generating a meterpreter payload apk file from the msfconsole was "generate -t raw -f /tmp/android.apk" This example, when executed, results in a return of the command manual page due to improper command usage.
The correct command to generate a raw format payload with a "/tmp/android.apk" filename designation would be "generate -f raw -o /tmp/android.apk"
TLDR; In line 40 of reverse_tcp.md replace "-t' with "-f" and replace "-f" with "-o".