简体   繁体   中英

PHP server raw packet listening

I need to make a server on php that would write me raw packets (full, not some data parts) send to it... is it possible? Setting out listen port and ip would assume TCP/IP, and won't receive full raw packet... any ideas on how to do it right?

What I basically need is to display full TCP/IP packet with all headers. ALL!

Instead of opening a TCP socket, you can open a raw socket.

http://php.net/socket-create

Instead of SOCK_STREAM use SOCK_RAW .

If you are into linux and you are trying WIFI hacks, install aircrack-ng, setup airmon-ng and listen through this interface (non-blocking benefits) using something like ngrep mon0 .

ngrep tho can be used to watch any interface, eg eth0 (see its manpage).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM