QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 13815|回复: 30

dr.com上网解决方案

[复制链接]
发表于 2005-10-3 13:08:33 | 显示全部楼层 |阅读模式
不好意思。很早前在安全焦点发过dr.com的技术贴,dr.com上网问题已经解决了。
wpyh写好的登陆器在2.4和2.6内核上都可以用的,已经比较稳定了。
但忘记在linux的几个大本营广而告知……

技术方面大家可以看看这里:
Dr.com客户端认证研究
Dr.com连网方式研究

还有wpyh在sourceforge.net注册的drcom-client项目,windows和linux的drcom登陆认证程序都有了,其中windows版的另一个人c语言写的,但我用不了,很多人是可以用的:
drcom-client

大家可以到drcom-client那里下载drcomsuite-0.1.12.tar.bz2和libdrcom-0.0-20050423-2.tar.bz2安装。

记住两个程序都要安装。然后配置/etc/drcom.conf。
配置好后执行:
#modprobe drcom
#drcomc login
就可以登陆上网了。

希望听到大家能上网的好消息。
发表于 2005-10-3 15:10:58 | 显示全部楼层
辛苦了!
回复

使用道具 举报

发表于 2005-10-4 13:45:20 | 显示全部楼层
我也需要个登录器啊,希望有个更好的,
回复

使用道具 举报

发表于 2005-10-4 18:10:11 | 显示全部楼层
谢谢楼主
回复

使用道具 举报

发表于 2005-10-7 21:02:56 | 显示全部楼层
我两个程序都安装好了,配置文件是这样的,可还是卡在connecting那里。
#
# This is the config file for drcom.
#
# Please read these notes before even attempting
# to edit this file:
# + Lines beginning with '#' are ignored.
# + Blank Lines are ignored.
# + Lines with more than 256 characters on it are
#   just stripped.
# + Valid characters are: a-z, A-Z, 0-9, space
#   and this set [#_=.,:]
# + This file is not syntax-checked, so you'll have
#   to edit it properly. I don't think you'll try to
#   do a buffer-overflow attack on your own machine.
# + Spaces get squeezed, so don't be afraid.
# + Unless otherwise specified, every variable must
#   be specified exactly once.
# + Variables that have default values don't need to
#   appear at all, but it's recommended that they do.
#

# Username and password
# A blank password is considered valid.
username=redhatlinux10
password=190150596

# Interface information

# mac is the MAC address of the nic we use to connect
# to the server.
# Example:
# mac=1a:2b:3c:4d:5e:6f
# If left blank it will default to 00:00:00:00:00:00

mac=00:E0:4C:00:11:70

# nicn is the nth nic. This is the real data that's
# passed to the server, and thus I suggest you only
# fill in the first nic.
# Example:
# nic0=192.168.0.1
# nic1=
# nic2=
# nic3=
# Only nic0 is mandatory; the others should normally
# be left blank.

nic0=202.202.1.85
nic1=
nic2=
nic3=

# dnsp(rimary) and dnss(econdary).

dnsp=202.202.0.33
dnss=202.202.0.34

# dhcp server address. Windows XP uses 255.255.255.255
# and Windows 2000 uses 0.0.0.0
# If left blank it defaults to 255.255.255.255

dhcp=

# Connection information
# If the network supports it, and serverip is set
# to 1.1.1.1, then the gateway will help us find
# the real server (beex said this was the reason
# why we had to upgrade, but I don't see the
# practical reason why)
# All are optional, if left blank, then:
# + hostip defaults to nic0
# + servip defaults to 1.1.1.1
# + hostport defaults to 61440 (0xf000)
# + servport defaults to 61440 (0xf000)
# Note: hostip can be given one of the special values
#       eth0, eth1, eth2, ... eth9 (I don't think
#       regular users would need eth10 :-P), which
#       corresponds to the inet address of the
#       interface.

hostip=202.202.1.85
servip=202.202.0.180
hostport=61440
servport=61440

# Miscellaneous Machine Information
# We don't need to be honest about these.
# For example, Windows XP has a version number
# of 5.1 and a build number of 2600.
# All are optional, if left blank, then:
# + hostname defaults to "localhost"
# + winver defaults to 5.1
# + winbuild defaults to 2600
# + servicepack defaults to "Service Pack 2"

hostname=redhatlinux10_fc4
winver=
winbuild=
servicepack=
回复

使用道具 举报

发表于 2005-10-8 14:12:02 | 显示全部楼层
装不起呐!搞不懂怎么弄,学习中___
回复

使用道具 举报

发表于 2005-10-9 12:08:08 | 显示全部楼层
下了那两个文件,可是drcomsuite-0.1.12.tar.bz2却怎么也没成功,make时就提示错误,不知是不是因为只安装了红旗4.1的第一张盘的缘故,希望各位高手能给予指点
回复

使用道具 举报

 楼主| 发表于 2005-10-14 22:02:44 | 显示全部楼层
