-
Notifications
You must be signed in to change notification settings - Fork 2
/
Module.cs
141 lines (132 loc) · 5.27 KB
/
Module.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
using Microsoft.Win32;
using System;
using System.IO;
using System.IO.Pipes;
using System.Net;
using System.Runtime.InteropServices;
using System.Text;
using System.Windows.Forms;
namespace EasyExploits
{
public class Module
{
private WebClient wc = new WebClient();
private bool CheckLastestDll(RegistryKey registryKey)
{
string[] strArray = this.wc.DownloadString("https://raw.githubusercontent.com/GreenMs02/Update/master/Module.txt").Split("\r\n".ToCharArray(), StringSplitOptions.RemoveEmptyEntries);
if (!(strArray[2] == "true") || !Directory.Exists(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) + "\\Roblox\\Versions\\" + strArray[3]))
return false;
registryKey.SetValue("Ver", (object) strArray[3]);
return true;
}
private bool CheckDllUpdate()
{
string[] strArray = this.wc.DownloadString("https://raw.githubusercontent.com/GreenMs02/Update/master/Module.txt").Split("\r\n".ToCharArray(), StringSplitOptions.RemoveEmptyEntries);
RegistryKey registryKey = Registry.CurrentUser.OpenSubKey("SOFTWARE\\\\CoCO", true);
if (registryKey == null)
{
Registry.CurrentUser.CreateSubKey("SOFTWARE\\\\CoCO").SetValue("Ver", (object) "0");
}
else
{
if (registryKey.GetValue("Ver").ToString() != strArray[0])
{
registryKey.SetValue("Ver", (object) strArray[0]);
return true;
}
if (registryKey.GetValue("Ver").ToString() != strArray[3] && this.CheckLastestDll(registryKey))
return true;
}
return !System.IO.File.Exists("EasyExploitsDLL.dll");
}
private bool DownloadDLL()
{
RegistryKey registryKey = Registry.CurrentUser.OpenSubKey("SOFTWARE\\\\CoCO", true);
string[] strArray = this.wc.DownloadString("https://raw.githubusercontent.com/GreenMs02/Update/master/Module.txt").Split("\r\n".ToCharArray(), StringSplitOptions.RemoveEmptyEntries);
if (registryKey.GetValue("Ver").ToString() == strArray[3] && this.CheckLastestDll(registryKey))
this.wc.DownloadFile(strArray[4], "EasyExploitsDLL.dll");
else
this.wc.DownloadFile(strArray[1], "EasyExploitsDLL.dll");
return System.IO.File.Exists("EasyExploitsDLL.dll");
}
public void ExecuteScript(string Script)
{
if (Module.namedPipeExist("ocybedam"))
{
using (NamedPipeClientStream pipeClientStream = new NamedPipeClientStream(".", "ocybedam", PipeDirection.Out))
{
pipeClientStream.Connect();
using (StreamWriter streamWriter = new StreamWriter((Stream) pipeClientStream, Encoding.Default, 999999))
{
streamWriter.Write(Script);
streamWriter.Dispose();
}
pipeClientStream.Dispose();
}
}
else if (System.IO.File.Exists("EasyExploitsDLL.dll"))
{
int num1 = (int) MessageBox.Show("Please attach!", "NamedPipeDoesntExist", MessageBoxButtons.OK, MessageBoxIcon.Hand);
}
else
{
int num2 = (int) MessageBox.Show("Please turn off your antivirus! bruh", "DLLDoesntExist", MessageBoxButtons.OK, MessageBoxIcon.Hand);
}
}
private void InjectDLL()
{
switch (DLLInjection.DllInjector.GetInstance.Inject("RobloxPlayerBeta", Application.StartupPath + "\\EasyExploitsDLL.dll"))
{
case DLLInjection.DllInjectionResult.DllNotFound:
int num1 = (int) MessageBox.Show("Couldn't find the dll!", "Error: Dll Not Found", MessageBoxButtons.OK, MessageBoxIcon.Hand);
break;
case DLLInjection.DllInjectionResult.GameProcessNotFound:
int num2 = (int) MessageBox.Show("No ROBLOX process found!", "Game Process Not Found", MessageBoxButtons.OK, MessageBoxIcon.Hand);
break;
case DLLInjection.DllInjectionResult.InjectionFailed:
int num3 = (int) MessageBox.Show("Injection failed!", "Injection Failed", MessageBoxButtons.OK, MessageBoxIcon.Hand);
break;
}
}
public void LaunchExploit()
{
if (Module.namedPipeExist("ocybedam"))
{
int num1 = (int) MessageBox.Show("Already Attached!", "NamedPipeExist!", MessageBoxButtons.OK, MessageBoxIcon.Hand);
}
else if (!this.CheckDllUpdate() && System.IO.File.Exists("EasyExploitsDLL.dll"))
this.InjectDLL();
else if (this.DownloadDLL())
{
this.InjectDLL();
}
else
{
int num2 = (int) MessageBox.Show("Cant download the lastest version!", "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Hand);
}
}
private static bool namedPipeExist(string pipeName)
{
try
{
if (!Module.WaitNamedPipe(Path.GetFullPath(string.Format("\\\\.\\pipe\\{0}", (object) pipeName)), 0))
{
switch (Marshal.GetLastWin32Error())
{
case 0:
return false;
case 2:
return false;
}
}
return true;
}
catch (Exception ex)
{
return false;
}
}
[DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)]
private static extern bool WaitNamedPipe(string name, int timeout);
}
}