Skip to content

Commit 3e412a8

Browse files
committed
Start documenting api/console create options
1 parent 162204b commit 3e412a8

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

documentation/modules/post/multi/escalate/aws_create_iam_user.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ aws_create_iam_user can be used to take over an AWS account given access to
6565
a host having 1). overly permissive instance profile/role, 2). API Access keys.
6666
Once a foothold is established, you can run the module to pull temporary
6767
access keys from the metadata service. If this fails, search the instance for
68-
API access keys, e.g., see ~/aws/credentals, and set `AccessKeyId`,
69-
`SecretAccessKey`, & `Token` (optional).
68+
API access keys, e.g., see ~/.aws/credentials, and set `AccessKeyId`,
69+
`SecretAccessKey`, & `Token` (optional).
7070

7171
## Options
7272

@@ -75,6 +75,8 @@ API access keys, e.g., see ~/aws/credentals, and set `AccessKeyId`,
7575
* `SecretAccessKey`: set this if you find access keys on the host and instance has no profile/privileges
7676
* `Token`: set this if you find access keys on the host and instance has no profile/privileges. This is optional as this signifies temporary keys, if you find these, these are most likely expired.
7777
* `Proxies`: depending on your environment, you may wan to proxy your calls to AWS.
78+
* `CREATE_API`: when true, creates API keys for this user
79+
* `CREATE_CONSOLE`: when true, creates a password for this user so that they can access the AWS console
7880

7981

8082
### Establish a foothold
@@ -212,4 +214,4 @@ You can see the API keys stored in loot:
212214
$ cat ~/.msf4/loot/20161121175902_default_52.1.2.3_AKIA_881948.txt
213215
214216
{"AccessKeyId":"AKIA...","SecretAccessKey":"THE SECRET ACCESS KEY...","AccessKeySelector":"HMAC","UserName":"metasploit","Status":"Active","CreateDate":"2016-11-21T17:59:51.967Z"}
215-
```
217+
```

0 commit comments

Comments
 (0)