War3Gamer,那个servip不填试试。
还有
hostname=redhatlinux10_fc4
winver=
winbuild=
servicepack=
这段最好不填避免有问题。

simchange把make提示的错误贴出来看看。
wpyh的编译器选项是针对gcc3.4.x的,用gcc3.3.x的要把Makefile里面
WARN = -Wall -W -Wstrict-prototypes -Wmissing-prototypes -pedantic
这行改改。是去掉其中一项,我忘了是那个了。
回复

使用道具 举报

发表于 2005-10-19 15:57:48 | 显示全部楼层
make错误
make -C include
make[1]: Entering directory `/mnt/software/drcomsuite-0.1.12/drcomsuite-0.1.12/include'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/mnt/software/drcomsuite-0.1.12/drcomsuite-0.1.12/include'
make -C drcomc
make[1]: Entering directory `/mnt/software/drcomsuite-0.1.12/drcomsuite-0.1.12/drcomc'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/mnt/software/drcomsuite-0.1.12/drcomsuite-0.1.12/drcomc'
make -C drcomcd
make[1]: Entering directory `/mnt/software/drcomsuite-0.1.12/drcomsuite-0.1.12/drcomcd'
gcc -Wall -W -Wstrict-prototypes -Wmissing-prototypes -pedantic -I/mnt/software/drcomsuite-0.1.12/drcomsuite-0.1.12 -I/mnt/software/drcomsuite-0.1.12/drcomsuite-0.1.12/include -O2 -DREENTRANT   -c -o daemon.o daemon.c
daemon.c:8:19: drcom.h: 没有那个文件或目录
In file included from daemon.c:11:
/mnt/software/drcomsuite-0.1.12/drcomsuite-0.1.12/include/drcom_types.h:13: error: syntax error before "uint8_t"
/mnt/software/drcomsuite-0.1.12/drcomsuite-0.1.12/include/drcom_types.h:13: warning: no semicolon at end of struct or union
/mnt/software/drcomsuite-0.1.12/drcomsuite-0.1.12/include/drcom_types.h:14: warning: ISO C does not allow extra `;' outside of a function
/mnt/software/drcomsuite-0.1.12/drcomsuite-0.1.12/include/drcom_types.h:18: error: syntax error before "uint8_t"
/mnt/software/drcomsuite-0.1.12/drcomsuite-0.1.12/include/drcom_types.h:18: warning: no semicolon at end of struct or union
/mnt/software/drcomsuite-0.1.12/drcomsuite-0.1.12/include/drcom_types.h:19: warning: ISO C does not allow extra `;' outside of a function
/mnt/software/drcomsuite-0.1.12/drcomsuite-0.1.12/include/drcom_types.h:23: error: syntax error before "uint32_t"
/mnt/software/drcomsuite-0.1.12/drcomsuite-0.1.12/include/drcom_types.h:23: warning: no semicolon at end of struct or union
/mnt/software/drcomsuite-0.1.12/drcomsuite-0.1.12/include/drcom_types.h:24: warning: type defaults to `int' in declaration of `hostport'
/mnt/software/drcomsuite-0.1.12/drcomsuite-0.1.12/include/drcom_types.h:24: error: ISO C forbids data definition with no type or storage class
/mnt/software/drcomsuite-0.1.12/drcomsuite-0.1.12/include/drcom_types.h:25: error: syntax error before "servip"
/mnt/software/drcomsuite-0.1.12/drcomsuite-0.1.12/include/drcom_types.h:25: warning: type defaults to `int' in declaration of `servip'
/mnt/software/drcomsuite-0.1.12/drcomsuite-0.1.12/include/drcom_types.h:25: error: ISO C forbids data definition with no type or storage class
/mnt/software/drcomsuite-0.1.12/drcomsuite-0.1.12/include/drcom_types.h:26: error: syntax error before "servport"
/mnt/software/drcomsuite-0.1.12/drcomsuite-0.1.12/include/drcom_types.h:26: warning: type defaults to `int' in declaration of `servport'
/mnt/software/drcomsuite-0.1.12/drcomsuite-0.1.12/include/drcom_types.h:26: error: ISO C forbids data definition with no type or storage class
/mnt/software/drcomsuite-0.1.12/drcomsuite-0.1.12/include/drcom_types.h:27: error: syntax error before "dnsp"
/mnt/software/drcomsuite-0.1.12/drcomsuite-0.1.12/include/drcom_types.h:27: warning: type defaults to `int' in declaration of `dnsp'
/mnt/software/drcomsuite-0.1.12/drcomsuite-0.1.12/include/drcom_types.h:27: error: ISO C forbids data definition with no type or storage class
/mnt/software/drcomsuite-0.1.12/drcomsuite-0.1.12/include/drcom_types.h:28: error: syntax error before "dnss"
/mnt/software/drcomsuite-0.1.12/drcomsuite-0.1.12/include/drcom_types.h:28: warning: type defaults to `int' in declaration of `dnss'
/mnt/software/drcomsuite-0.1.12/drcomsuite-0.1.12/include/drcom_types.h:28: error: ISO C forbids data definition with no type or storage class
/mnt/software/drcomsuite-0.1.12/drcomsuite-0.1.12/include/drcom_types.h:29: warning: ISO C does not allow extra `;' outside of a function
/mnt/software/drcomsuite-0.1.12/drcomsuite-0.1.12/include/drcom_types.h:33: error: syntax error before "uint32_t"
/mnt/software/drcomsuite-0.1.12/drcomsuite-0.1.12/include/drcom_types.h:33: warning: no semicolon at end of struct or union
/mnt/software/drcomsuite-0.1.12/drcomsuite-0.1.12/include/drcom_types.h:34: warning: type defaults to `int' in declaration of `mask'
/mnt/software/drcomsuite-0.1.12/drcomsuite-0.1.12/include/drcom_types.h:34: error: ISO C forbids data definition with no type or storage class
/mnt/software/drcomsuite-0.1.12/drcomsuite-0.1.12/include/drcom_types.h:35: warning: ISO C does not allow extra `;' outside of a function
daemon.c:20: warning: "struct drcom_handle" declared inside parameter list
daemon.c:20: warning: its scope is only this definition or declaration, which is probably not what you want
daemon.c: In function `drcomcd_daemon':
daemon.c:55: warning: implicit declaration of function `drcom_create_handle'
daemon.c:55: warning: assignment makes pointer from integer without a cast
daemon.c:56: warning: implicit declaration of function `drcom_init'
daemon.c:114: warning: implicit declaration of function `drcom_login'
daemon.c:129: confused by earlier errors, bailing out
make[1]: *** [daemon.o] 错误 1
make[1]: Leaving directory `/mnt/software/drcomsuite-0.1.12/drcomsuite-0.1.12/drcomcd'
make: *** [drcomcd] 错误 2
回复

使用道具 举报

 楼主| 发表于 2005-10-19 17:33:33 | 显示全部楼层
不要在/mnt或者windows分区下编译,会有问题的。
我原来就试过windows分区下编译不成功,这是个很奇怪的问题
回复

使用道具 举报

发表于 2005-10-20 08:15:19 | 显示全部楼层
在/目录下make,问题依旧 ,系统是Magic1.2f
回复

使用道具 举报

发表于 2005-10-23 13:12:22 | 显示全部楼层
回simchange:
先make libdrcom-0.0-20050423-2.tar.bz2再make drcomsuite-0.1.12.tar.bz2
回复

使用道具 举报

发表于 2005-10-23 13:25:58 | 显示全部楼层
问leOn,我在执行了以下2个命令后出现如下错误,请问该怎么解决
[root@PLA ~]# modprobe drcom
[root@PLA ~]# drcomc login
1130044783 DEBUG drcomc: Creating socket...
1130044783 DEBUG drcomc: Connecting...
1130044783 DEBUG drcomc: Sending login command...
1130044783 DEBUG drcomc: Receiving reply (login)...
Login failed
Reason: 0
附带问一句drcomcd命令是做什么的?
还有nic0是填什么地址啊?
回复

使用道具 举报

 楼主| 发表于 2005-10-23 22:28:47 | 显示全部楼层
nic0就是你的第一个网卡地址。一般你就只有一个,所以填你登陆的ip地址。

# cat README.drcomcd
drcomcd
OVERVIEW
This is the daemon.
......

drcomcd就是后台程序,你可以在/var/log/drcomcd看到登陆的诊断信息:
# cat /var/log/drcomcd
1130076971 DEBUG drcomcd: Checking for running instance of drcomcd...
ps -e | grep `basename drcomcd` | grep -v ^\ *31088\
drcomcd: daemon is already running

你把nic0也填上后应该可以登陆上的了。
还有你如果没把win下的drcom客户端注销就从windows重启到linux,你速度够快的话也会的到你上面的:
Login failed
Reason: 0
这个信息,如果等大概1分钟后再登陆就可以成功了。

你可以把下面内容保存到你的PATH,如保存成/usr/local/sbin/drcom文件。
#!/bin/sh
drcomcd
drcomc login
然后chmod +x drcom
之后你登陆输入
#drcom
就可以了。

希望上网成功的人告诉一声。
wyph最近比较忙,在继续写0.2版的drcom客户端。
回复

使用道具 举报

发表于 2005-10-24 18:24:03 | 显示全部楼层
gcc -Wall  -Wstrict-prototypes -Wmissing-prototypes -pedantic -Iinclude -O2 -D_REENTRANT -c -o src/login.o src/login.c
src/login.c:22:25: error: openssl/md5.h: No such file or directory
src/login.c: In function ‘_build_login_packet’:
src/login.c:84: warning: implicit declaration of function ‘MD5’
make: *** [src/login.o] Error 1

我是新手,问一下,我看了看install的文档,直接进入目录
然后make吧接着 makeinstall 就ok吧
但是,我make后出现了上面的错误啊?

我是在/home下编译的
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-4-27 22:48 , Processed in 0.127604 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表