Giter Site home page Giter Site logo

telegram-get-remote-ip's Introduction

Telegram get remote IP

New 2023 version written in python, against bash.

This script is intended to be used to determine the IP address of the interlocutor in the telegram messenger. You must have tshark installed to use it.

Working on MacOS, Linux and Windows.

Thx @WonderMr for adding Windows support and other improovements.

TechCrunch wrote about the utility — Telegram is still leaking user IP addresses to contacts

Attention! To determine the IP address, you must be in each other's contacts.

Get caller IP

How to use?

  1. Install Telegram desktop client on Linux or Mac.
  2. Install tshark (sudo apt install tshark or download for macOS here, it's comes with wireshark).
  3. Run script, call and wait for an answer.
  4. Profit! You have received the IP address of the interlocutor.

Get & Run (Ubuntu 20 example)

$ sudo apt update
$ sudo apt install -y python3-pip python3-venv tshark
$ git clone https://github.com/n0a/telegram-get-remote-ip
$ cd telegram-get-remote-ip
$ python3 -m venv venv
$ source ./venv/bin/activate
$ sudo pip3 install -r requirements.txt
$ sudo python3 tg_get_ip.py

Or specify the interface immediately at startup:

$ sudo python3 -i en0 tg_get_ip.py

PS. Possible work with termux on android smartphones. Root authority is required to capture traffic.

Docker

Alternatively to the previous Ubuntu + pyenv way of running it, a Dockerfile is provided, just build it with:

$ docker build ./ -t telegram-get-remote-ip

And run it with:

$ docker run -it --cap-add=NET_RAW --cap-add=NET_ADMIN telegram-get-remote-ip

Для русскоязыных пользователей

Более подробно об утилите можно почитать у меня в блоге: https://n0a.pw/telegram-get-remote-ip/

telegram-get-remote-ip's People

Contributors

n0a avatar wondermr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

telegram-get-remote-ip's Issues

Describe how Telegram calls work.

I think it works through a peer-to-peer setting, it's not okay to have each other's contacts. In Telegram Settings -> Privacy... -> Calls -> Peer-to-Peer, both the recipient and the listener must set Peer-to-Peer depending on the current relationship type such as Everybody, Contacts or Nobody to receive get the corresponding target IP address.

Telegram notes that: "Disabling peer-to-peer will relay all calls through Telegram servers to avoid revealing your IP address, but may decrease audio and video quality."

This explanation will help everyone better understand why the tool is not working as expected and how to make it work. This is a great tool.

Shows My info ?

It should output the target's information, not mine.

I run the script, then I call the target, but it outputs my IP, etc.

Unable to Use!!

It just shows "Capturing traffic, please wait..." after selecting interface and calling to a mutual contact in Telegram Desktop. Using Windows, downloaded all modules, what's the problem? Please help.

Termux

Как запустить данную программу на Termux? Всё поставил, запускаю файл tg_get_ip.py, и выдаёт ошибку, что нет tshark, хотя этот пакет установлен
image
В чём может быть проблема?

Found STUN packe

[+]Screenshot from 2023-10-28 15-44-51t: 192.168.154.251(fploit) (N/A) -> (26.26.26.1(None) DoD Network Information Center). it's xor_mapped_address: None

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.