drcom for linux


一直想下大决心把win7换成ubuntu11.04,无奈舍不得一些游戏,今日下想来彻底解决下linux 上drcom登陆的问题。学校的服务器不提供直接的web认证的方式,本来想直接用开源的drcom-1.4.8,编译安装成功,但总是无法登陆,主页上 说已经不支持现在的3.73(u33)版本想来也不支持我们所用的3.73(u60)版本。但坊间一直流传着一个神一样的html文件,用以登陆,既然说 是神一样的文件,当然,我们这里也是可以用的。但是我每次关机总是忘记注销,所以经常在关机后很长一段时间内无法再次登陆。因为,就写了两个脚本,用以开机自动登陆,关机自动注销。
#!/bin/sh
#filename drcomlogin
#this is drcom-client script .use "chkconfig --level 35 drcomlogin off" to disable script
#chkconfig:35 88 09
#description:drcom login
curl -d "DDDDD=username@mingzheng&upass=password&0MKKey=%B5%C7%C2%BC+Login"  xxx.xxx.xxx.xx
exit 0

[root@localhost /]#chkconfig --add drcomlogin
[root@localhost /]#chkconfig --level 35 drcomlogin on

 #!/bin/sh
#filename drcomlogout
#this is drcom-client script .use "chkconfig --level 06 drcomlogout off" to disable script
#chkconfig:06 00 95
#description:drcom logout
curl  "xxx.xxx.xxx.xxx/F.htm?Submit=Logout"
exit 0

[root@localhost /]#chkconfig --add drcomlogout
[root@localhost /]#chkconfig --level  06 drcomlogout on

#########以上username替换成账号,将password替换成密码,XXX替换成认证服务器IP,此IP在windows下drcom安装目录下的edata.dat文件里面有。

作者“凌昶”

相关内容

    暂无相关文章