Results 1 to 2 of 2
  1. #1
    Nate26's Avatar
    Join Date
    Sep 2017
    Gender
    male
    Posts
    2
    Reputation
    10
    Thanks
    1
    My Mood
    Bored

    Lightbulb Chat Spammer TeknogodsMW3

    I was bored, so i decided to make a pretty useless chat spammer that can load text from a textual file located in game directory. You can put anything in it, and it will print it out. Works only in TeknogodsMW3, though by updating subroutine address you can make it work on Steam verison as well. Inject and press 0 on your numpad to use.

    This is a basic concept. You could use chrono timers to further sync the message sending with song, and embed time stamps of each line in a data structure that could contain something like line number, line text itself and time stamp in seconds. The advantage of that would also be if you wanted to actually maintain cheat responsiveness because once it enters the for loop here, it's pretty much stuck in it and can't do anything else because of Sleep() function.


    Scans: https://www.virustotal.com/gui/file/...9c9b/detection





    Code:
    #define _SILENCE_EXPERIMENTAL_FILESYSTEM_DEPRECATION_WARNING
    
    #include "windows.h"
    #include <iostream>
    #include <string>
    #include <fstream>
    #include <experimental/filesystem>
    
    using namespace std;
    
    typedef int(*_cdecl SendCmdToConsole_0x4EB8F0)(int, int, char*);
    SendCmdToConsole_0x4EB8F0 SendCmdToConsole = (SendCmdToConsole_0x4EB8F0)0x4EB8F0;
    
    const char* default_lyrics[]
    {
        "^1100 on my wrist, bitch I'm feelin' like D Rose",
        "^5Pop 4 xans now I'm feelin' like a hero",
        "^;(Superman!) Lean got me like Rio",
        "^:And my auntie on PO",
        "^1100 on my wrist, 80 on a brick",
        "^5Lil Pump never spendin' money on a bitch",
        "^;Never trust a nigga cause he actin' like a bitch",
        "^;Take a nigga bitch to the Motel 6",
        "^1I just broke my wrist cause I'm whippin' in the kitchen",
        "^5Pass a brick to my mom and I told her whip it(whip)",
        "^;4 bands in the kitchen",
        "^:9 bands in the kitchen",
        "^1I just fuck your bitch(what ? )",
        "^5I just broke my wrist(okay)",
        "^;I just fuck your bitch",
        "^:I just fuck your bitch(okay)"
    };
    
    vector<string> load_lyrics(string path)
    {
        vector<string> my_lyrics;
        string line;
    
        ifstream my_file;
        my_file.open(path);
    
        while (getline(my_file, line))
        {
            my_lyrics.push_back(line);
        }
    
        my_file.close();
    
        return my_lyrics;
    }
    
    DWORD WINAPI HackThread(HMODULE hModule)
    {
        MessageBox(NULL, L"Press \"End\" to uninject, or \"0\" on numpad to start spamming.", L"Successfully injected", MB_OK);
    
        vector<string> my_lyrics;
    
        string game_location = experimental::filesystem::current_path().u8string();
        string lyrics_path = game_location + "\\lyrics.txt";
    
        if (experimental::filesystem::exists(lyrics_path)) // if file already exists, load it
        {
            my_lyrics = load_lyrics(lyrics_path);
        }
        else                                               // if not, create default lyrics file
        {
            ofstream lyrics;
            lyrics.open(lyrics_path);
    
            for (int i = 0; i < 16; i++)
            {
                lyrics << default_lyrics[i] << endl;
            }
    
            my_lyrics = load_lyrics(lyrics_path);
            lyrics.close();
        }
    
        while (true)
        {
            if (GetAsyncKeyState(VK_END) & 1) // uninject stuff
            {
                break;
            }
    
            if (GetAsyncKeyState(VK_NUMPAD0) & 1)
            {
                char command[64];
    
                for (unsigned int i = 0; i < my_lyrics.size(); i++)
                {
                    strcpy_s(command, "say ");
                    strcat_s(command, my_lyrics[i].c_str());
                    SendCmdToConsole(0, 0, command);
                    Sleep(2500);
                }
            }
            Sleep(5);
        }
    
        FreeLibraryAndExitThread(hModule, 0);
        return 0;
    }
    
    BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved)
    {
        DisableThreadLibraryCalls(hModule);
    
        switch (ul_reason_for_call)
        {
            case DLL_PROCESS_ATTACH:
                CloseHandle(CreateThread(nullptr, 0, (LPTHREAD_START_ROUTINE)HackThread, hModule, 0, nullptr));
                break;
            default:
                break;
        }
        return TRUE;
    }
    <b>Downloadable Files</b> Downloadable Files

  2. The Following User Says Thank You to Nate26 For This Useful Post:

    zaedzayd (06-28-2022)

  3. #2
    Bodvar's Avatar
    Join Date
    Nov 2013
    Gender
    male
    Location
    Blank
    Posts
    2,893
    Reputation
    734
    Thanks
    1,324
    DLL Appears to be safe, thanks for the contribution. Use at your own risk.

    //Approved

    minion: 2019-yes
    minion+: 2020-2022
    inactive as shit sorry boys

Similar Threads

  1. Don Diablo's Chat Spammer
    By Houston in forum Spammers Corner
    Replies: 2
    Last Post: 08-10-2012, 07:13 AM
  2. [Release] GhostRacerX Chat Spammer
    By ghostracerx in forum WarRock - International Hacks
    Replies: 7
    Last Post: 11-24-2009, 04:14 AM
  3. [Release] Chat Spammer (Needs work though)
    By dadirty in forum Combat Arms Discussions
    Replies: 23
    Last Post: 09-10-2009, 12:24 PM
  4. Warrock Chat Spammer
    By Ersin in forum WarRock - International Hacks
    Replies: 3
    Last Post: 03-16-2009, 03:44 PM
  5. My First Chat Spammer for warrock(tell me if works)
    By Mike Shinoda in forum WarRock - International Hacks
    Replies: 0
    Last Post: 08-31-2008, 12:05 PM