Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- //#include "stdafx.h"
- #include <Windows.h>
- #include <iostream>
- #include <sstream>
- #include <vector>
- #include <stdio.h>
- #include <string>
- #include <typeinfo>
- #include <string>
- #include <iterator>
- #include <mmsystem.h>
- #define _CRT_SECURE_NO_WARNINGS // VS does not like freopen
- using namespace std;
- vector<std::string> split(std::string s) { // Split and check input
- vector<std::string> elems;
- stringstream ss(s);
- istream_iterator<std::string> begin(ss);
- istream_iterator<std::string> end;
- vector<std::string> vstrings(begin, end);
- return vstrings;
- }
- string Input() { // Input
- string ass;
- getline(cin, ass);
- return ass;
- }
- #pragma warning (disable : 4996) // Remove common errors
- void create_Console(const char *name) // Bypass robloxes console check
- {
- DWORD old_Prot;
- VirtualProtect(&FreeConsole, 1, PAGE_EXECUTE_READWRITE, &old_Prot);
- *(BYTE*)&FreeConsole = 0xC3;
- VirtualProtect(&FreeConsole, 1, old_Prot, &old_Prot);
- AllocConsole();
- SetConsoleTitleA(name);
- freopen("CONOUT$", "w", stdout);
- freopen("CONIN$", "r", stdin);
- freopen("CONOUT$", "w", stderr);
- }
- void commands()
- {
- cout << "exit - Exits the program/Also closes roblox" << endl;
- cout << "credits - Displays the creators" << endl;
- }
- void credits()
- {
- cout << "Owner/Lead Coder: Mortality" << endl;
- cout << "Backup Coder + Beta Tester: ManiakOfDirt" << endl;
- }
- void exit() // Activate exit command
- {
- cout << "Closing... ";
- exit(1);
- cout << "OK"; // Useless just felt like it
- }
- void Type() // Insert input
- {
- cout << ">"; // output ">"
- vector<string> In = split(Input()); // ask for an input
- if (In.at(0) == "cmds") { //if input = cmds then
- commands(); // Sends to the command list
- Type();
- }
- else {
- if (In.at(0) == "exit") { //if input = exit then
- exit();
- Type();
- }
- else { // If something random is typed
- if (In.at(0) == "credits") { //if input = credits then
- credits(); // Sends to void credits
- Type();
- }
- else { // If something random is typed
- Type();
- }
- }
- }
- }
- void main(void) // Start here
- {
- create_Console("G-Zus v1.0");
- cout << "Initiating... "; // Making sure cout works
- Sleep(1000);
- cout << "OK" << endl; // Making sure it can return to last used cout
- int id = 0x01E40E48; // Whitelist addy
- cout << "Authenticating... ";
- Sleep(500);
- if (*(int*)(id) == 97507390) {
- cout << "OK" << endl;
- cout << "Welcome, ManiakOfDirt" << endl;
- cout << "Your rank: Co-Owner" << endl;
- cout << "Type cmds for a list of commands" << endl;
- Type();
- }
- if (*(int*)(id) == 30307942) {
- cout << "OK" << endl;
- cout << "Welcome, ninjarobogabe" << endl;
- cout << "Your rank: user" << endl;
- cout << "Type cmds for a list of commands" << endl;
- Type();
- }
- if (*(int*)(id) == 37226175) {
- cout << "OK" << endl;
- cout << "Welcome, iiOPfreshii" << endl;
- cout << "Your rank: Owner" << endl;
- cout << "Type cmds for a list of commands" << endl;
- Type();
- }
- if (*(int*)(id) == 30782279) {
- cout << "OK" << endl;
- cout << "Welcome, AyeexJaedyn" << endl;
- cout << "Your rank: Co-Owner" << endl;
- cout << "Type cmds for a list of commands" << endl;
- Type();
- }
- else { // If not whitelisted
- cout << "ERROR" << endl;
- exit(5);
- }
- }
- BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) // start at main
- {
- if (fdwReason == DLL_PROCESS_ATTACH)
- {
- DisableThreadLibraryCalls(hinstDLL);
- CreateThread(0, 0, (LPTHREAD_START_ROUTINE)main, 0, 0, 0);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement