1
mirror of https://github.com/rapid7/metasploit-payloads synced 2025-03-18 15:14:10 +01:00
2016-03-22 13:11:49 +10:00

18 lines
438 B
C#
Executable File

using System;
using System.Collections.Generic;
using System.Text;
namespace MSF.PowershellTester
{
class Program
{
static void Main(string[] args)
{
var x = MSF.Powershell.Runner.Get("Default");
System.Console.Write(x.Execute("$x = $(whoami)"));
System.Console.Write(x.Execute("$x"));
MSF.Powershell.Runner.Remove("Default");
}
}
}