bwatters
a16379b2a7
Land #17919 , Post::Windows::Service: Support start/stop service on shell sessions
...
Merge branch 'land-17919' into upstream-master
2023-10-04 13:51:25 -05:00
adfoster-r7
68ce65c6c9
Revert "Revert "Add Meterpreter sanity tests to CI""
2023-08-15 13:24:59 +01:00
adfoster-r7
cdbd591f07
Revert "Add Meterpreter sanity tests to CI"
2023-08-10 19:08:09 +01:00
adfoster-r7
d8dc189168
Add Meterpreter sanity tests to CI
2023-08-03 17:11:44 +01:00
bcoles
71f938682c
Post::Windows::Service: Support start/stop service on shell sessions
2023-04-28 18:44:11 +10:00
h00die
90a12cf3b0
unquoted service path tweaks
2023-01-13 17:06:42 -05:00
Grant Willcox
3e8fbb665f
Move meterpreter_service_list to be a private method to align with expectations of when function will be used and to prevent need for adding additional validation code
2022-09-09 12:25:21 -05:00
Grant Willcox
e4c7cadc86
Add RuboCop documentation for meterpreter_service_list
2022-09-09 12:25:08 -05:00
Grant Willcox
51b6d0b596
Tidy up code and fix up some edge cases on data validation.
2022-09-08 16:01:04 -05:00
bcoles
fa087768ef
Msf::Post::Windows::Service: Multiple bug and consistency fixes
...
* Define service types as constants.
* Ensure service startup type is always returned as Integer.
* Check for supported stdapi commands, rather than attempt to load ExtAPI if it is not already loaded.
* Fix a threading issue for Meterpreter sessions when ExtAPI was not loaded, causing inconsistent results with some services missing sometimes.
* Include interactive services (0x110 and 0x120) in service listing.
* Support service listing and service information retrieval for non-Meterpreter sessions.
2022-09-08 16:01:03 -05:00
Grant Willcox
c94f22cebe
Add in fixes from discussion and also update documentation to correctly note what functions can raise
2022-06-15 19:28:31 -05:00
kalidor
b292586fb3
Avoid exception 'TypeError exception class/object expected'
2022-06-09 11:58:01 +02:00
kalidor
e09169b281
Raise Error::SERVICE_ALREADY_RUNNING
2022-05-20 22:41:27 +02:00
kalidor
677b16e09c
Fix error when service is already running
2022-05-20 22:13:17 +02:00
adfoster-r7
24bf9e5e61
Add Meterpreter compatibility requirements to lib
2021-12-13 11:30:32 +00:00
cgranleese-r7
9e7859ed25
Reformats some modules so they can be run with new meterpreter_commands_dependencies.rb Rubocop rule
2021-07-23 14:40:19 +01:00
Spencer McIntyre
da01a839d1
Set required commands spec for all post mixins
2021-04-26 12:28:18 -04:00
dwelch-r7
1617b3ec9b
Use zeitwerk for lib/msf/core folder
2020-12-07 10:31:45 +00:00
Brendan Coles
d313f196d9
Add Post::Windows::Services.service_exists? method
2020-05-06 15:26:52 +00:00
Brent Cook
90766ceceb
remove more unusual raise RuntimeError patterns
2017-11-01 05:59:12 -05:00
Brent Cook
f69b4a330e
handle Ruby 2.4 Fixnum/Bignum -> Integer deprecations
2017-01-22 10:20:03 -06:00
root
0dd987d873
Updated as per jlee-r7 feedback
2015-04-03 10:17:54 +05:00
root
4ba761986f
Correct YARD doc comments
2015-04-02 16:14:25 +05:00
Meatballs
d2bc0baa87
Merge remote-tracking branch 'upstream/master' into extapi_service_post
...
Conflicts:
lib/msf/core/post/windows/services.rb
2014-08-24 19:46:19 +01:00
HD Moore
c9b6c05eab
Fix improper use of host-endian or signed pack/unpack
...
Note that there are some cases of host-endian left, these
are intentional because they operate on host-local memory
or services.
When in doubt, please use:
```
ri pack
```
2014-06-30 02:50:10 -05:00
James Lee
4c557a1401
Add Post::Windows::Services#each_service
...
Also cleans up some style issues and adds yardoc comments for some stuff
in Post::File
Note that windows/local/service_permissions is still using
`service_list` because it now builds a Rex::Table, which has to have
all the data up front, anyway.
2014-02-18 18:24:23 -06:00
Meatballs
d0031c2ffa
change_startup can now be run remotely
2014-01-03 16:25:15 +00:00
Meatballs
22163a5096
Tidy change_startup
2014-01-03 16:02:10 +00:00
Meatballs
9028060f7d
Refactor service_create
2014-01-03 15:44:59 +00:00
Meatballs
1dacab6c03
service_restart should allow start_type to be defined
2013-12-18 12:17:24 +00:00
Meatballs
42bc5ab75f
Use Services calls in enable_rdp
...
Update calls to change_service_config to check success
2013-12-18 11:34:12 +00:00
Meatballs
67cb5dad27
Fixes after testing
2013-12-17 23:47:58 +00:00
Meatballs
067e6d89bb
Use service_restart in IKEEXT and ServicePermissions
...
Service_restart is aggressive so should attempt to leave as Auto
2013-12-17 17:21:35 +00:00
Meatballs
ba335d6c91
Update Service Tests
...
And small fixes
2013-12-17 14:03:19 +00:00
Meatballs
70caacd631
Corrections to service_handle
2013-12-17 12:21:20 +00:00
Meatballs
ca90815fb3
Ensure all handles are closed
...
And stop repeating the adv definition
2013-12-17 12:15:59 +00:00
Meatballs
a33721f444
service_change_config keys should match extapi
2013-12-17 01:48:09 +00:00
Meatballs
484bf2f8fc
close_service_handle
2013-12-17 01:02:35 +00:00
Meatballs
560080fa21
Update start_service return value
...
Add service_restart
2013-12-17 00:43:35 +00:00
Meatballs
f39bc0b07a
Update service_stop return
2013-12-17 00:22:37 +00:00
Meatballs
f58a26033a
Add missing underscore
2013-12-17 00:10:15 +00:00
Meatballs
45a03cc805
Use Error mixin
2013-12-17 00:03:10 +00:00
Meatballs
2fafdcbb89
Use railgun string constants
...
Remove unnecessary constants
Bit of tidying
2013-12-16 23:59:51 +00:00
Meatballs
fd19881433
Docs
2013-12-16 19:39:36 +00:00
Meatballs
5be9622782
Tidy and constants
2013-12-16 18:35:24 +00:00
Meatballs
c97e8d3817
Return hash for service_info and use ErrorMessage
2013-12-15 17:59:57 +00:00
Meatballs
d9ce80d4d0
Add service_change_config
2013-12-15 04:00:27 +00:00
Meatballs
ddf23ae8e8
Refactor service_list to return array of hashes
...
Update trusted_service_path, service_permissions,
net_runtime_modify and enum_services to handle change.
Refactor enum_services to tidy it up a bit
2013-12-15 03:00:29 +00:00
Meatballs
6763d1fbd8
Refactor services for extapi
2013-12-15 02:09:25 +00:00
Meatballs
77dd7ec290
Include ExtAPI Mixin
...
Move ExtAPI above services require
2013-12-15 01:32:58 +00:00