看到有人要cu自动登录的代码 我这里有一个 本来是说要给瑞儿做一个cu站内短信群发的 但是发短信部分的数据包 一直没时间抓 自己也懒 哎。。。 登录部分 肯定是没问题的 已经验证过 因为我自己就用它登录后来下载cu的站内短信的 短信处理部分的我就不发了 这个是主体部分 import re import time import urlparse from GRequest import GetUrl class HiCu(object): def __init__(self, user, passwd): self.us...
by ghostwwl - Python - 2008-06-28 20:38:14 阅读(7632) 回复(19)
my $ua = new LWP::UserAgent( cookie_jar => {} ); my $res = $ua->get( 'http://www.5rg.com/LMCK/pub/login/logon.jsp' ); my $content = $res->content; $number = $1 if($content =~ /
#!/usr/bin/expect spawn su expect "*password: " sleep 1 send "123456\r" spawn /root/mysh /*只有root有权限*/ interact 给普通用户一个执行root用户文件的权限,执行后自动退出,但是不写“spawn /root/mysh”时登录后可以手动执行root文件,加入“spawn /root/mysh”后就没root权限了,郁闷!!!!
Automatic login at boot time on Solaris 2.x Write a script that sets appropriate envoronment variables, opens stdin and stdout and stderr, and does whatever 'init' used to do for 'getty'. Call this program from inside 'inittab' with an appropriate label and at an appropriate level. I ended up creating the following entry in /etc/inittab which calls the script that follows. mp:34:wait://auto_login ...
开机自动登录linux,并自动运行X window应用程序,有其特殊的应用背景,如基于linux平台的监控系统,linux启动后不需要身份验证,而直接运行监控程序等等。本文以Redhat7.2为平台,结合linux启动过程,介绍了如何避免身份验证自动登录,并直接进入X window自动运行应用程序。 一、linux启动的最后阶段的工作 linux 在启动过程的最后阶段(具体启动步骤略),init 会根据 /etc/inittab文件的最后一行x:5:respawn:/etc/X11/prefdm -...