android上面netstat -ano | findstr "5037"执行错误:netstat: Unknown option o

在androidN上,通过nmap扫描出一个端口(48333)被打开,端口号超过10000,应该是某个应用开启的,为此需要确定是哪个应用开启的这个端口。

使用如下命令查看提示错误:

sp9861e_1h10:/ # netstat -ano | findstr "48333"
/system/bin/sh: findstr: not found
usage: netstat [-pWrxwutneal]

Display networking information.

-r  Display routing table.
-a  Display all sockets (Default: Connected).
-l  Display listening server sockets.
-t  Display TCP sockets.
-u  Display UDP sockets.
-w  Display Raw sockets.
-x  Display Unix sockets.
-e  Display other/more information.
-n  Don't resolve names.
-W  Wide Display.
-p  Display PID/Program name for sockets.

netstat: Unknown option o

改用如下命令可一次查看到什么应用开启的该端口,即应用PID,非常好用:

 netstat -pnl | grep 48333


你可能感兴趣的:(android上面netstat -ano | findstr "5037"执行错误:netstat: Unknown option o)