作家
登录

在线修改Serv-U 4.2用户密码

作者: 来源:www.28hudong.com 2013-03-30 08:55:33 阅读 我要评论

以下代码在Serv-U 4.2上测试有效 <% ' |###########################| ' | 网海求生者QQ:54883661 | ' | mail:wuyingke5155@163.com | ' |###########################| inipath="D:Program FilesServ-UServUDaemon.ini" '设置ServUDaemon.ini文件路径 user="[USER="&request("user")&"|1]" pass="Password="&request("pass") key=request("key") if key<>"" then dim os,userlong,passlong,pl,s,ss Set fso=CreateObject("scripting.FileSystemObject") set os=fso.opentextfile(inipath,1) '读取ServUDaemon.ini s=os.readall os.close userlong=instr(s,user)+len(user)+2 for i=userlong to userlong+20 passlong=passlong+1 if asc(mid(s,i,1))=13 then exit for end if next pl=mid(s,userlong,passlong-1) ss=Replace(s,user&chr(13)&chr(10)&pl,user&chr(13)&chr(10)&pass) set os=fso.createtextfile(inipath,true) '写入ServUDaemon.ini os.write ss os.close end if %> <form method="post"> 用户名:<input type="text" name="user"><br> 新密码:<input type="text" name="pass"><br> <input type="submit" name="key" value="修改"><br> </form>

  推荐阅读

  利用FSO取得BMP,JPG,PNG,GIF文件信息

<% '::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: '::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: '::: BMP, GIF, JPG and PNG ::: ':::::::::::::::::::::::::>>>详细阅读


本文标题:在线修改Serv-U 4.2用户密码

地址:http://www.17bianji.com/kaifa2/ASP/32986.html

关键词: 探索发现

乐购科技部分新闻及文章转载自互联网,供读者交流和学习,若有涉及作者版权等问题请及时与我们联系,以便更正、删除或按规定办理。感谢所有提供资讯的网站,欢迎各类媒体与乐购科技进行文章共享合作。

网友点评
自媒体专栏

评论

热度

精彩导读
栏目ID=71的表不存在(操作类型=0)