sjanusz-r7
126c19890a
Add option to reload all libs when running a module
2023-10-04 14:59:36 +01:00
Hamilton Tobon Mosquera
fd7fbb76af
fix: cmd_run: remove unnecessary map
...
Removing the call to .map over args[:datastore_options] avoids an unnecessary call to Msf::DataStore#import_options_from_s. args[:datastore_options] is already a hash, converting it to string and using Msf::DataStore#import_options_from_s converts it back to hash, which is not necessary. The Msf::Simple::Module mixin already offers support for Options, which is expected to be a hash.
This change also prevents sending corner case option strings to Msf::DataStore#import_options_from_s when using post modules, which does not support strings like: "COMMAND='date --date=2023-01-01'".
2023-01-11 16:54:13 -05: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
Spencer McIntyre
10b4c7b4da
Fix a command precedence and parsing extra options
2021-01-07 15:16:40 -05:00
Spencer McIntyre
11ca76cacc
Support post actions as commands too
2020-12-29 16:54:09 -05:00
cgranleese-r7
9e16fb8c4f
Add module option tab completion to run command
2020-10-09 14:35:48 +01:00
William Vu
e955e8dc15
Clean up code
...
And hope I didn't break anything.
2018-08-24 18:05:52 -05:00
Green-m
dc4e438c04
Add multiple commands' tabs
2018-07-17 06:27:51 -04:00
Brent Cook
c8b54cef22
add inline datastore parsing to aux/post modules
2018-05-23 12:12:27 -05:00
Adam Cammack
d6ed1f6f8d
Make backgrounding messages more consistent
...
Inspired by the work in #8896
2017-08-28 11:19:17 -05:00
William Vu
79c01a9577
Fix ancient copypasta of Aux to Post
...
Specifically a crash in the run command's help.
2017-03-02 01:24:27 -06:00
James Lee
f1857d6350
Kill defanged mode
2016-03-28 09:02:07 -05:00
sinn3r
c62beacd31
Revert #4473 - Log backtraces by default
2015-01-24 02:44:29 -06:00
Christian Mehlmauer
6444d8ba64
use kind_of? for checking exceptions
2014-12-30 21:16:57 +01:00
Tab Assassin
7e5e0f7fc8
Retab lib
2013-08-30 16:28:33 -05:00
HD Moore
d656e3185f
Mark all libraries as defaulting to 8-bit strings
2012-06-29 00:18:28 -05:00
James Lee
9163a7f0dd
exploit should call run, like in aux modules
...
git-svn-id: file:///home/svn/framework3/trunk@11681 4d416f70-5f16-0410-b530-b9f4589650da
2011-01-30 21:43:38 +00:00
James Lee
88a5b1982e
always reload post modules when run from meterpreter prompt, fail and error out instead of running the old one when a reload fails. Fixes #3557
...
git-svn-id: file:///home/svn/framework3/trunk@11659 4d416f70-5f16-0410-b530-b9f4589650da
2011-01-28 17:02:26 +00:00
James Lee
a7b5e831f7
clean up how help works, pull cmd_reload up so all module types can use it
...
git-svn-id: file:///home/svn/framework3/trunk@11658 4d416f70-5f16-0410-b530-b9f4589650da
2011-01-28 03:29:20 +00:00
Joshua Drake
a7d92937df
Fixes #3500 , Copy pasta find/replace bug
...
git-svn-id: file:///home/svn/framework3/trunk@11553 4d416f70-5f16-0410-b530-b9f4589650da
2011-01-12 01:21:52 +00:00
James Lee
f0cc6ff596
big commit for converting meterpreter scripts to modules, see #3377 . also fixes payload tab-completion and 'show payloads' after TARGET has changed
...
git-svn-id: file:///home/svn/framework3/trunk@11421 4d416f70-5f16-0410-b530-b9f4589650da
2010-12-27 17:46:42 +00:00