adfoster-r7
72932bdae1
Fix broken hosts and services help command
2024-02-09 16:28:47 +00:00
h00die
3bf880192e
review comments
2023-10-23 10:28:33 -04:00
h00die
0d2a5795fe
total to bottom
2023-10-23 10:28:33 -04:00
h00die
ed78df0f0f
add creds and klist to db_stats
2023-10-23 10:28:33 -04:00
h00die
7452cda2b1
db_stats review comments
2023-10-23 10:28:33 -04:00
h00die
5f2703f8c0
add stats command
2023-10-23 10:28:33 -04:00
Erik Geiser
49786101f7
Fix incorrect scope condition
2023-09-29 13:51:14 +02:00
Grant Willcox
cd00585e12
Support properly handling tagging multiple hosts and then deleting those tags.
...
This involves updating add_host_tag and delete_host_tag and performing some refactoring.
2023-06-21 09:31:55 -05:00
dwelch-r7
75372dcdd3
Land #17374 , Add klist command
2023-01-06 12:57:20 +00:00
adfoster-r7
6f9ebe4068
Add klist command
2022-12-16 13:02:39 +00:00
Ashley Donaldson
bf307e552a
Resolves #14144 - expand ~ for hosts and notes commands
2022-12-15 12:31:25 +11:00
adfoster-r7
f6ed9ef12d
Extract db command helpers to standalone module
2022-12-13 17:01:49 +00:00
Grant Willcox
4f3b59bee3
Add easier way to delete host tags
2022-07-28 14:52:17 -05:00
entity0xfe
488d361721
Fix --tag for 'hosts' -t | --tag command
...
Enable parsing of the -t argument
2022-07-26 11:39:38 -05:00
adfoster-r7
a3ce694b88
Fix hosts crash when viewing tags
2022-07-26 12:07:57 +01:00
Spencer McIntyre
c2e0a61a74
Fix the hosts command's tab completion
2022-03-09 18:17:14 -05:00
Spencer McIntyre
5c5340b6fd
Fix the hosts command's --search flag
2022-03-09 18:17:09 -05:00
sjanusz
c4700ab2f4
Add state to workspace command, extract sevices columns, correct tab-complete
2022-02-01 17:09:17 +00:00
sjanusz
158a0aa30c
Change custom parser to Rex, add custom opt, add tabcomplete
2022-01-19 13:01:33 +00:00
Grant Willcox
dc32770fd5
Land #15340 , Fix hosts deletion
2021-06-14 22:26:51 -05:00
Alan Foster
8bd2c84f50
Fix hosts deletion
2021-06-14 21:16:03 +01:00
adfoster-r7
f83b21e85c
Land #15187 , no longer create msfdb webservice by default
2021-06-11 11:14:46 +01:00
dwelch-r7
8b61498ebb
Remove unused variables
2021-06-09 13:06:22 +01:00
dwelch-r7
5d421688a2
Refactor prompts and rework clearing of stored database
2021-06-09 10:55:15 +01:00
Alan Foster
d12a82eb7d
Disable wrapped table support for the loot command
2021-05-24 00:37:41 +01:00
dwelch-r7
962dcf1ae7
Clear the default database connection if using database only
2021-05-20 01:08:47 +01:00
Alan Foster
12c5dd6f44
Fix db connection support for rpc service
2021-04-02 05:30:34 +01:00
dwelch-r7
b95be3ed10
Zeitwerk rex folder
2021-02-08 12:24:12 +00:00
adfoster-r7
ff6a1f135c
Land #14629 , migrate msf folder to Zeitwerk
2021-01-22 14:21:26 +00:00
dwelch-r7
da50c257b5
Fix typo in regex
2021-01-18 15:07:49 +00:00
dwelch-r7
b816373b94
remove msf/ui requires
2021-01-18 14:21:54 +00:00
dwelch-r7
a5cfa5175e
Match against more specific error messages
2021-01-07 16:29:41 +00:00
dwelch-r7
992bcbfac4
Add coverage for other nmap scans which require root
2021-01-06 11:14:29 +00:00
dwelch-r7
0d29b8d66c
Add check for nmap requiring sudo permissions
2021-01-05 11:39:43 +00:00
dwelch-r7
1617b3ec9b
Use zeitwerk for lib/msf/core folder
2020-12-07 10:31:45 +00:00
Jeffrey Martin
07cbe426e2
Rails 5, all models inherit from ApplicationRecord
...
ApplicationRecord is a new superclass for all app models, analogous to app controllers subclassing ApplicationController instead of ActionController::Base. This gives apps a single spot to configure app-wide model behavior.
https://edgeguides.rubyonrails.org/upgrading_ruby_on_rails.html#active-record-models-now-inherit-from-applicationrecord-by-default
Deprecated Relation#uniq use Relation#distinct instead.
https://edgeguides.rubyonrails.org/5_0_release_notes.html#active-record-deprecations
2020-07-31 11:56:49 -05:00
Adam Galway
1a2bf98222
creates standard elog & updates exisiting usages
2020-06-22 12:48:39 +01:00
gwillcox-r7
778a66191a
Land #13373 , Improvements to "No DB Connected" error message
2020-05-01 15:39:59 -05:00
Adam Galway
a53a1520c1
add setup guide link to db connection error msg
2020-05-01 12:22:58 +01:00
Adam Galway
8e3add3f5f
simplifies get host id, renames endpoints & clean
2020-04-28 13:33:54 +01:00
Adam Galway
789b5dec00
adds tag functionality for hosts
2020-04-22 16:47:23 +01:00
Jeffrey Martin
7505e1bf71
Consolidate logic for actions taken on a workspace
...
* When renaming a workspace allow validation to handle all cases the same
* Do not display backtrace on console for rename failure, this is still logged to framework.log
2019-10-15 16:12:11 -05:00
Brent Cook
42c0a3b96a
deprecate the db_rebuild_cache command, add reload_search
...
For a while, Metasploit has not used the old database-backed module cache in favor of the lightweight JSON data store. This also means that the db_rebuild_cache command has been broken.
While the base module cache usually stays up to date, if you delete a module as a developer, there's currently no great way to make the search function forget about that module unless you rebuild the cache manually (a procedure mostly documented inside of an automated build job).
This moves the logic from that build job into the a new reload_search command, and deprecates the old one.
2019-06-29 03:36:39 -05:00
William Vu
bea3659475
Fix truncated range
2019-05-23 15:41:38 -05:00
Matthew Kienow
d15095f452
Land #11191 , add analyze command
2019-02-19 21:50:20 -05:00
James Barnett
a2548fe92d
Only lookup db connections by name
...
Matching on all attributes was causing issues when the connection
criteria would change for a db service at a host that already existed.
It would find the existing connection and load that outdated connection
and fail to connect.
The new functionality will save a new, valid connection with a randomly
generated name, unless the -n flag is specified to overwrite an existing
connection.
2019-01-08 15:21:14 -06:00
Jeffrey Martin
288cbd2386
add analyze command
2018-12-13 18:21:00 -06:00
James Barnett
e36e27d91a
Port is optional for HTTP data services
2018-12-05 16:05:09 -06:00
James Barnett
1e57f025d9
Update db_connect help
2018-12-05 14:52:26 -06:00
Brendan Coles
e231fd0623
next if onlyup
2018-11-10 16:21:06 +00:00