l33tb0mb3r

Rapidleech Colab

May 17th, 2021 (edited)
567
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #@title Rapidleech Colab by l33tb0mb3r { vertical-output: true, display-mode: "form" }
  2. ngrok_token = "Put_your_ngrok_token" #@param {type:"string"}
  3. #@markdown 1. **Change default ngrok token to your ngrok token**
  4. #@markdown https://dashboard.ngrok.com/auth
  5. #@markdown 2. **Click Start and Wait**
  6. #@markdown
  7. #@markdown Your files are in `/content/rapidleech/files`
  8. #@markdown
  9. #@markdown **Optional:**
  10. #@markdown
  11. #@markdown If you want to direct download to your GDrive,
  12. #@markdown **mount Your Drive and in Rapidleech setting or config `/content/rapidleech/configs/config.php` change download folder to `../drive/MyDrive`.**
  13. #@markdown If you do so, you can't view your files directly in Rapidleech webpage. You have to view in GDrive.
  14. # install php jq
  15. get_ipython().system_raw('apt install php jq -y')
  16.  
  17. #Download ngrok
  18. ! wget -q -c -nc https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip
  19. ! unzip -qq -n ngrok-stable-linux-amd64.zip
  20.  
  21. #Clone rapidleech and start
  22. get_ipython().system_raw('git clone https://github.com/Th3-822/rapidleech.git')
  23. get_ipython().system_raw('cd rapidleech && php -S 127.0.0.1:8088 &')
  24.  
  25. #ngrok config and start
  26. myconfig = f"""
  27. authtoken: {ngrok_token}
  28. tunnels:
  29.  web-app:
  30.    addr: 8088
  31.    proto: http
  32. """
  33. with open('ngrok.yml','w') as f:
  34.   f.write(myconfig)
  35. get_ipython().system_raw('./ngrok start -all -config ./ngrok.yml &')
  36. !sleep 5
  37. #Get URL
  38. !curl -s http://localhost:4040/api/tunnels | jq '.tunnels[].public_url'
RAW Paste Data