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 20, 2022
1 parent c0144df commit a1b2d96
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions Cloudtopolis.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"\n",
"# [ Requirements ] Create and copy from Hashtopolis > Agent > New Agent\n",
"Voucher = ''\n",
"Link = ''\n",
"\n",
"# [ Wordlists + Rules ] Select one or more according to your needs\n",
"Kaonashi = False\n",
Expand Down Expand Up @@ -61,14 +62,19 @@
"!echo -e \":: Created by @JoelGMSec :: https://darkbyte.net :: v3.0 ::\"\n",
"!echo -e \":: https://github.com/JoelGMSec/Cloudtopolis :: [Client] ::\"\n",
"!echo -e \":::::::::::::::::::::::::::::::::::::::::::::::::::::::::::\"\n",
"from google.colab import auth\n",
"\n",
"# [ Checking Voucher ]\n",
"if not Voucher:\n",
" !echo -e \"\\n\\e[31;1m[!] Voucher not found, exiting!\"\n",
" !sleep 1\n",
" !kill -9 -1\n",
"\n",
"# [ Checking Link ]\n",
"if not Link:\n",
" !echo -e \"\\n\\e[31;1m[!] Link not found, exiting!\"\n",
" !sleep 1\n",
" !kill -9 -1\n",
"\n",
"# [ Checking GPU ]\n",
"!echo -e \"\\n\\e[32;1m[+] Checking if GPU is present..\"\n",
"!apt-get install pciutils -y -qq > /dev/null 2>&1\n",
Expand Down Expand Up @@ -190,27 +196,21 @@
"# [ Connecting with Cloudtopolis Server ]\n",
"!echo -e \"\\n\\e[34;1m[i] Connecting with Cloudtopolis Server..\\e[0m\"\n",
"if not VPS:\n",
" 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",
" !echo -e \"\\e[31;1mWARNING: Limited execution time, use VPS if you need longer runtimes!\"\n",
"\n",
"else:\n",
" !echo -e \"\\e[0mVPS Mode enabled!\"\n",
" !apt install sshpass -y -qq > /dev/null 2>&1\n",
" SshParams = '-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null'\n",
" SshParams = \"-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null\"\n",
" !sshpass -p $SshPass ssh $SshParams -o TCPKeepAlive=yes -N -T -C -L 8000:localhost:8000 $SshUser@$SshHost -p $SshPort > /dev/null 2>&1 & \n",
" Link = \"http://localhost:8000\"\n",
"\n",
"# [ Download and run agent ]\n",
"!echo -e \"\\n\\e[34;1m[i] Download and run agent..\\e[0m\"\n",
"!wget --quiet http://localhost:8000/agents.php?download=1\n",
"!mv 'agents.php?download=1' hashtopolis.zip\n",
"!python3 hashtopolis.zip --url http://localhost:8000/api/server.php --voucher $Voucher\n"
"!wget --quiet $Link/agents.php?download=1\n",
"!mv \"agents.php?download=1\" hashtopolis.zip\n",
"!python3 hashtopolis.zip --url $Link/api/server.php --voucher $Voucher\n"
]
}
]
Expand Down

0 comments on commit a1b2d96

Please sign in to comment.