Skip to content

Commit

Permalink
Add support for PyJam tunnels
Browse files Browse the repository at this point in the history
  • Loading branch information
jstrieb committed Apr 28, 2023
1 parent 87dc60e commit 4d7f4da
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/run-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ jobs:
PIP_PACKAGES=(
pwntools
ciphey
ofrak
)
python3 -m pip install --upgrade ${PIP_PACKAGES[@]}

Expand Down Expand Up @@ -141,7 +142,7 @@ jobs:

- name: Install ttyd and run in the background as a daemon
run: |
# xterm is required for tmux\ttyd. Installed here to highlight that
# xterm is required for tmux/ttyd. Installed here to highlight that
# this is the specific part of the script that requires it.
sudo apt-get --yes install xterm

Expand Down Expand Up @@ -188,6 +189,12 @@ jobs:
--hiddenserviceport "22 127.0.0.1:22"


- name: Install PyJam and create a tunnel in the background
run: |
sudo apt-get install -y wireguard
curl https://tunnel.pyjam.as/7681 > /tmp/7681.conf
wg-quick up /tmp/7681.conf

- name: Display connection information
run: |
# Start a tmux session in the background whose window group everyone
Expand Down Expand Up @@ -223,6 +230,12 @@ jobs:
| sort
fi

echo 'To connect via PyJam (over HTTPS):'
cat /tmp/7681.conf \
| grep https \
| sed 's/.*\(https:\/\/[^ ]*\).*/\1/g'


- name: Wait...
run: |
# Wait... This process will be killed to end the Action. Return a
Expand Down

0 comments on commit 4d7f4da

Please sign in to comment.