Use wireshark to grab QQ WeChat package to get ip location

There are also a lot of qq positioning software on the Internet, the principle is basically the same, but now pictures, messages, videos, etc. go to Tencent's server, all can only be obtained through qq phone.

QQ

Use wireshark to capture packets

Insert picture description here

ctrl + f sets the character string, group details, width and width, 020048, and then calls QQ to a friend, 020048 is the QQ UDP 72-byte message header

Insert picture description here

This method has certain limitations. If the other party uses a mobile network or an internet cafe server, there may be some differences between the operator and the actual area, but if it is an enterprise network (fixed ip), home wifi, then the accuracy can be Reach the street where the other party is located, or the attachment of the community.

Opengps for positioning, if you have a better IP positioning method, you can.

IP location site

Insert picture description here

As far as the actual situation is concerned, the above ip is the IP of a certain operator, and the positioning is only determined to the district (county) where the friend is located. There is no high-precision positioning, but you can roughly estimate the location of the friend. The accuracy mentioned above 2422 meters is not within the range of friends (actually tens of kilometers away), it should be an export ip of the operator.

Insert picture description here

WeChat

Actually works the same
Insert picture description here

What is interesting is that I caught two ips that communicated with me at the same time. One of them is a WeChat phone, and the other is unknown. After trying, the udp header of the WeChat phone should be 7500.

Insert picture description here

Insert picture description here

This accuracy is still very close and within 30km

Insert picture description here

Find out the mobile wifi or mobile phone card that my WeChat friend currently uses

Insert picture description here

This method is not necessarily accurate, but can meet the needs of positioning to a certain extent.

Published 70 original articles · praised 17 · visits 6691

Guess you like

Origin blog.csdn.net/qq_38626043/article/details/104296394