Skip to content

🚒 Used to bypass restricted networks that allows only social networks (cruise ships network, ...).

Notifications You must be signed in to change notification settings

filippofinke/socks5-over-telegram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

15 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

SOCKS5 over telegram


Description:

Used to bypass restricted networks that allow only social networks (cruise ships network, ...).

Concept:

Concept

How to:

  1. Start socks server on a server with free internet.
# PORT: The socks5 server port.
# USERNAME: The socks5 auth username.
# PASSWORD: The socks5 auth password.

php src/socks-server.php 127.0.0.1:PORT USERNAME:PASSWORD
  1. Start local to telegram server on current pc:
# PORT: Port for the local tunnel to telegram.
# @channel: The telegram channel to send traffic to.

php src/local_to_telegram.php.php 127.0.0.1:PORT @channel
  1. Start the telegram to socks server on the external server:
# SOCKS: The socks5 server IP.
# PORT: The socks5 server PORT.
# @channel: The telegram channel to send traffic to.

php src/telegram_to_socks.php.php SOCKS:PORT @channel
  1. Test it:
# PORT: The local to telegram server port.

curl --socks5-hostname USERNAME:PASSWORD@127.0.0.1:PORT ifconfig.co

! NOTE: You must use two telegram bots within the same channel

If you run forward scripts for the first time you will be asked to log in, you have to insert an API id and API hash generated by telegram and log in as bot with the BotFather API token.

Todo:

  • Fix big requests
  • Demo

Status:

  • Socks server βœ…
  • TCP Forwarder βœ…
  • Telegram comunication βœ…
  • Project working with minor bugs βœ…

About

🚒 Used to bypass restricted networks that allows only social networks (cruise ships network, ...).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages