-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathLua-C_Client-2021.cpp
119 lines (103 loc) · 3.11 KB
/
Lua-C_Client-2021.cpp
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
#include "pch.h"
#include <Windows.h>
#include <string.h>
#include "Offset.hpp"
using namespace ROffsets;
/*
Roblox Lua-C Source Code ( Executes Script from a Lua-C Scripts )
I have no intentionally idea why speedsterkawaii made this Lua-C Source Code probably he wants to bring back the dead.
well me skiehacker just giving him some Scripts based on Lua-C so he can test it to his insane lmfao project well he made it with no mistake
Credit to
[ + ] Speedsterkawaii for the Sources
[ + ] SkieHacker - Feeding you some waste scripts that crash ur roblox and Implementing Mellon's Address so you can update it copy paste.
[ + ] Mellon - Offsets / Roblox Address
[ + ] You - For being Script Kiddies
*/
DWORD __stdcall InitializePipe(PVOID lvpParameter)
{
string WholeScript = "";
HANDLE hPipe;
char buffer[999999];
DWORD dwRead;
hPipe = CreateNamedPipeW(TEXT("\\\\.\\pipe\\LuaCSploit"), // this is the lua c pipe name. change it whatever you want
PIPE_ACCESS_DUPLEX | PIPE_TYPE_BYTE | PIPE_READMODE_BYTE,
PIPE_WAIT,
1,
999999,
999999,
NMPWAIT_USE_DEFAULT_WAIT,
NULL);
while (hPipe != INVALID_HANDLE_VALUE)
{
if (ConnectNamedPipe(hPipe, NULL) != FALSE)
{
while (ReadFile(hPipe, buffer, sizeof(buffer) - 1, &dwRead, NULL) != FALSE)
{
buffer[dwRead] = '\0';
try {
try {
WholeScript = WholeScript + buffer;
}
catch (...) {
}
}
catch (std::exception e) {
}
catch (...) {
}
}
Execution::ExecuteLuaC(RBXState, WholeScript);
WholeScript = "";
}
DisconnectNamedPipe(hPipe);
}
}
void HideConsole()
{
::ShowWindow(::GetConsoleWindow(), SW_HIDE);
}
void ShowConsole()
{
::ShowWindow(::GetConsoleWindow(), SW_SHOW);
}
bool IsConsoleVisible()
{
return ::IsWindowVisible(::GetConsoleWindow()) != FALSE;
}
void RConsole(const char* Title) {
VirtualProtect((PVOID)&FreeConsole, 1, PAGE_EXECUTE_READWRITE, &RobloxState);
*(BYTE*)(&FreeConsole) = 0xC3;
AllocConsole();
SetConsoleTitleA(Title);
freopen("CONOUT$", "w", stdout);
freopen("CONIN$", "r", stdin);
HWND ConsoleHandle = GetConsoleWindow();
::SetWindowPos(ConsoleHandle, HWND_TOPMOST, 0, 0, 0, 0, SWP_DRAWFRAME | SWP_NOMOVE | SWP_NOSIZE | SWP_SHOWWINDOW);
::ShowWindow(ConsoleHandle, SW_NORMAL);
}
void RStart()
{
RConsole("Lua C Sploit"); //Console's Title
printf("NEW UPDATE NOW WITH WORKING LUA C PARSER\n"); //some print ofc lmfao
printf("----------------------------------------\n");
printf("Pls Wait a few seconds scanning lua state\n");
RBXState = RLuaState(Scanner::Scan(PAGE_READWRITE, (char*)&ScriptContextA, (char*)"xxxx")); //Scan or Getting Lua State from Roblox
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)InitializePipe, NULL, NULL, NULL); //Creates Pipe
getfield(RBXState, -10002, "print"); //Yea it will Execute this ofc
pushstring(RBXState, "Lua-C Client-based Loaded");
pcall(RBXState, 1, 0, 0);
HideConsole();
}
bool __stdcall DllMain(HINSTANCE a1, DWORD a2, LPVOID a3)
{
switch (a2)
{
case 1:
RStart();
case 2:
case 3:
case 0:
break;
}
return true;
}