Thread: /sigh Dllmain

Results 1 to 5 of 5
  1. #1
    BlackLite's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Posts
    547
    Reputation
    58
    Thanks
    1,035
    My Mood
    Aggressive

    /sigh Dllmain

    i still have trouble with it

    here' an example

    Code:
    int blah bla blah (void)
    {
    if no reload{
    float bla bla bla
    }
    return 1;
    }
    
    bool dllmain ( hmoudle hdll blah blah blah )
    {
    if (dwreason = DLL_PROCESS_ATTACH){
    disablethreadlibrary(hdll)
    blah bla blah ();
    }
    }
    i tried evrey way but not work

  2. #2
    DaRk's Avatar
    Join Date
    Dec 2010
    Gender
    male
    Location
    MPGH
    Posts
    1,910
    Reputation
    119
    Thanks
    3,986
    My Mood
    Asleep
    i use normal dllmain and it works fine for me..btw i use CreateThread..

  3. #3
    topblast's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Far from around you Programmer: C++ | VB | C# | JAVA
    Posts
    3,607
    Reputation
    149
    Thanks
    5,052
    My Mood
    Cool
    dont put in the bla bla bla, and maybe people can help but from what i see, u dont have a loop so u cant be changing the code, also u didnt create a thread, so ur pausing the thread that called LoadLibrary(), which could stop the pause the process into total (if u had a loop in it)
    I just like programming, that is all.

    Current Stuff:

    • GPU Programmer (Cuda)
    • Client/Server (Cloud Server)
    • Mobile App Development

  4. #4
    Genkidesu's Avatar
    Join Date
    Mar 2012
    Gender
    male
    Location
    Thanh Hóa
    Posts
    187
    Reputation
    30
    Thanks
    2,786
    My Mood
    Bored
    or do it this way..

    Code:
    int blah(void)
    {
    int noreload = 1;
    for(;;Sleep10)
    {
    if(GetModuleHandle("CShell.dll") != NULL){ break; }
    if (noreload)
    {
    //hack here
    }
    }
    return 0;
    }
    
    bool dllmain ( hmoudle hdll blah blah blah )
    {
    if (dwreason = DLL_PROCESS_ATTACH)
    {
    disablethreadlibrary(hdll)
    blah();
    }
    return 1;
    }
    @BlackLite
    Edit: post full source or else we can't spot your mistake.

    Quote Originally Posted by DaRk View Post
    i use normal dllmain and it works fine for me..btw i use CreateThread..
    I use old base posted from last years here & inject it with my private injector, worked fine ^^
    Last edited by Genkidesu; 05-06-2012 at 07:33 PM.

  5. #5
    topblast's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Far from around you Programmer: C++ | VB | C# | JAVA
    Posts
    3,607
    Reputation
    149
    Thanks
    5,052
    My Mood
    Cool
    Code:
    int blah(void)
    {
    int noreload = 1;
    for(;;Sleep(10))
    {
    if(GetModuleHandle("CShell.dll") != NULL)
    { 
     if (noreload)
     {
     //hack here
     }
    }
    }
    return 0;
    }
    
    bool dllmain ( hmoudle hdll blah blah blah )
    {
    if (dwreason = DLL_PROCESS_ATTACH)
    {
    disablethreadlibrary(hdll)
    CreateThread(0,0,(LPTHREAD_START_ROUTINE)blah,0,0,0);
    }
    return 1;
    }
    try that
    I just like programming, that is all.

    Current Stuff:

    • GPU Programmer (Cuda)
    • Client/Server (Cloud Server)
    • Mobile App Development

Similar Threads

  1. TUT ON HOW TO DOWNLOAD JAP Soldier Front AND SIGH UP ON THE WEBSITE
    By the1fear in forum Soldier Front General
    Replies: 13
    Last Post: 04-28-2008, 04:45 PM
  2. Replies: 4
    Last Post: 03-13-2008, 03:57 PM
  3. *sigh*
    By SATANICAT in forum Spammers Corner
    Replies: 14
    Last Post: 12-13-2006, 06:42 PM
  4. Sigh bored.....
    By SATANICAT in forum Spammers Corner
    Replies: 4
    Last Post: 12-13-2006, 06:34 PM
  5. sigh..
    By SATANICAT in forum Spammers Corner
    Replies: 0
    Last Post: 12-09-2006, 04:23 PM