From e210c89f39894cc40ad6f0784f76da61ff612ae0 Mon Sep 17 00:00:00 2001 From: Matt Graeber Date: Wed, 5 Jun 2013 22:03:27 -0400 Subject: [PATCH] Added New-Object proxy function You can provide a CLSID (i.e. a Guid) to New-Object via the -ComObject parameter in addition to a ProgId. --- README.md | 4 ++++ ReverseEngineering/New-Object.ps1 | Bin 0 -> 4382 bytes ReverseEngineering/ReverseEngineering.psd1 | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 ReverseEngineering/New-Object.ps1 diff --git a/README.md b/README.md index 7006f89..9d656f2 100644 --- a/README.md +++ b/README.md @@ -100,6 +100,10 @@ Marshals data from an unmanaged block of memory in an arbitrary process to a new A proxy function used to extend the built-in Get-Member cmdlet. It adds the '-Private' parameter allowing you to display non-public .NET members +#### `New-Object` + +A proxy function for New-Object that accepts a CLSID with the -ComObject parameter. + #### `Get-Strings` Dumps strings from files in both Unicode and Ascii. This cmdlet replicates the functionality of strings.exe from Sysinternals. diff --git a/ReverseEngineering/New-Object.ps1 b/ReverseEngineering/New-Object.ps1 new file mode 100644 index 0000000000000000000000000000000000000000..fd49ec84fa08f3e8fe0cbd64dca8285347b5e8cb GIT binary patch literal 4382 zcmd5=+iuf95S?cv{voIqO(k%t5HA%4+R~d;+DIw9L=j38Cz$4@*lmca{5o*Xt|zf$ z$954F$V$AsUeE2!nc3vm&#v6cP}&lTFC&a9av`2f<)vK8wS32z&z{N?xi{Yx?BLaq zLm5a%`q&Z50p1>B#_yg~}4)E#Xxr_M->)V)3A%WK1VD?_lqwyIm+mjt! zuW`M>wJBTDOn5e4SX)i3FFjBDQ+=?HpP+>iYr*ajyqLi*2jdB1=9wtejAuU9EHZoY zDrM`^rog;w>J{Ja)ELl zCnAddDyx=$1mGsKx(!yZx4MoUWIwAosQvIekGjJ^XsqS*1^A`FJ@ZH75T3JD5sGv3sO*QQ& zbm@C~_wh~z8RdYxbx5H!R+)6gVoa`#O()P2$`@3kK6ZO1A1^UVT4CATz#FXWO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