O
O
Oleg Filimonenko2018-05-03 20:24:10
Android
Oleg Filimonenko, 2018-05-03 20:24:10

How to find out the ports in use on an Android device?

I have an Android smartphone with an installed application that uses the Internet. Let, for example, it will be Aliexpress... I am in a place with unverified open access points. At home, an SSH tunnel is set up and up. The port binding looks something like this: ssh -N -p 22 [email protected] -L 80:localhost:80
It is clear that for HTTP / HTTPS traffic I need 80/422 ports. Roughly speaking, the browser accessing the local port 80 will use the 80th port of the SSH machine. It is also possible to forward POP3 and SMTP ports for the mail client. Question: After all, the Ali application can use its own unique ports for its application, not only 80/422/8080 and the like, aka the most common ones. Are there any screens that allow you to track which ports this or that application connects through, or if possible, is it possible to wrap ALL traffic GENERALLY via SSH? What does the command look like that will collapse all my connections and give the same port to the application that requires the port? Thank you if you have the patience to answer this perhaps banal and stupid question.
UDP: Root received on the telephore. Full access to the server with administrator rights.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
pfg21, 2018-05-03
@Redproxima

put busybox on the telepon, run lsof -i in it ??
connect through a router with openwrt, run tcpdump on it and dump the entire stream from the telepon ip.
open the dump through wireshark and take your time to track what-where-why.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question