亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
樓主: wojiaohesen
打印 上一主題 下一主題

共享:linux arp 欺騙程序 [復(fù)制鏈接]

論壇徽章:
0
31 [報告]
發(fā)表于 2009-09-15 10:37 |只看該作者
樓主寫個通過MAC地址找IP的程序吧。。

論壇徽章:
0
32 [報告]
發(fā)表于 2009-09-15 14:31 |只看該作者
./darp ip ?
沒有作用

論壇徽章:
0
33 [報告]
發(fā)表于 2009-09-15 17:41 |只看該作者
郁悶,我拿LZ的code交叉編譯不過,愁死我了.
mipsel-linux-gcc -Wall -o darp darp.c
In file included from darp.c:9:
/opt/buildroot-gcc342/bin/../lib/gcc/mipsel-linux-uclibc/3.4.2/../../../../mipsel-linux-uclibc/sys-include/linux/filter.h:21: error: parse error before "__u16"
/opt/buildroot-gcc342/bin/../lib/gcc/mipsel-linux-uclibc/3.4.2/../../../../mipsel-linux-uclibc/sys-include/linux/filter.h:23: error: parse error before "jf"
/opt/buildroot-gcc342/bin/../lib/gcc/mipsel-linux-uclibc/3.4.2/../../../../mipsel-linux-uclibc/sys-include/linux/filter.h:24: error: parse error before "k"
In file included from darp.c:16:
/opt/buildroot-gcc342/bin/../lib/gcc/mipsel-linux-uclibc/3.4.2/../../../../mipsel-linux-uclibc/sys-include/linux/netlink.h:22: error: parse error before "__u32"
/opt/buildroot-gcc342/bin/../lib/gcc/mipsel-linux-uclibc/3.4.2/../../../../mipsel-linux-uclibc/sys-include/linux/netlink.h:28: error: parse error before "__u32"
/opt/buildroot-gcc342/bin/../lib/gcc/mipsel-linux-uclibc/3.4.2/../../../../mipsel-linux-uclibc/sys-include/linux/netlink.h:30: error: parse error before "nlmsg_flags"
/opt/buildroot-gcc342/bin/../lib/gcc/mipsel-linux-uclibc/3.4.2/../../../../mipsel-linux-uclibc/sys-include/linux/netlink.h:31: error: parse error before "nlmsg_seq"
/opt/buildroot-gcc342/bin/../lib/gcc/mipsel-linux-uclibc/3.4.2/../../../../mipsel-linux-uclibc/sys-include/linux/netlink.h:32: error: parse error before "nlmsg_pid"
/opt/buildroot-gcc342/bin/../lib/gcc/mipsel-linux-uclibc/3.4.2/../../../../mipsel-linux-uclibc/sys-include/linux/netlink.h:83: error: field `msg' has incomplete type
In file included from darp.c:17:
/opt/buildroot-gcc342/bin/../lib/gcc/mipsel-linux-uclibc/3.4.2/../../../../mipsel-linux-uclibc/sys-include/linux/rtnetlink.h:253: error: parse error before "__u32"
/opt/buildroot-gcc342/bin/../lib/gcc/mipsel-linux-uclibc/3.4.2/../../../../mipsel-linux-uclibc/sys-include/linux/rtnetlink.h:255: error: parse error before "rta_expires"
/opt/buildroot-gcc342/bin/../lib/gcc/mipsel-linux-uclibc/3.4.2/../../../../mipsel-linux-uclibc/sys-include/linux/rtnetlink.h:256: error: parse error before "rta_error"
/opt/buildroot-gcc342/bin/../lib/gcc/mipsel-linux-uclibc/3.4.2/../../../../mipsel-linux-uclibc/sys-include/linux/rtnetlink.h:257: error: parse error before "rta_used"
/opt/buildroot-gcc342/bin/../lib/gcc/mipsel-linux-uclibc/3.4.2/../../../../mipsel-linux-uclibc/sys-include/linux/rtnetlink.h:260: error: parse error before "rta_id"
/opt/buildroot-gcc342/bin/../lib/gcc/mipsel-linux-uclibc/3.4.2/../../../../mipsel-linux-uclibc/sys-include/linux/rtnetlink.h:261: error: parse error before "rta_ts"
/opt/buildroot-gcc342/bin/../lib/gcc/mipsel-linux-uclibc/3.4.2/../../../../mipsel-linux-uclibc/sys-include/linux/rtnetlink.h:262: error: parse error before "rta_tsage"
/opt/buildroot-gcc342/bin/../lib/gcc/mipsel-linux-uclibc/3.4.2/../../../../mipsel-linux-uclibc/sys-include/linux/rtnetlink.h:333: error: parse error before "__s32"
/opt/buildroot-gcc342/bin/../lib/gcc/mipsel-linux-uclibc/3.4.2/../../../../mipsel-linux-uclibc/sys-include/linux/rtnetlink.h:359: error: parse error before "__u16"
/opt/buildroot-gcc342/bin/../lib/gcc/mipsel-linux-uclibc/3.4.2/../../../../mipsel-linux-uclibc/sys-include/linux/rtnetlink.h:361: error: parse error before "ndm_type"
/opt/buildroot-gcc342/bin/../lib/gcc/mipsel-linux-uclibc/3.4.2/../../../../mipsel-linux-uclibc/sys-include/linux/rtnetlink.h:404: error: parse error before "__u32"
/opt/buildroot-gcc342/bin/../lib/gcc/mipsel-linux-uclibc/3.4.2/../../../../mipsel-linux-uclibc/sys-include/linux/rtnetlink.h:406: error: parse error before "ndm_updated"
/opt/buildroot-gcc342/bin/../lib/gcc/mipsel-linux-uclibc/3.4.2/../../../../mipsel-linux-uclibc/sys-include/linux/rtnetlink.h:407: error: parse error before "ndm_refcnt"
/opt/buildroot-gcc342/bin/../lib/gcc/mipsel-linux-uclibc/3.4.2/../../../../mipsel-linux-uclibc/sys-include/linux/rtnetlink.h:519: error: parse error before "__u32"
/opt/buildroot-gcc342/bin/../lib/gcc/mipsel-linux-uclibc/3.4.2/../../../../mipsel-linux-uclibc/sys-include/linux/rtnetlink.h:521: error: parse error before "tcm_info"
darp.c:120: error: parse error before "__be16"
darp.c: In function `gateway_on_nic':
darp.c:277: error: invalid application of `sizeof' to incomplete type `nlmsghdr'
darp.c:308: error: invalid application of `sizeof' to incomplete type `nlmsghdr'
darp.c:310: error: invalid application of `sizeof' to incomplete type `nlmsghdr'
darp.c:312: error: dereferencing pointer to incomplete type
darp.c:312: error: invalid application of `sizeof' to incomplete type `nlmsghdr'
darp.c:313: error: dereferencing pointer to incomplete type
darp.c:314: error: dereferencing pointer to incomplete type
darp.c:317: error: invalid application of `sizeof' to incomplete type `nlmsghdr'
darp.c:332: error: invalid application of `sizeof' to incomplete type `nlmsghdr'
darp.c:332: error: dereferencing pointer to incomplete type
darp.c:332: error: invalid application of `sizeof' to incomplete type `nlmsghdr'
darp.c:332: error: dereferencing pointer to incomplete type
darp.c:332: error: dereferencing pointer to incomplete type
darp.c:332: error: dereferencing pointer to incomplete type
darp.c:332: warning: left-hand operand of comma expression has no effect
darp.c:334: error: invalid application of `sizeof' to incomplete type `nlmsghdr'
darp.c:339: error: dereferencing pointer to incomplete type
darp.c:339: error: invalid application of `sizeof' to incomplete type `nlmsghdr'
darp.c:357: error: invalid application of `sizeof' to incomplete type `nlmsghdr'
darp.c:359: error: dereferencing pointer to incomplete type
darp.c:359: error: invalid application of `sizeof' to incomplete type `nlmsghdr'
darp.c: In function `pinghost':
darp.c:402: error: elements of array `sfilter' have incomplete type
darp.c:403: warning: excess elements in struct initializer
darp.c:403: warning: (near initialization for `sfilter[0]')
darp.c:403: warning: excess elements in struct initializer
darp.c:403: warning: (near initialization for `sfilter[0]')
darp.c:403: warning: excess elements in struct initializer
darp.c:403: warning: (near initialization for `sfilter[0]')
darp.c:403: warning: excess elements in struct initializer
darp.c:403: warning: (near initialization for `sfilter[0]')
darp.c:404: warning: excess elements in struct initializer
darp.c:404: warning: (near initialization for `sfilter[1]')
darp.c:404: warning: excess elements in struct initializer
darp.c:404: warning: (near initialization for `sfilter[1]')
darp.c:404: warning: excess elements in struct initializer
darp.c:404: warning: (near initialization for `sfilter[1]')
darp.c:404: warning: excess elements in struct initializer
darp.c:404: warning: (near initialization for `sfilter[1]')
darp.c:405: warning: excess elements in struct initializer
darp.c:405: warning: (near initialization for `sfilter[2]')
darp.c:405: warning: excess elements in struct initializer
darp.c:405: warning: (near initialization for `sfilter[2]')
darp.c:405: warning: excess elements in struct initializer
darp.c:405: warning: (near initialization for `sfilter[2]')
darp.c:405: warning: excess elements in struct initializer
darp.c:405: warning: (near initialization for `sfilter[2]')
darp.c:406: warning: excess elements in struct initializer
darp.c:406: warning: (near initialization for `sfilter[3]')
darp.c:406: warning: excess elements in struct initializer
darp.c:406: warning: (near initialization for `sfilter[3]')
darp.c:406: warning: excess elements in struct initializer
darp.c:406: warning: (near initialization for `sfilter[3]')
darp.c:406: warning: excess elements in struct initializer
darp.c:406: warning: (near initialization for `sfilter[3]')
darp.c:407: warning: excess elements in struct initializer
darp.c:407: warning: (near initialization for `sfilter[4]')
darp.c:407: warning: excess elements in struct initializer
darp.c:407: warning: (near initialization for `sfilter[4]')
darp.c:407: warning: excess elements in struct initializer
darp.c:407: warning: (near initialization for `sfilter[4]')
darp.c:407: warning: excess elements in struct initializer
darp.c:407: warning: (near initialization for `sfilter[4]')
darp.c:410: warning: excess elements in struct initializer
darp.c:410: warning: (near initialization for `sfilter[5]')
darp.c:410: warning: excess elements in struct initializer
darp.c:410: warning: (near initialization for `sfilter[5]')
darp.c:410: warning: excess elements in struct initializer
darp.c:410: warning: (near initialization for `sfilter[5]')
darp.c:410: warning: excess elements in struct initializer
darp.c:410: warning: (near initialization for `sfilter[5]')
darp.c:411: warning: excess elements in struct initializer
darp.c:411: warning: (near initialization for `sfilter[6]')
darp.c:411: warning: excess elements in struct initializer
darp.c:411: warning: (near initialization for `sfilter[6]')
darp.c:411: warning: excess elements in struct initializer
darp.c:411: warning: (near initialization for `sfilter[6]')
darp.c:411: warning: excess elements in struct initializer
darp.c:411: warning: (near initialization for `sfilter[6]')
darp.c:412: warning: excess elements in struct initializer
darp.c:412: warning: (near initialization for `sfilter[7]')
darp.c:412: warning: excess elements in struct initializer
darp.c:412: warning: (near initialization for `sfilter[7]')
darp.c:412: warning: excess elements in struct initializer
darp.c:412: warning: (near initialization for `sfilter[7]')
darp.c:412: warning: excess elements in struct initializer
darp.c:412: warning: (near initialization for `sfilter[7]')
darp.c:402: error: array size missing in 'sfilter'
darp.c:402: error: storage size of 'sfilter' isn't known
darp.c:439: error: invalid application of `sizeof' to incomplete type `sock_filter'
darp.c:439: warning: division by zero
darp.c:402: warning: unused variable `sfilter'
darp.c: At top level:
darp.c:481: error: parse error before "__be16"
darp.c: In function `setup_arpmsg':
darp.c:491: error: `dsthwa' undeclared (first use in this function)
darp.c:491: error: (Each undeclared identifier is reported only once
darp.c:491: error: for each function it appears in.)
darp.c:492: error: `arpmsg' undeclared (first use in this function)
darp.c:496: error: `srchwa' undeclared (first use in this function)
darp.c:500: error: `ha_type' undeclared (first use in this function)
darp.c:504: error: `op' undeclared (first use in this function)
darp.c:506: error: `sha' undeclared (first use in this function)
darp.c:507: error: `spa' undeclared (first use in this function)
darp.c:509: error: `tha' undeclared (first use in this function)
darp.c:514: error: `tpa' undeclared (first use in this function)
make: *** [default] Error 1

論壇徽章:
0
34 [報告]
發(fā)表于 2009-09-15 18:23 |只看該作者
環(huán)境不一樣?

論壇徽章:
0
35 [報告]
發(fā)表于 2009-09-16 14:15 |只看該作者
支持原創(chuàng)
只是讓目標(biāo)不能上網(wǎng)么?功能做到和windows下zxarp一樣就好了

論壇徽章:
0
36 [報告]
發(fā)表于 2009-09-18 17:01 |只看該作者
學(xué)習(xí)了

論壇徽章:
0
37 [報告]
發(fā)表于 2009-09-19 21:08 |只看該作者

回復(fù) #1 wojiaohesen 的帖子

學(xué)習(xí)中。。。。
請教一個問題,就是函數(shù)int bindnicbyaddr (int sock, in_addr_t addr);是做什么用的,里面的ioctl的參數(shù)很少用到 ,查了UNP,也不是很明白
看了看,關(guān)鍵一句是在if (-1 != bind (sock, (struct sockaddr *) &paddr, (socklen_t) len))。
為什么綁定目的IP?
為什么綁定費這么大事?
if (!((dstaddr ^ (*(struct sockaddr_in *) &ifinfo->ifr_addr).sin_addr.s_addr) &
            netmask.sin_addr.s_addr))

論壇徽章:
0
38 [報告]
發(fā)表于 2009-09-28 15:30 |只看該作者
arm_v6_be_uclibc-gcc -o darp darp.c -g2 交叉編譯成功
但在我的路由器里面運行效果似乎不明顯,我是新手,估計是我不會玩。

論壇徽章:
0
39 [報告]
發(fā)表于 2009-10-04 15:31 |只看該作者
做個記號。。

下次要用到再找你。。。

論壇徽章:
0
40 [報告]
發(fā)表于 2009-10-08 00:11 |只看該作者
嗯,我也做個記號。。
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP