Skip to content

Commit

Permalink
Update Cloudtopolis.ipynb
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelGMSec authored Apr 12, 2022
1 parent a314224 commit e2d417e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Cloudtopolis.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -193,10 +193,13 @@
" auth.authenticate_user()\n",
" !echo -e \"\\e[0mCloud Shell Mode enabled!\"\n",
" !gcloud cloud-shell --quiet ssh --ssh-flag=\"-o TCPKeepAlive=yes\" --ssh-flag=\"-N\" --ssh-flag=\"-T\" --ssh-flag=\"-C\" --ssh-flag=\"-L 8000:localhost:8000\" --ssh-flag=\"-4\" </dev/null &>/dev/null &\n",
" !sleep 1\n",
" gcloud = !curl http://localhost:8000/api/server.php\n",
" if \"refused\" in str(gcloud):\n",
" !echo -e \"\\n\\e[31;1m[!] Google Auth failed! Execute this command in your PC!\\e[0m\"\n",
" !gcloud auth login --quiet\n",
" !gcloud cloud-shell --quiet ssh --ssh-flag=\"-o TCPKeepAlive=yes\" --ssh-flag=\"-N\" --ssh-flag=\"-T\" --ssh-flag=\"-C\" --ssh-flag=\"-L 8000:localhost:8000\" --ssh-flag=\"-4\" </dev/null &>/dev/null &\n",
"\n",
"else:\n",
" !echo -e \"\\e[0mVPS Mode enabled!\"\n",
" !apt install sshpass -y -qq > /dev/null 2>&1\n",
Expand Down

0 comments on commit e2d417e

Please sign in to comment.