Hack Forums
[.NET] Run VB .NET in Power Shell.... - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [.NET] Run VB .NET in Power Shell.... (/showthread.php?tid=6018931)



Run VB .NET in Power Shell.... - mutchim - Oct 24, 2019

Code
$code = @"
Imports System.Reflection
Public Class Form1
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
          Assembly.Load(Convert.FromBase64String("String")).EntryPoint.Invoke(Nothing, Nothing)
   End Sub
End Class
"@
Add-Type -TypeDefinition $code -Language 'VisualBasic';
$code = New-Object Form1;
$code.Form1_Load();
Can anyone help me fix this code? thank you everyone


RE: Run VB .NET in Power Shell.... - HFDone - Oct 24, 2019

theres many examples you can find with simple google