Привет! Скачал утсюда http://field.h1.ru/hack/exploit/ipspoof.c исходник ipspoof.c, а откомпилировать не получается!
FreeBSВ 5.4
Ругается очень сильно:ipspoof.c: In function `tcp_check':
ipspoof.c:57: error: missing terminating " character
ipspoof.c:58: error: `addl' undeclared (first use in this function)
ipspoof.c:58: error: (Each undeclared identifier is reported only once
ipspoof.c:58: error: for each function it appears in.)
ipspoof.c:58: error: syntax error before '%' token
ipspoof.c:61: error: missing terminating " character
ipspoof.c:65: error: missing terminating " character
ipspoof.c:66: error: `movl' undeclared (first use in this function)
ipspoof.c:66: error: syntax error before '%' token
ipspoof.c:69:16: invalid suffix "f" on integer constant
ipspoof.c:88:18: invalid suffix "b" on integer constant
ipspoof.c:92:16: invalid suffix "f" on integer constant
ipspoof.c:97:18: invalid suffix "b" on integer constant
ipspoof.c:101:16: invalid suffix "f" on integer constant
ipspoof.c:107:16: invalid suffix "f" on integer constant
ipspoof.c:115: error: missing terminating " character
ipspoof.c: In function `create_ip':
ipspoof.c:151: error: invalid application of `sizeof' to incomplete type `iphdr'
ipspoof.c:152: warning: assignment from incompatible pointer type
ipspoof.c:153: error: dereferencing pointer to incomplete type
ipspoof.c:154: error: dereferencing pointer to incomplete type
ipspoof.c:155: error: dereferencing pointer to incomplete type
ipspoof.c:156: error: dereferencing pointer to incomplete type
ipspoof.c:157: error: dereferencing pointer to incomplete type
ipspoof.c:158: error: dereferencing pointer to incomplete type
ipspoof.c:159: error: dereferencing pointer to incomplete type
ipspoof.c:160: error: dereferencing pointer to incomplete type
ipspoof.c:161: error: dereferencing pointer to incomplete type
ipspoof.c:162: error: dereferencing pointer to incomplete type
ipspoof.c:163: error: dereferencing pointer to incomplete type
ipspoof.c:163: error: invalid application of `sizeof' to incomplete type `iphdr'
ipspoof.c:164: error: dereferencing pointer to incomplete type
ipspoof.c:164: error: invalid application of `sizeof' to incomplete type `iphdr'
ipspoof.c:165: error: invalid application of `sizeof' to incomplete type `iphdr'
ipspoof.c: In function `create_tcp':
ipspoof.c:175: warning: assignment from incompatible pointer type
ipspoof.c: In function `sendpack':
ipspoof.c:202: error: `NULL' undeclared (first use in this function)
ipspoof.c:202: warning: passing arg 1 of `create_tcp' makes integer from pointer without a cast
ipspoof.c:202: warning: passing arg 2 of `create_tcp' makes integer from pointer without a cast
ipspoof.c:204: warning: passing arg 1 of `create_ip' makes integer from pointer without a cast
ipspoof.c:204: warning: passing arg 2 of `create_ip' makes integer from pointer without a cast
ipspoof.c:205: warning: assignment from incompatible pointer type
ipspoof.c:206: error: invalid application of `sizeof' to incomplete type `iphdr'
ipspoof.c:207: error: invalid application of `sizeof' to incomplete type `iphdr'
Интересно, кто-нибудь еще пытался это сделать?
Как я вижу очень много проблем с структурой iphdr, кто она такая, где она объявляется я не знаю! Также очень пугает постояное несоответствие типов.
А на асемблеровские вставки мне вообще страшно смотреть!
Помогите откомпилировать!