Jump to content

socket_create


pv6999

Recommended Posts

hi ,

 

i try to create my own TCP paquets with  php socket function with differents flags like (SYN, RST, ACK...) , i found an exemple to do ICMP paquet with socket_create(AF_INET, SOCK_RAW, 1)

ex :

$type= "\x08";

$code= "\x00";

$checksum= "\x00\x00";

$identifier = "\x00\x00";

$seqNumber = "\x00\x00";

 

How can i use socket_create(AF_INET, SOCK_RAW, 6)  to create my paquets.

 

thanks

Link to comment
https://forums.phpfreaks.com/topic/132123-socket_create/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.