Commit Graph

111 Commits

Author SHA1 Message Date
Dean Welch 2cf045d3c4 Leverage the module metadata cache in the module_sets 2024-01-15 14:56:46 +00:00
sjanusz-r7 126c19890a Add option to reload all libs when running a module 2023-10-04 14:59:36 +01:00
cgranleese-r7 4e539df3c3 Adds support to find default payloads 2022-12-05 11:52:11 +00:00
Matthew Dunn aab064779c Check the global LHOST before picking it from RHOST 2022-10-17 17:59:58 -04:00
adfoster-r7 3a281234df Add feature flagged datastore rewrite, with support for option fallback lookups 2022-09-16 12:59:02 +01:00
Grant Willcox 2142c877ad Land #16262, Use bash instead of netcat as a default payload 2022-03-14 17:18:37 -05:00
Spencer McIntyre 735c1256a3 Put reverse_netcat back in the default list
See #16262 for context. This will select reverse_bash if no required
commands are specified, which should be suitable for most environments.
The RequiredCmd payload compatibility key can be specified to override
this behavior by marking the commands that are available.
2022-03-14 09:16:39 -04:00
adfoster-r7 79761c942c Ignore iterating multiple rhosts if option not registered 2022-03-08 17:52:42 +00:00
Spencer McIntyre 146859dc12 Use bash instead of netcat as a default payload
Bash is more likely to be installed than netcat and therefore should be
more reliable.
2022-03-02 10:41:57 -05:00
adfoster-r7 967e5382c5 Add tab completion for exploit rerun command 2021-09-29 16:33:31 +01:00
adfoster-r7 f3ad3e8292 Re-renamespace error handling, and validate rhost schemas 2021-09-02 13:00:05 +01:00
adfoster-r7 3b23951d62 Correctly handle inline payloads being set via datastore options, i.e. run payload=xyz 2021-09-02 13:00:05 +01:00
Alan Foster 7aeebbd93e Consolidate module usage logic 2021-09-02 13:00:03 +01:00
Alan Foster 112f43f798 Consolidate module argument parsing for ensuring consistency 2021-09-02 13:00:02 +01:00
Alan Foster 134fef21c4 Improve validation rhosts validation 2021-09-02 13:00:01 +01:00
Alan Foster 4899884a33 Add http support in rhosts option 2021-09-02 12:59:50 +01:00
Spencer McIntyre 36b8d6eb73 Fix the printed exploit target 2021-07-19 15:24:02 -04:00
Spencer McIntyre 35106f7b99 Wire in the new RangeWalker improvements 2021-03-29 13:56:25 -04:00
Alan Foster ad8891dff6 Switch to using mod parameter for tab completion 2021-01-21 22:59:36 +00:00
Spencer McIntyre a9804727d5 Update the VHOST datastore option for modules
This fixes handling the VHOST datastore option for modules that use the
HTTP Client mixin whereby the IP address was being used since RHOSTS is
resolved.
2021-01-11 10:31:36 -05:00
cgranleese-r7 9e16fb8c4f Add module option tab completion to run command 2020-10-09 14:35:48 +01:00
William Vu fcf2068bec Check single result, once more with feeling 2020-06-23 22:07:13 -05:00
William Vu b28d9517bc Exclude multi from automatic PAYLOAD selection 2020-06-23 16:12:28 -05:00
William Vu 3f569507a0 Move Rex::Socket.source_address outside loop 2020-06-08 22:22:11 -05:00
William Vu 3436a1c26f Show automatically selected payload in options
By choosing a default payload when the module is used, not run.
2020-06-08 22:22:10 -05:00
William Vu 3aad5accac Fix nil RangeWalker length for invalid range
reset returns false and doesn't initialize length.
2019-08-14 21:40:58 -05:00
Brent Cook 0c253ab085 add file: support for RHOSTS option on exploit modules 2019-02-28 06:01:30 -06:00
Green-m 96173c101a Fix bug when the cidr of rhosts is 32. 2019-01-11 11:31:54 +08:00
Green-m 3ec71ed549 Fix issue that not interact with session. 2018-10-05 17:30:38 +08:00
Brent Cook 304acd42f0 minor comment tweaks 2018-10-02 05:23:13 -05:00
Green-m 90b98a193c Refactor the rhosts for exploit modules. 2018-09-30 16:08:49 +08:00
Brent Cook fbbfa0e0c3 teach exploit how to parse datastore options too 2018-05-23 12:12:27 -05:00
bwatters-r7 7e34f27004 Land #9246, Support RHOSTS for exploit modules 2018-05-16 14:40:25 -05:00
William Vu 54908021aa Update CommandDispatcher for target names, too 2018-05-16 10:39:22 -05:00
Brent Cook 3f3ed4aa70 change replicant to clone module objects to copy singleton methods
Without this, we are missing methods like exploit_simple.
https://coderwall.com/p/1zflyg/ruby-the-differences-between-dup-clone
2018-03-12 15:46:03 -05:00
Brent Cook db6377134e restore original module RHOST on abort 2018-03-12 15:46:03 -05:00
Brent Cook 5d9f2266da handle passive exploits without RHOST 2018-03-12 15:46:03 -05:00
Brent Cook 4f824af696 add support for '-J' which is the opposite of '-j' 2018-03-12 15:46:03 -05:00
Brent Cook 17c8f7c4c7 support iterating across RHOSTS for exploits 2018-03-12 15:46:03 -05:00
Brent Cook 4ab36bc713 factor out exploit runner from command parsing 2018-03-12 15:46:02 -05:00
Brent Cook aae77fc1a4 Land #9349, GoAhead LD_PRELOAD CGI Module 2018-01-22 23:10:36 -06:00
HD Moore 258ce2ceb2 Allow stub payloads to be autoselected when compatible 2017-12-28 16:19:22 -06:00
Spencer McIntyre fb7635502d Tab completion for exploit and handler commands 2017-11-11 17:11:54 -05:00
Adam Cammack d6ed1f6f8d Make backgrounding messages more consistent
Inspired by the work in #8896
2017-08-28 11:19:17 -05:00
Marc Green d50c7d7f5c Output job id when jobifying exploit 2017-08-28 14:36:04 +02:00
William Vu febe9625dd Add rcheck/recheck to aux modules and exploits 2017-03-09 15:30:34 -06:00
James Lee 5d4cc7ab40 Add nodejs to list of defaults 2016-06-24 16:06:50 -05:00
James Lee f1857d6350 Kill defanged mode 2016-03-28 09:02:07 -05:00
Brent Cook 85acfabfca remove various library workarounds for the datastore not preserving types 2016-03-05 23:10:57 -06:00
wchen-r7 fa390358a2 Add linux/x86/meterpreter/reverse_tcp to the preference list
linux/x86/meterpreter/reverse_tcp was not added to the preference
list, because at the time it was reliable. For example: it would
crash while running a post module. This is not the case anymore,
so it looks like linux/x86/meterpreter/reverse_tcp is ready to
serve.
2015-12-21 23:09:54 -06:00