Skip to content

Commit 37f7e17

Browse files
james-ottenh00die
authored andcommitted
Add osx support to post/multi/gather/azure_cli_creds
1 parent 222ceb8 commit 37f7e17

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

documentation/modules/post/multi/gather/azure_cli_creds.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Vulnerable Application
22

3-
Any windows or linux system with a `meterpreter` session and [Azure CLI 2.0](https://docs.microsoft.com/en-us/cli/azure/?view=azure-cli-latest).
3+
Any windows, linux, or osx system with a `meterpreter` session and [Azure CLI 2.0](https://docs.microsoft.com/en-us/cli/azure/?view=azure-cli-latest).
44

55
Successfully tested on:
66

modules/post/multi/gather/azure_cli_creds.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def initialize(info = {})
2222
),
2323
'License' => MSF_LICENSE,
2424
'Author' => ['James Otten <jamesotten1[at]gmail.com>'],
25-
'Platform' => ['win', 'linux'],
25+
'Platform' => ['win', 'linux', 'osx'],
2626
'SessionTypes' => ['meterpreter']
2727
))
2828
end
@@ -75,7 +75,7 @@ def user_dirs
7575
grab_user_profiles.each do |profile|
7676
user_dirs.push(profile['ProfileDir'])
7777
end
78-
elsif session.platform == 'linux'
78+
elsif session.platform == 'linux' || session.platform === 'osx'
7979
user_dirs = enum_user_directories
8080
else
8181
fail_with(Failure::BadConfig, "Unsupported platform")

0 commit comments

Comments
 (0)