打倒超级大流氓(DRCOM 802.1X协议版)的方法 --
-
- 帖子: 79
- 注册时间: 2008-05-16 22:14
那个我不知道我是不是 802.1X 协议版的, Windows 下名字为 “Dr.COM 用户认证程序 (v3.46)(d13)”
[email protected]
无奈啊.
谁知道啊....help me !!!!SOS
[email protected]
无奈啊.
谁知道啊....help me !!!!SOS
-
- 帖子: 37
- 注册时间: 2008-05-25 16:01
- Duron
- 帖子: 54
- 注册时间: 2007-02-10 22:48
- dancer
- 帖子: 50
- 注册时间: 2007-10-13 0:02
- 来自: 鸟学校
我也要,谢谢啦~~辛苦啦~~
[email protected]
[email protected]
-
- 帖子: 3
- 注册时间: 2008-06-22 22:55
dr.com v3.53的可以吗?
我想问一下楼主的那个方法在v3.53的版本下可以吗?
我们学校用这个东西真的好害人,学网络的连ping 都ping 不通,tracrouter用都不会用.
我们学校用这个东西真的好害人,学网络的连ping 都ping 不通,tracrouter用都不会用.
- xiajiebuhui
- 帖子: 193
- 注册时间: 2008-07-17 13:24
- 联系:
-
- 帖子: 6
- 注册时间: 2008-10-18 9:14
Re: 打倒超级大流氓(DRCOM 802.1X协议版)的方法 --
我想要hackjan#gmail.com
-
- 帖子: 4
- 注册时间: 2008-10-15 7:42
-
- 帖子: 23
- 注册时间: 2008-11-05 9:24
Re: 打倒超级大流氓(DRCOM 802.1X协议版)的方法 --
问题是在校园网和电信之间怎么切换!我把电信设置成功后,换校园网就费了,并起桌面连接的图标都没有了!
-
- 帖子: 6
- 注册时间: 2008-10-08 15:56
-
- 帖子: 6
- 注册时间: 2008-11-01 17:51
Re: 打倒超级大流氓(DRCOM 802.1X协议版)的方法 --
8.10可以上网不。
我的是网卡打开成功
可就是上不了网
我的是网卡打开成功
可就是上不了网
-
- 帖子: 5
- 注册时间: 2008-11-08 22:47
Re: 打倒超级大流氓(DRCOM 802.1X协议版)的方法 --
heng@heng-desktop:~$ cd /home/heng/桌面/新/libpcap-0.9.5/configure
bash: cd: /home/heng/桌面/新/libpcap-0.9.5/configure: Not a directory
heng@heng-desktop:~$ cd /home/heng/桌面/新/libpcap-0.9.5/
heng@heng-desktop:~/桌面/新/libpcap-0.9.5$ ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking gcc version... 4
checking for inline... inline
checking for __attribute__... yes
checking for u_int8_t using gcc... yes
checking for u_int16_t using gcc... yes
checking for u_int32_t using gcc... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking sys/ioccom.h usability... no
checking sys/ioccom.h presence... no
checking for sys/ioccom.h... no
checking sys/sockio.h usability... no
checking sys/sockio.h presence... no
checking for sys/sockio.h... no
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for netinet/if_ether.h... yes
checking for ANSI ioctl definitions... yes
checking for strerror... yes
checking for strlcpy... no
checking for vsnprintf... yes
checking for snprintf... yes
checking for library containing gethostbyname... none required
checking for library containing socket... none required
checking for library containing putmsg... none required
checking for ether_hostton... yes
checking whether ether_hostton is declared... no
checking netinet/ether.h usability... yes
checking netinet/ether.h presence... yes
checking for netinet/ether.h... yes
checking whether ether_hostton is declared... yes
checking if --disable-protochain option is specified... enabled
checking packet capture type... linux
checking for getifaddrs... yes
checking ifaddrs.h usability... yes
checking ifaddrs.h presence... yes
checking for ifaddrs.h... yes
checking if --enable-ipv6 option is specified... no
checking whether to build optimizer debugging code... no
checking whether to build parser debugging code... no
checking Linux kernel version... 2
checking if if_packet.h has tpacket_stats defined... yes
checking whether we have /proc/net/dev... yes
checking whether we have DAG API headers... no (/usr/local/include)
checking whether we have Septel API... no
checking for flex... flex
checking for flex 2.4 or higher... yes
checking for bison... no
configure: WARNING: don't have both flex and bison; reverting to lex/yacc
checking for capable lex... yes
checking for ranlib... ranlib
checking if sockaddr struct has sa_len member... no
checking if sockaddr_storage struct exists... yes
checking if dl_hp_ppa_info_t struct has dl_module_id_1 member... no
checking if unaligned accesses fail... no
checking for a BSD-compatible install... /usr/bin/install -c
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
heng@heng-desktop:~/桌面/新/libpcap-0.9.5$ make
gcc -O2 -I. -DHAVE_CONFIG_H -D_U_="__attribute__((unused))" -c ./pcap-linux.c
gcc -O2 -I. -DHAVE_CONFIG_H -D_U_="__attribute__((unused))" -c ./fad-getad.c
sed -e 's/.*/static const char pcap_version_string[] = "libpcap version &";/' ./VERSION > version.h
gcc -O2 -I. -DHAVE_CONFIG_H -D_U_="__attribute__((unused))" -c ./pcap.c
gcc -O2 -I. -DHAVE_CONFIG_H -D_U_="__attribute__((unused))" -c ./inet.c
gcc -O2 -I. -DHAVE_CONFIG_H -D_U_="__attribute__((unused))" -c ./gencode.c
gcc -O2 -I. -DHAVE_CONFIG_H -D_U_="__attribute__((unused))" -c ./optimize.c
gcc -O2 -I. -DHAVE_CONFIG_H -D_U_="__attribute__((unused))" -c ./nametoaddr.c
gcc -O2 -I. -DHAVE_CONFIG_H -D_U_="__attribute__((unused))" -c ./etherent.c
gcc -O2 -I. -DHAVE_CONFIG_H -D_U_="__attribute__((unused))" -c ./savefile.c
rm -f bpf_filter.c
ln -s ./bpf/net/bpf_filter.c bpf_filter.c
gcc -O2 -I. -DHAVE_CONFIG_H -D_U_="__attribute__((unused))" -c bpf_filter.c
gcc -O2 -I. -DHAVE_CONFIG_H -D_U_="__attribute__((unused))" -c ./bpf_image.c
gcc -O2 -I. -DHAVE_CONFIG_H -D_U_="__attribute__((unused))" -c ./bpf_dump.c
lex -t scanner.l > $$.scanner.c; mv $$.scanner.c scanner.c
yacc -d grammar.y
make: yacc: Command not found
make: *** [grammar.c] Error 127
heng@heng-desktop:~/桌面/新/libpcap-0.9.5$ sudo make install
[sudo] password for heng:
yacc -d grammar.y
make: yacc: Command not found
make: *** [grammar.c] Error 127
heng@heng-desktop:~/桌面/新/libpcap-0.9.5$ sudo make install
yacc -d grammar.y
make: yacc: Command not found
make: *** [grammar.c] Error 127
heng@heng-desktop:~/桌面/新/libpcap-0.9.5$ sudo make install
yacc -d grammar.y
make: yacc: Command not found
make: *** [grammar.c] Error 127
heng@heng-desktop:~/桌面/新/libpcap-0.9.5$ cp ./*.h /usr/include
cp: cannot create regular file `/usr/include/acconfig.h': Permission denied
cp: cannot create regular file `/usr/include/arcnet.h': Permission denied
cp: cannot create regular file `/usr/include/atmuni31.h': Permission denied
cp: cannot create regular file `/usr/include/config.h': Permission denied
cp: cannot create regular file `/usr/include/ethertype.h': Permission denied
cp: cannot create regular file `/usr/include/gencode.h': Permission denied
cp: cannot create regular file `/usr/include/llc.h': Permission denied
cp: cannot create regular file `/usr/include/nlpid.h': Permission denied
cp: cannot create regular file `/usr/include/pcap1.h': Permission denied
cp: cannot create regular file `/usr/include/pcap-bpf.h': Permission denied
cp: cannot create regular file `/usr/include/pcap-dag.h': Permission denied
cp: cannot create regular file `/usr/include/pcap-dos.h': Permission denied
cp: cannot create regular file `/usr/include/pcap.h': Permission denied
cp: cannot create regular file `/usr/include/pcap-int.h': Permission denied
cp: cannot create regular file `/usr/include/pcap-namedb.h': Permission denied
cp: cannot create regular file `/usr/include/pcap-nit.h': Permission denied
cp: cannot create regular file `/usr/include/pcap-pf.h': Permission denied
cp: cannot create regular file `/usr/include/pcap-septel.h': Permission denied
cp: cannot create regular file `/usr/include/pcap-stdinc.h': Permission denied
cp: cannot create regular file `/usr/include/pf.h': Permission denied
cp: cannot create regular file `/usr/include/ppp.h': Permission denied
cp: cannot create regular file `/usr/include/sll.h': Permission denied
cp: cannot create regular file `/usr/include/sunatmpos.h': Permission denied
cp: cannot create regular file `/usr/include/version.h': Permission denied
heng@heng-desktop:~/桌面/新/libpcap-0.9.5$ sudo ln -s /usr/lib/libpcap.so.0.9.5 /usr/lib/libpcap.a
heng@heng-desktop:~/桌面/新/libpcap-0.9.5$ sudo ln -s /usr/lib/libpcap.so.0.9.5 /usr/lib/libpcap.a
ln: creating symbolic link `/usr/lib/libpcap.a': File exists
heng@heng-desktop:~/桌面/新/libpcap-0.9.5$ sudo dhclient
Internet Systems Consortium DHCP Client V3.0.6
Copyright 2004-2007 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Listening on LPF/eth0/00:1a:92:be:5a:f6
Sending on LPF/eth0/00:1a:92:be:5a:f6
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
heng@heng-desktop:~/桌面/新/libpcap-0.9.5$ cd /home/heng/桌面/新/libmd-0.3
heng@heng-desktop:~/桌面/新/libmd-0.3$ ./configure
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
Package: libmd-0.3
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether ln -s works... (cached) yes
checking for ranlib... (cached) ranlib
checking how to run the C preprocessor... (cached) gcc -E
checking for ANSI C header files... (cached) yes
checking for fcntl.h... (cached) yes
checking for unistd.h... (cached) yes
checking for working const... (cached) yes
checking for size_t... (cached) yes
creating ./config.status
creating docs/Makefile
creating Makefile
heng@heng-desktop:~/桌面/新/libmd-0.3$ make
gcc -O3 -fPIC -I. -c -o md2c.o md2c.c
gcc -O3 -fPIC -I. -c -o md4c.o md4c.c
gcc -O3 -fPIC -I. -c -o md5c.o md5c.c
sed -e 's/mdX/md2/g' -e 's/MDX/MD2/g' mdXhl.c > md2hl.c
gcc -O3 -fPIC -I. -c -o md2hl.o md2hl.c
sed -e 's/mdX/md4/g' -e 's/MDX/MD4/g' mdXhl.c > md4hl.c
gcc -O3 -fPIC -I. -c -o md4hl.o md4hl.c
sed -e 's/mdX/md5/g' -e 's/MDX/MD5/g' mdXhl.c > md5hl.c
gcc -O3 -fPIC -I. -c -o md5hl.o md5hl.c
gcc -O3 -fPIC -I. -c -o sha.o sha.c
sed -e 's/mdX/sha/g' -e 's/MDX/SHA/g' mdXhl.c > shahl.c
gcc -O3 -fPIC -I. -c -o shahl.o shahl.c
gcc -O3 -fPIC -I. -c -o rmd160.o rmd160.c
sed -e 's/mdX/rmd160/g' -e 's/MDX/RMD160/g' mdXhl.c > rmd160hl.c
gcc -O3 -fPIC -I. -c -o rmd160hl.o rmd160hl.c
gcc -shared -o libmd.so.1.0 md2c.o md4c.o md5c.o md2hl.o md4hl.o md5hl.o sha.o shahl.o rmd160.o rmd160hl.o
sed -e 's/mdX/md2/g' -e 's/MDX/MD2/g' mdX.3 > md2.3
cat md2.copyright >> md2.3
sed -e 's/mdX/md4/g' -e 's/MDX/MD4/g' mdX.3 > md4.3
cat md4.copyright >> md4.3
sed -e 's/mdX/md5/g' -e 's/MDX/MD5/g' mdX.3 > md5.3
cat md5.copyright >> md5.3
rm -f libmd.a
ar rulv libmd.a md2c.o md4c.o md5c.o md2hl.o md4hl.o md5hl.o sha.o shahl.o rmd160.o rmd160hl.o
ar: creating libmd.a
a - md2c.o
a - md4c.o
a - md5c.o
a - md2hl.o
a - md4hl.o
a - md5hl.o
a - sha.o
a - shahl.o
a - rmd160.o
a - rmd160hl.o
ranlib libmd.a
heng@heng-desktop:~/桌面/新/libmd-0.3$ sudo make install
ln -s libmd.so.1.0 libmd.so.1
ln -s libmd.so.1.0 libmd.so
mkdir -p /usr/include
mkdir -p /usr/lib
mkdir -p /usr/man/man3
/usr/bin/install -c -g root -o root -m 644 md2.h md4.h md5.h sha.h rmd160.h \
/usr/include
/usr/bin/install -c -g root -o root -m 644 md2.3 md4.3 md5.3 \
/usr/man/man3
/usr/bin/install -c -g root -o root -m 755 libmd.so.1.0 /usr/lib
/usr/bin/install -c -g root -o root -m 755 libmd.so.1 /usr/lib
/usr/bin/install -c -g root -o root -m 755 libmd.so /usr/lib
/usr/bin/install -c -g root -o root -m 755 libmd.a /usr/lib
heng@heng-desktop:~/桌面/新/libmd-0.3$ cd /home/heng/桌面/新/cdrcom
heng@heng-desktop:~/桌面/新/cdrcom$ sudo make
gcc -c -o opentest.o opentest.c
opentest.c:1:18: error: pcap.h: No such file or directory
opentest.c:3: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
opentest.c:13: warning: ‘struct pcap_pkthdr’ declared inside parameter list
opentest.c:13: warning: its scope is only this definition or declaration, which is probably not what you want
opentest.c:14: error: expected ‘)’ before ‘*’ token
opentest.c: In function ‘main’:
opentest.c:38: warning: incompatible implicit declaration of built-in function ‘exit’
opentest.c:59: warning: incompatible implicit declaration of built-in function ‘memcpy’
opentest.c:63: warning: incompatible implicit declaration of built-in function ‘exit’
opentest.c:65: error: ‘PCAP_ERRBUF_SIZE’ undeclared (first use in this function)
opentest.c:65: error: (Each undeclared identifier is reported only once
opentest.c:65: error: for each function it appears in.)
opentest.c:66: error: ‘fp’ undeclared (first use in this function)
opentest.c:70: warning: incompatible implicit declaration of built-in function ‘exit’
opentest.c: At top level:
opentest.c:88: error: expected ‘)’ before ‘*’ token
opentest.c:95: warning: ‘struct pcap_pkthdr’ declared inside parameter list
opentest.c:96: error: conflicting types for ‘packet_handler’
opentest.c:13: error: previous declaration of ‘packet_handler’ was here
opentest.c: In function ‘packet_handler’:
opentest.c:98: error: dereferencing pointer to incomplete type
opentest.c:101: warning: incompatible implicit declaration of built-in function ‘memcpy’
opentest.c:131: warning: incompatible implicit declaration of built-in function ‘exit’
opentest.c:136: warning: incompatible implicit declaration of built-in function ‘exit’
opentest.c:139: error: ‘fp’ undeclared (first use in this function)
make: *** [opentest.o] Error 1
heng@heng-desktop:~/桌面/新/cdrcom$ sudo gcc -o drcom opentest.c getmac.c senduserid.c sendpassword.c dataset.c -lpcap -lmd
opentest.c:1:18: error: pcap.h: No such file or directory
opentest.c:3: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
opentest.c:13: warning: ‘struct pcap_pkthdr’ declared inside parameter list
opentest.c:13: warning: its scope is only this definition or declaration, which is probably not what you want
opentest.c:14: error: expected ‘)’ before ‘*’ token
opentest.c: In function ‘main’:
opentest.c:38: warning: incompatible implicit declaration of built-in function ‘exit’
opentest.c:59: warning: incompatible implicit declaration of built-in function ‘memcpy’
opentest.c:63: warning: incompatible implicit declaration of built-in function ‘exit’
opentest.c:65: error: ‘PCAP_ERRBUF_SIZE’ undeclared (first use in this function)
opentest.c:65: error: (Each undeclared identifier is reported only once
opentest.c:65: error: for each function it appears in.)
opentest.c:66: error: ‘fp’ undeclared (first use in this function)
opentest.c:70: warning: incompatible implicit declaration of built-in function ‘exit’
opentest.c: At top level:
opentest.c:88: error: expected ‘)’ before ‘*’ token
opentest.c:95: warning: ‘struct pcap_pkthdr’ declared inside parameter list
opentest.c:96: error: conflicting types for ‘packet_handler’
opentest.c:13: error: previous declaration of ‘packet_handler’ was here
opentest.c: In function ‘packet_handler’:
opentest.c:98: error: dereferencing pointer to incomplete type
opentest.c:101: warning: incompatible implicit declaration of built-in function ‘memcpy’
opentest.c:131: warning: incompatible implicit declaration of built-in function ‘exit’
opentest.c:136: warning: incompatible implicit declaration of built-in function ‘exit’
opentest.c:139: error: ‘fp’ undeclared (first use in this function)
senduserid.c:2:18: error: pcap.h: No such file or directory
senduserid.c:4: error: expected declaration specifiers or ‘...’ before ‘pcap_t’
senduserid.c: In function ‘senduid’:
senduserid.c:50: error: ‘dev’ undeclared (first use in this function)
senduserid.c:50: error: (Each undeclared identifier is reported only once
senduserid.c:50: error: for each function it appears in.)
sendpassword.c:1:18: error: pcap.h: No such file or directory
sendpassword.c:3: error: expected declaration specifiers or ‘...’ before ‘pcap_t’
sendpassword.c: In function ‘sendpwd’:
sendpassword.c:6: warning: incompatible implicit declaration of built-in function ‘strlen’
sendpassword.c:49: error: ‘dev’ undeclared (first use in this function)
sendpassword.c:49: error: (Each undeclared identifier is reported only once
sendpassword.c:49: error: for each function it appears in.)
dataset.c: In function ‘test’:
dataset.c:6: warning: incompatible implicit declaration of built-in function ‘printf’
heng@heng-desktop:~/桌面/新/cdrcom$ sudo cp ./drcom /usr/local/bin
cp: cannot stat `./drcom': No such file or directory
heng@heng-desktop:~/桌面/新/cdrcom$ cd /home/heng/桌面/新/drcom-1.4.7
heng@heng-desktop:~/桌面/新/drcom-1.4.7$ sudo make
make[1]: Entering directory `/home/heng/桌面/新/drcom-1.4.7/drcomc'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/heng/桌面/新/drcom-1.4.7/drcomc'
make[1]: Entering directory `/home/heng/桌面/新/drcom-1.4.7/drcomd'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/heng/桌面/新/drcom-1.4.7/drcomd'
make[1]: Entering directory `/home/heng/桌面/新/drcom-1.4.7/kmod'
make -C /lib/modules/2.6.24-19-generic/build M=/home/heng/桌面/新/drcom-1.4.7/kmod modules
make[2]: Entering directory `/usr/src/linux-headers-2.6.24-19-generic'
CC [M] /home/heng/桌面/新/drcom-1.4.7/kmod/drcom.o
Building modules, stage 2.
MODPOST 1 modules
CC /home/heng/桌面/新/drcom-1.4.7/kmod/drcom.mod.o
LD [M] /home/heng/桌面/新/drcom-1.4.7/kmod/drcom.ko
make[2]: Leaving directory `/usr/src/linux-headers-2.6.24-19-generic'
make[1]: Leaving directory `/home/heng/桌面/新/drcom-1.4.7/kmod'
heng@heng-desktop:~/桌面/新/drcom-1.4.7$ sudo drcom -u
sudo: drcom: command not found
heng@heng-desktop:~/桌面/新/drcom-1.4.7$
bash: cd: /home/heng/桌面/新/libpcap-0.9.5/configure: Not a directory
heng@heng-desktop:~$ cd /home/heng/桌面/新/libpcap-0.9.5/
heng@heng-desktop:~/桌面/新/libpcap-0.9.5$ ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking gcc version... 4
checking for inline... inline
checking for __attribute__... yes
checking for u_int8_t using gcc... yes
checking for u_int16_t using gcc... yes
checking for u_int32_t using gcc... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking sys/ioccom.h usability... no
checking sys/ioccom.h presence... no
checking for sys/ioccom.h... no
checking sys/sockio.h usability... no
checking sys/sockio.h presence... no
checking for sys/sockio.h... no
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for netinet/if_ether.h... yes
checking for ANSI ioctl definitions... yes
checking for strerror... yes
checking for strlcpy... no
checking for vsnprintf... yes
checking for snprintf... yes
checking for library containing gethostbyname... none required
checking for library containing socket... none required
checking for library containing putmsg... none required
checking for ether_hostton... yes
checking whether ether_hostton is declared... no
checking netinet/ether.h usability... yes
checking netinet/ether.h presence... yes
checking for netinet/ether.h... yes
checking whether ether_hostton is declared... yes
checking if --disable-protochain option is specified... enabled
checking packet capture type... linux
checking for getifaddrs... yes
checking ifaddrs.h usability... yes
checking ifaddrs.h presence... yes
checking for ifaddrs.h... yes
checking if --enable-ipv6 option is specified... no
checking whether to build optimizer debugging code... no
checking whether to build parser debugging code... no
checking Linux kernel version... 2
checking if if_packet.h has tpacket_stats defined... yes
checking whether we have /proc/net/dev... yes
checking whether we have DAG API headers... no (/usr/local/include)
checking whether we have Septel API... no
checking for flex... flex
checking for flex 2.4 or higher... yes
checking for bison... no
configure: WARNING: don't have both flex and bison; reverting to lex/yacc
checking for capable lex... yes
checking for ranlib... ranlib
checking if sockaddr struct has sa_len member... no
checking if sockaddr_storage struct exists... yes
checking if dl_hp_ppa_info_t struct has dl_module_id_1 member... no
checking if unaligned accesses fail... no
checking for a BSD-compatible install... /usr/bin/install -c
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
heng@heng-desktop:~/桌面/新/libpcap-0.9.5$ make
gcc -O2 -I. -DHAVE_CONFIG_H -D_U_="__attribute__((unused))" -c ./pcap-linux.c
gcc -O2 -I. -DHAVE_CONFIG_H -D_U_="__attribute__((unused))" -c ./fad-getad.c
sed -e 's/.*/static const char pcap_version_string[] = "libpcap version &";/' ./VERSION > version.h
gcc -O2 -I. -DHAVE_CONFIG_H -D_U_="__attribute__((unused))" -c ./pcap.c
gcc -O2 -I. -DHAVE_CONFIG_H -D_U_="__attribute__((unused))" -c ./inet.c
gcc -O2 -I. -DHAVE_CONFIG_H -D_U_="__attribute__((unused))" -c ./gencode.c
gcc -O2 -I. -DHAVE_CONFIG_H -D_U_="__attribute__((unused))" -c ./optimize.c
gcc -O2 -I. -DHAVE_CONFIG_H -D_U_="__attribute__((unused))" -c ./nametoaddr.c
gcc -O2 -I. -DHAVE_CONFIG_H -D_U_="__attribute__((unused))" -c ./etherent.c
gcc -O2 -I. -DHAVE_CONFIG_H -D_U_="__attribute__((unused))" -c ./savefile.c
rm -f bpf_filter.c
ln -s ./bpf/net/bpf_filter.c bpf_filter.c
gcc -O2 -I. -DHAVE_CONFIG_H -D_U_="__attribute__((unused))" -c bpf_filter.c
gcc -O2 -I. -DHAVE_CONFIG_H -D_U_="__attribute__((unused))" -c ./bpf_image.c
gcc -O2 -I. -DHAVE_CONFIG_H -D_U_="__attribute__((unused))" -c ./bpf_dump.c
lex -t scanner.l > $$.scanner.c; mv $$.scanner.c scanner.c
yacc -d grammar.y
make: yacc: Command not found
make: *** [grammar.c] Error 127
heng@heng-desktop:~/桌面/新/libpcap-0.9.5$ sudo make install
[sudo] password for heng:
yacc -d grammar.y
make: yacc: Command not found
make: *** [grammar.c] Error 127
heng@heng-desktop:~/桌面/新/libpcap-0.9.5$ sudo make install
yacc -d grammar.y
make: yacc: Command not found
make: *** [grammar.c] Error 127
heng@heng-desktop:~/桌面/新/libpcap-0.9.5$ sudo make install
yacc -d grammar.y
make: yacc: Command not found
make: *** [grammar.c] Error 127
heng@heng-desktop:~/桌面/新/libpcap-0.9.5$ cp ./*.h /usr/include
cp: cannot create regular file `/usr/include/acconfig.h': Permission denied
cp: cannot create regular file `/usr/include/arcnet.h': Permission denied
cp: cannot create regular file `/usr/include/atmuni31.h': Permission denied
cp: cannot create regular file `/usr/include/config.h': Permission denied
cp: cannot create regular file `/usr/include/ethertype.h': Permission denied
cp: cannot create regular file `/usr/include/gencode.h': Permission denied
cp: cannot create regular file `/usr/include/llc.h': Permission denied
cp: cannot create regular file `/usr/include/nlpid.h': Permission denied
cp: cannot create regular file `/usr/include/pcap1.h': Permission denied
cp: cannot create regular file `/usr/include/pcap-bpf.h': Permission denied
cp: cannot create regular file `/usr/include/pcap-dag.h': Permission denied
cp: cannot create regular file `/usr/include/pcap-dos.h': Permission denied
cp: cannot create regular file `/usr/include/pcap.h': Permission denied
cp: cannot create regular file `/usr/include/pcap-int.h': Permission denied
cp: cannot create regular file `/usr/include/pcap-namedb.h': Permission denied
cp: cannot create regular file `/usr/include/pcap-nit.h': Permission denied
cp: cannot create regular file `/usr/include/pcap-pf.h': Permission denied
cp: cannot create regular file `/usr/include/pcap-septel.h': Permission denied
cp: cannot create regular file `/usr/include/pcap-stdinc.h': Permission denied
cp: cannot create regular file `/usr/include/pf.h': Permission denied
cp: cannot create regular file `/usr/include/ppp.h': Permission denied
cp: cannot create regular file `/usr/include/sll.h': Permission denied
cp: cannot create regular file `/usr/include/sunatmpos.h': Permission denied
cp: cannot create regular file `/usr/include/version.h': Permission denied
heng@heng-desktop:~/桌面/新/libpcap-0.9.5$ sudo ln -s /usr/lib/libpcap.so.0.9.5 /usr/lib/libpcap.a
heng@heng-desktop:~/桌面/新/libpcap-0.9.5$ sudo ln -s /usr/lib/libpcap.so.0.9.5 /usr/lib/libpcap.a
ln: creating symbolic link `/usr/lib/libpcap.a': File exists
heng@heng-desktop:~/桌面/新/libpcap-0.9.5$ sudo dhclient
Internet Systems Consortium DHCP Client V3.0.6
Copyright 2004-2007 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Listening on LPF/eth0/00:1a:92:be:5a:f6
Sending on LPF/eth0/00:1a:92:be:5a:f6
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
heng@heng-desktop:~/桌面/新/libpcap-0.9.5$ cd /home/heng/桌面/新/libmd-0.3
heng@heng-desktop:~/桌面/新/libmd-0.3$ ./configure
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
Package: libmd-0.3
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether ln -s works... (cached) yes
checking for ranlib... (cached) ranlib
checking how to run the C preprocessor... (cached) gcc -E
checking for ANSI C header files... (cached) yes
checking for fcntl.h... (cached) yes
checking for unistd.h... (cached) yes
checking for working const... (cached) yes
checking for size_t... (cached) yes
creating ./config.status
creating docs/Makefile
creating Makefile
heng@heng-desktop:~/桌面/新/libmd-0.3$ make
gcc -O3 -fPIC -I. -c -o md2c.o md2c.c
gcc -O3 -fPIC -I. -c -o md4c.o md4c.c
gcc -O3 -fPIC -I. -c -o md5c.o md5c.c
sed -e 's/mdX/md2/g' -e 's/MDX/MD2/g' mdXhl.c > md2hl.c
gcc -O3 -fPIC -I. -c -o md2hl.o md2hl.c
sed -e 's/mdX/md4/g' -e 's/MDX/MD4/g' mdXhl.c > md4hl.c
gcc -O3 -fPIC -I. -c -o md4hl.o md4hl.c
sed -e 's/mdX/md5/g' -e 's/MDX/MD5/g' mdXhl.c > md5hl.c
gcc -O3 -fPIC -I. -c -o md5hl.o md5hl.c
gcc -O3 -fPIC -I. -c -o sha.o sha.c
sed -e 's/mdX/sha/g' -e 's/MDX/SHA/g' mdXhl.c > shahl.c
gcc -O3 -fPIC -I. -c -o shahl.o shahl.c
gcc -O3 -fPIC -I. -c -o rmd160.o rmd160.c
sed -e 's/mdX/rmd160/g' -e 's/MDX/RMD160/g' mdXhl.c > rmd160hl.c
gcc -O3 -fPIC -I. -c -o rmd160hl.o rmd160hl.c
gcc -shared -o libmd.so.1.0 md2c.o md4c.o md5c.o md2hl.o md4hl.o md5hl.o sha.o shahl.o rmd160.o rmd160hl.o
sed -e 's/mdX/md2/g' -e 's/MDX/MD2/g' mdX.3 > md2.3
cat md2.copyright >> md2.3
sed -e 's/mdX/md4/g' -e 's/MDX/MD4/g' mdX.3 > md4.3
cat md4.copyright >> md4.3
sed -e 's/mdX/md5/g' -e 's/MDX/MD5/g' mdX.3 > md5.3
cat md5.copyright >> md5.3
rm -f libmd.a
ar rulv libmd.a md2c.o md4c.o md5c.o md2hl.o md4hl.o md5hl.o sha.o shahl.o rmd160.o rmd160hl.o
ar: creating libmd.a
a - md2c.o
a - md4c.o
a - md5c.o
a - md2hl.o
a - md4hl.o
a - md5hl.o
a - sha.o
a - shahl.o
a - rmd160.o
a - rmd160hl.o
ranlib libmd.a
heng@heng-desktop:~/桌面/新/libmd-0.3$ sudo make install
ln -s libmd.so.1.0 libmd.so.1
ln -s libmd.so.1.0 libmd.so
mkdir -p /usr/include
mkdir -p /usr/lib
mkdir -p /usr/man/man3
/usr/bin/install -c -g root -o root -m 644 md2.h md4.h md5.h sha.h rmd160.h \
/usr/include
/usr/bin/install -c -g root -o root -m 644 md2.3 md4.3 md5.3 \
/usr/man/man3
/usr/bin/install -c -g root -o root -m 755 libmd.so.1.0 /usr/lib
/usr/bin/install -c -g root -o root -m 755 libmd.so.1 /usr/lib
/usr/bin/install -c -g root -o root -m 755 libmd.so /usr/lib
/usr/bin/install -c -g root -o root -m 755 libmd.a /usr/lib
heng@heng-desktop:~/桌面/新/libmd-0.3$ cd /home/heng/桌面/新/cdrcom
heng@heng-desktop:~/桌面/新/cdrcom$ sudo make
gcc -c -o opentest.o opentest.c
opentest.c:1:18: error: pcap.h: No such file or directory
opentest.c:3: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
opentest.c:13: warning: ‘struct pcap_pkthdr’ declared inside parameter list
opentest.c:13: warning: its scope is only this definition or declaration, which is probably not what you want
opentest.c:14: error: expected ‘)’ before ‘*’ token
opentest.c: In function ‘main’:
opentest.c:38: warning: incompatible implicit declaration of built-in function ‘exit’
opentest.c:59: warning: incompatible implicit declaration of built-in function ‘memcpy’
opentest.c:63: warning: incompatible implicit declaration of built-in function ‘exit’
opentest.c:65: error: ‘PCAP_ERRBUF_SIZE’ undeclared (first use in this function)
opentest.c:65: error: (Each undeclared identifier is reported only once
opentest.c:65: error: for each function it appears in.)
opentest.c:66: error: ‘fp’ undeclared (first use in this function)
opentest.c:70: warning: incompatible implicit declaration of built-in function ‘exit’
opentest.c: At top level:
opentest.c:88: error: expected ‘)’ before ‘*’ token
opentest.c:95: warning: ‘struct pcap_pkthdr’ declared inside parameter list
opentest.c:96: error: conflicting types for ‘packet_handler’
opentest.c:13: error: previous declaration of ‘packet_handler’ was here
opentest.c: In function ‘packet_handler’:
opentest.c:98: error: dereferencing pointer to incomplete type
opentest.c:101: warning: incompatible implicit declaration of built-in function ‘memcpy’
opentest.c:131: warning: incompatible implicit declaration of built-in function ‘exit’
opentest.c:136: warning: incompatible implicit declaration of built-in function ‘exit’
opentest.c:139: error: ‘fp’ undeclared (first use in this function)
make: *** [opentest.o] Error 1
heng@heng-desktop:~/桌面/新/cdrcom$ sudo gcc -o drcom opentest.c getmac.c senduserid.c sendpassword.c dataset.c -lpcap -lmd
opentest.c:1:18: error: pcap.h: No such file or directory
opentest.c:3: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
opentest.c:13: warning: ‘struct pcap_pkthdr’ declared inside parameter list
opentest.c:13: warning: its scope is only this definition or declaration, which is probably not what you want
opentest.c:14: error: expected ‘)’ before ‘*’ token
opentest.c: In function ‘main’:
opentest.c:38: warning: incompatible implicit declaration of built-in function ‘exit’
opentest.c:59: warning: incompatible implicit declaration of built-in function ‘memcpy’
opentest.c:63: warning: incompatible implicit declaration of built-in function ‘exit’
opentest.c:65: error: ‘PCAP_ERRBUF_SIZE’ undeclared (first use in this function)
opentest.c:65: error: (Each undeclared identifier is reported only once
opentest.c:65: error: for each function it appears in.)
opentest.c:66: error: ‘fp’ undeclared (first use in this function)
opentest.c:70: warning: incompatible implicit declaration of built-in function ‘exit’
opentest.c: At top level:
opentest.c:88: error: expected ‘)’ before ‘*’ token
opentest.c:95: warning: ‘struct pcap_pkthdr’ declared inside parameter list
opentest.c:96: error: conflicting types for ‘packet_handler’
opentest.c:13: error: previous declaration of ‘packet_handler’ was here
opentest.c: In function ‘packet_handler’:
opentest.c:98: error: dereferencing pointer to incomplete type
opentest.c:101: warning: incompatible implicit declaration of built-in function ‘memcpy’
opentest.c:131: warning: incompatible implicit declaration of built-in function ‘exit’
opentest.c:136: warning: incompatible implicit declaration of built-in function ‘exit’
opentest.c:139: error: ‘fp’ undeclared (first use in this function)
senduserid.c:2:18: error: pcap.h: No such file or directory
senduserid.c:4: error: expected declaration specifiers or ‘...’ before ‘pcap_t’
senduserid.c: In function ‘senduid’:
senduserid.c:50: error: ‘dev’ undeclared (first use in this function)
senduserid.c:50: error: (Each undeclared identifier is reported only once
senduserid.c:50: error: for each function it appears in.)
sendpassword.c:1:18: error: pcap.h: No such file or directory
sendpassword.c:3: error: expected declaration specifiers or ‘...’ before ‘pcap_t’
sendpassword.c: In function ‘sendpwd’:
sendpassword.c:6: warning: incompatible implicit declaration of built-in function ‘strlen’
sendpassword.c:49: error: ‘dev’ undeclared (first use in this function)
sendpassword.c:49: error: (Each undeclared identifier is reported only once
sendpassword.c:49: error: for each function it appears in.)
dataset.c: In function ‘test’:
dataset.c:6: warning: incompatible implicit declaration of built-in function ‘printf’
heng@heng-desktop:~/桌面/新/cdrcom$ sudo cp ./drcom /usr/local/bin
cp: cannot stat `./drcom': No such file or directory
heng@heng-desktop:~/桌面/新/cdrcom$ cd /home/heng/桌面/新/drcom-1.4.7
heng@heng-desktop:~/桌面/新/drcom-1.4.7$ sudo make
make[1]: Entering directory `/home/heng/桌面/新/drcom-1.4.7/drcomc'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/heng/桌面/新/drcom-1.4.7/drcomc'
make[1]: Entering directory `/home/heng/桌面/新/drcom-1.4.7/drcomd'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/heng/桌面/新/drcom-1.4.7/drcomd'
make[1]: Entering directory `/home/heng/桌面/新/drcom-1.4.7/kmod'
make -C /lib/modules/2.6.24-19-generic/build M=/home/heng/桌面/新/drcom-1.4.7/kmod modules
make[2]: Entering directory `/usr/src/linux-headers-2.6.24-19-generic'
CC [M] /home/heng/桌面/新/drcom-1.4.7/kmod/drcom.o
Building modules, stage 2.
MODPOST 1 modules
CC /home/heng/桌面/新/drcom-1.4.7/kmod/drcom.mod.o
LD [M] /home/heng/桌面/新/drcom-1.4.7/kmod/drcom.ko
make[2]: Leaving directory `/usr/src/linux-headers-2.6.24-19-generic'
make[1]: Leaving directory `/home/heng/桌面/新/drcom-1.4.7/kmod'
heng@heng-desktop:~/桌面/新/drcom-1.4.7$ sudo drcom -u
sudo: drcom: command not found
heng@heng-desktop:~/桌面/新/drcom-1.4.7$