sock_raw PHP

Discussion in 'Programming/Scripts' started by PV6999, Nov 13, 2008.

  1. PV6999

    PV6999 New Member

    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
     

Share This Page