Spencer McIntyre
f58bbc236f
Land #15319 , Fix a localization issue
2021-06-14 16:42:19 -04:00
Alan Foster
8bd2c84f50
Fix hosts deletion
2021-06-14 21:16:03 +01:00
pingport80
beba2a6e46
add error_token in case the command fails and remove regexp from psh_exec
2021-06-14 15:02:39 +05:30
agalway-r7
e27ff89b86
improve readability
...
Co-authored-by: wvu <wvu-r7@users.noreply.github.com >
2021-06-11 12:58:00 +01:00
adfoster-r7
f83b21e85c
Land #15187 , no longer create msfdb webservice by default
2021-06-11 11:14:46 +01:00
Grant Willcox
e07561c904
Land #15328 , Fix get_processes for some shell sessions
2021-06-10 16:44:08 -05:00
Spencer McIntyre
206e6b01e4
Add the second fork after calling setsid
2021-06-09 17:52:13 -04:00
A Galway
d9d012f7fd
enables powershell sessions to use the read_file method
2021-06-09 20:22:15 +01:00
pingport80
669586a3ed
fix localization issue in windows/enum_hyperv_vms and chomp extra data from psh_exec method
2021-06-09 23:35:27 +05:30
Spencer McIntyre
5c5728a973
Stop applying prepends twice
2021-06-09 10:27:10 -04: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
Spencer McIntyre
0980c67797
Golf off one byte from x64's PrependFork
2021-06-08 17:29:15 -04:00
Spencer McIntyre
ae3715e6bc
Add a call to setsid when forking a new process
2021-06-08 16:44:46 -04:00
Spencer McIntyre
325ecfedff
Add some error handling while extracting the key
2021-06-08 14:58:58 -04:00
agalway-r7
4bf4b5a2fc
Land #15312 , makes RHOST & RHOSTS interchangeable
...
Add rhost alias to rhosts option
2021-06-08 17:55:45 +01:00
Alan Foster
0b9691bd9d
Add rhost alias to rhosts option
2021-06-08 15:01:09 +01:00
pingport80
6dca1d36ab
add check for powershell
2021-06-08 18:09:36 +05:30
agalway-r7
66de4deabf
Land #15264 , JSON RPC's servlet helper returns hash with symbolized keys
2021-06-08 11:51:19 +01:00
Spencer McIntyre
4ccc468dab
Add docs to the SharePoint mixin
2021-06-07 16:04:08 -04:00
Grant Willcox
06159ddfb9
Land #15296 , Enhance command_exists? method so that it falls back on which in case the command command fails
2021-06-07 14:42:41 -05:00
Spencer McIntyre
64077e1395
Add and use a new sharepoint mixin
2021-06-07 15:25:07 -04:00
Grant Willcox
772027464c
Land #15257 , Fix A Meterpreter Compatibility Error Message
2021-06-07 12:27:23 -05:00
Grant Willcox
51e06965d9
Fix minor errors with RuboCop that were undone during the last change
2021-06-07 12:26:40 -05:00
pingport80
ca5d3ea162
fix dir method for windows and added for powershell
2021-06-06 21:47:51 +05:30
Spencer McIntyre
9c364674df
Fix instances where the token is in the output
2021-06-05 21:33:23 -04:00
Spencer McIntyre
1d003e9dee
Land #15293 , Redis extractor improvements
2021-06-04 10:23:07 -04:00
Jeffrey Martin
3c80a014d9
Land #15290 , Stop raising a RuntimeError
2021-06-04 08:14:15 -05:00
pingport80
1d47d9e3a4
remove pid() method from post/linux/priv.rb
2021-06-03 21:29:56 +05:30
pingport80
42ce2ae48b
enhance command_exists? method
2021-06-03 20:54:25 +05:30
agalway-r7
87d69c7553
Land #15263 , adds payload flag to analyze
2021-06-03 16:03:46 +01:00
Ashley Donaldson
3920c0873c
Fix bugs in redis_extractor module
...
- Long values were truncated because the network didn't pull enough data, so parsing failed
- Race condition if value was deleted between scan and retrieval of value
- Also support retrieving a subset of keys (e.g. it stores session IDs, there are thousands of them and we only need a few)
2021-06-03 11:54:02 +10:00
Spencer McIntyre
741570ed6b
Stop raising a RuntimeError for invalid commands
2021-06-02 17:06:34 -04:00
Jeffrey Martin
57621d7f5f
Land #15289 , Fix a typo in a Meterpreter command requirement
2021-06-02 15:22:36 -05:00
Spencer McIntyre
e5755076ca
Fix a typo in a Meterpreter command requirement
2021-06-02 13:55:50 -04:00
Spencer McIntyre
74e324e8c1
Land #15260 , Add #pidof to Msf::Post::Process
...
Add the #pidof method to Msf::Post::Process and update #get_processes to
fallback to the shell version if it fails for some reason.
2021-06-01 09:53:08 -04:00
pingport80
fe8e586b22
fall to shell when meterpreter fails get_processes
...
shift `pidof` to `Msf::Post::Process`
2021-06-01 18:51:39 +05:30
adfoster-r7
11fb9e8e87
Land #15194 , Fix RPORT tab completion crash when connected to remote dataservice
2021-06-01 13:47:08 +01:00
A Galway
134e820322
removes obsolete has_host? usage
2021-06-01 12:02:58 +01:00
adfoster-r7
73b269cf7e
Land #15225 , cookie jar cleanup
2021-06-01 10:49:56 +01:00
Spencer McIntyre
882c2722af
Land #15251 , Add file_stat to linux shell sessions
2021-05-28 14:54:57 -04:00
pingport80
d9989903f7
add stat for linux shell sessions
...
update file.rb and file_stat.rb
update file_stat.rb
fix Zeitwerk:NameError
upadte `setuid?` to use stat
Update lib/msf/core/post/file_stat.rb
Co-authored-by: Spencer McIntyre <58950994+smcintyre-r7@users.noreply.github.com >
add inheritance and change time conversions to integers
Update lib/msf/core/post/file.rb
Co-authored-by: Spencer McIntyre <58950994+smcintyre-r7@users.noreply.github.com >
add some checks
fix one error in `Rex::Post::FileStat`
add NotImplemented raise
2021-05-28 14:24:36 -04:00
Spencer McIntyre
c6a499ef9a
Add more detail to missing feature error messages
2021-05-27 11:41:12 -04:00
Gaurav Purswani
379b0825b3
Merge branch 'master' into separate_session_history
2021-05-27 20:20:01 +05:30
Spencer McIntyre
0ea33ffee0
Consolidate session and shell context changes
2021-05-27 20:08:14 +05:30
Spencer McIntyre
f2b69a559b
Add and use a #with_context method
2021-05-27 20:08:09 +05:30
Spencer McIntyre
ff1334ed14
Consolidate history management for sessions
2021-05-27 20:08:09 +05:30
pingport80
eed82f5d17
add 'name' key to history contexts
2021-05-27 20:02:48 +05:30
pingport80
26f4d66897
add history_manager support for meterpreter
2021-05-27 20:02:38 +05:30
pingport80
ae74c44436
add history manager and fix pry history issue using that
2021-05-27 20:02:28 +05:30