Skip to content

Commit

Permalink
remove incomplete change
Browse files Browse the repository at this point in the history
  • Loading branch information
sirdarckcat committed Feb 21, 2020
1 parent 347b9a7 commit a75a253
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,3 @@ apiVersion: "apps/v1"
kind: "Deployment"
metadata:
name: "chal"
spec:
template:
spec:
containers:
- name: challenge
volumeMounts:
- name: gcstask
mountPath: /mnt/disks/gcs-task
volumes:
- name: gcstask
hostPath:
path: /mnt/disks/gcs/apache-php
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

# without this pwntools throws an error
import curses
curses.setupterm('xterm-256color')

from pwn import *

exit(0)
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,17 @@ set -Eeuo pipefail
TIMEOUT=20
PERIOD=30

export TERM=linux
export TERMINFO=/etc/terminfo

while true; do
source /config/env
if timeout "${TIMEOUT}" /exploit/doit.py; then
echo 'ok' > /tmp/healthz
echo -n "[$(date)] "
if timeout "${TIMEOUT}" /exploit/doit.py NOTERM; then
echo 'ok' | tee /tmp/healthz
else
echo 'err' > /tmp/healthz
echo -n "$? "
echo 'err' | tee /tmp/healthz
fi
sleep "${PERIOD}"
done
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,11 @@ apiVersion: "v1"
kind: "Service"
metadata:
name: "chal"
#spec:
# ports:
# - name: "netcat"
# protocol: "TCP"
## This will be the public port
# port: 1
## This is the port exposed by the pod
# targetPort: 1337

0 comments on commit a75a253

Please sign in to comment.