Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #@title Rapidleech Colab by l33tb0mb3r { vertical-output: true, display-mode: "form" }
- ngrok_token = "Put_your_ngrok_token" #@param {type:"string"}
- #@markdown 1. **Change default ngrok token to your ngrok token**
- #@markdown https://dashboard.ngrok.com/auth
- #@markdown 2. **Click Start and Wait**
- #@markdown
- #@markdown Your files are in `/content/rapidleech/files`
- #@markdown
- #@markdown **Optional:**
- #@markdown
- #@markdown If you want to direct download to your GDrive,
- #@markdown **mount Your Drive and in Rapidleech setting or config `/content/rapidleech/configs/config.php` change download folder to `../drive/MyDrive`.**
- #@markdown If you do so, you can't view your files directly in Rapidleech webpage. You have to view in GDrive.
- # install php jq
- get_ipython().system_raw('apt install php jq -y')
- #Download ngrok
- ! wget -q -c -nc https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip
- ! unzip -qq -n ngrok-stable-linux-amd64.zip
- #Clone rapidleech and start
- get_ipython().system_raw('git clone https://github.com/Th3-822/rapidleech.git')
- get_ipython().system_raw('cd rapidleech && php -S 127.0.0.1:8088 &')
- #ngrok config and start
- myconfig = f"""
- authtoken: {ngrok_token}
- tunnels:
- web-app:
- addr: 8088
- proto: http
- """
- with open('ngrok.yml','w') as f:
- f.write(myconfig)
- get_ipython().system_raw('./ngrok start -all -config ./ngrok.yml &')
- !sleep 5
- #Get URL
- !curl -s http://localhost:4040/api/tunnels | jq '.tunnels[].public_url'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement