Skip to content

Commit

Permalink
Merge pull request #11 from Lunalectric/fix-metasploit-aws
Browse files Browse the repository at this point in the history
fix msfconsole and mondoo commands
  • Loading branch information
scottford-io authored Feb 20, 2023
2 parents 7173f11 + 748239d commit 99f24a4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
5 changes: 2 additions & 3 deletions aws/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ Deploy the Mondoo Operator to the EKS cluster according the manual [https://mond
At first deploy the cert-manager from [https://cert-manager.io/docs/installation/](https://cert-manager.io/docs/installation/):

```bash
kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.9.1/cert-manager.yaml
kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.11.0/cert-manager.yaml
```

### Deploy Mondoo Operator
Expand Down Expand Up @@ -720,7 +720,6 @@ cnspec scan k8s --path ../assets/dvwa-deployment.yml
cnspec scan container docker.io/pmuench/dvwa-container-escape:latest
```


### Scan kubernetes eks cluster

```bash
Expand Down Expand Up @@ -798,7 +797,7 @@ cnspec shell aws ec2 ssm ssm-user@<AWS Instance ID>
```bash
export AWS_REGION=us-east-2
mondoo shell aws
cnspec shell aws
aws.eks.clusters { * }
Expand Down
9 changes: 9 additions & 0 deletions aws/templates/setup_metapreter
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
#!/bin/sh

# install all necessary tools
sudo apt update && sudo apt remove -y netcat-openbsd && sudo apt install -y netcat-traditional
sudo apt install -y ca-certificates curl gnupg lsb-release
sudo apt install -y nmap ruby
curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > /tmp/msfinstall
sudo chmod 755 /tmp/msfinstall
sudo /tmp/msfinstall
sudo msfdb init

PUBLIC_IP=$(curl http://169.254.169.254/latest/meta-data/public-ipv4)
ROOT_DIR=/home/kali/container-escape

Expand Down

0 comments on commit 99f24a4

Please sign in to comment.