Claim your right, Get your free SSH server

SSH, this stands for Secure Shell. If you done some NMAP scanning, you might have found a port running SSH. You might have also found it interesting and useful. So now let’s set up one.

Requirements:-

  • A Google Account
  • A Ngrok Account

Setup:-

Go to https://colab.research.google.com

Now click on “File>New Notebook”. This will now create a new notebook.

Now you will see something like this:-

Now in text area, paste the following text:-

!pip install colab_ssh — upgrade

!apt update

!apt install nmap

!apt-get install -y arp-scan

!apt-get install net-tools

!apt install vim

!apt-get -y install nano

!apt install golang

!apt install git

!wget https://github.com/daviddias/node-dirbuster/raw/master/lists/directory-list-2.3-medium.txt

!apt install hydra-gtk

!wget https://github.com/brannondorsey/naive-hashcat/releases/download/data/rockyou.txt

!apt install dirb

!sudo apt install iputils-ping

!git clone https://github.com/PentestBox/gobuster.git

!git clone https://github.com/lanmaster53/recon-ng.git

!git clone https://github.com/Mebus/cupp.git

!git clone https://github.com/aboul3la/Sublist3r.git

!git clone https://github.com/maurosoria/dirsearch.git

!cd dirsearch && pip install -r requirements.txt

!pip install shodan

from colab_ssh import launch_ssh

launch_ssh(‘<your_ngrok_token>’, ‘<ssh_password>’)

After pasting the above text in the text box, replace the “<your_ngrok_token>” with your ngrok token on https://dashboard.ngrok.com/get-started/your-authtoken and “<ssh_password>” with the password of your SSH. Now, just hit the run button and wait for the code execution to be completed. This code is going to update and then install some of the important tools. If you wish to be add more tools, you can install after connecting to SSH or just by prepending “!” before the command. If you wish more tools to be added in the script above, you can suggest me by commenting below.

(All the tools installed via the code above will be available in /content directory. After connecting to SSH, you will be in ~/ or /root directory.)

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store