Skip to content

Commit

Permalink
bin/podman-cloud: add Pacu (AWS exploitation framework)
Browse files Browse the repository at this point in the history
It is useful to have it directly available in the container.
  • Loading branch information
fishilico committed May 4, 2024
1 parent d56fba1 commit b57b879
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion bin/podman-cloud
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@
# - to get IAM policy for a project: gcloud projects get-iam-policy $PROJECT_ID
# - to list Compute instances: gcloud compute instances list
# - to get SSH config: gcloud compute config-ssh
#
# - Pacu (AWS exploitation framework) https://github.com/RhinoSecurityLabs/pacu

set -e

Expand Down Expand Up @@ -77,6 +79,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
mandoc \
openssh-client \
python3 \
python3-pip \
python-is-python3 \
unzip \
vim && \
Expand All @@ -95,7 +98,8 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
curl https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip -o awscliv2.zip && \
unzip -q awscliv2.zip && \
./aws/install --bin-dir /usr/bin && \
rm -r awscliv2.zip aws
rm -r awscliv2.zip aws && \
pip3 install --break-system-packages pacu
EOF
}

Expand Down Expand Up @@ -171,6 +175,7 @@ SECCOMP_PROFILE='
"clone",
"clone3",
"close",
"close_range",
"connect",
"dup",
"dup2",
Expand Down Expand Up @@ -211,6 +216,7 @@ SECCOMP_PROFILE='
"getresgid",
"getresuid",
"getrlimit",
"getrusage",
"getsockname",
"getsockopt",
"gettid",
Expand All @@ -220,6 +226,7 @@ SECCOMP_PROFILE='
"lchown",
"lgetxattr",
"link",
"listxattr",
"lseek",
"lstat",
"madvise",
Expand Down Expand Up @@ -254,6 +261,7 @@ SECCOMP_PROFILE='
"rt_sigtimedwait",
"sched_getaffinity",
"sched_yield",
"sendfile",
"sendmmsg",
"sendmsg",
"sendto",
Expand All @@ -272,6 +280,7 @@ SECCOMP_PROFILE='
"statfs",
"statx",
"symlink",
"symlinkat",
"sync_file_range",
"sysinfo",
"tgkill",
Expand Down

0 comments on commit b57b879

Please sign in to comment.