Jump to content
  • 0

Hex Ragexe to call a program.


lynxpravoka

Question


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  16
  • Reputation:   0
  • Joined:  10/08/17
  • Last Seen:  

Hi, is there a way to make ragexe when execute. it will call a program? i dont mean -1rag1.

Link to comment
Share on other sites

10 answers to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  417
  • Reputation:   354
  • Joined:  11/11/11
  • Last Seen:  

I wonder how you execute a dll. That's not something you usually run on it's own, but link with a program.

Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  639
  • Reputation:   596
  • Joined:  11/25/11
  • Last Seen:  

Not that I know of, but you can make your patcher or your launcher to call a .bat or a similar program to run both programs you want and the client.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  76
  • Topics Per Day:  0.02
  • Content Count:  455
  • Reputation:   57
  • Joined:  08/28/12
  • Last Seen:  

Really? That would be awesome for intros o.o

Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1676
  • Reputation:   702
  • Joined:  12/21/14
  • Last Seen:  

NEMO

Use Custom DLL

 

you can put your things in the dll or make the dll call exe

Edited by sader1992
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  16
  • Reputation:   0
  • Joined:  10/08/17
  • Last Seen:  

You know why i want this. i want to prevent malicous software to load ragexe. like hexeditor, wpe, packet analyzer. if its possible it can prevent it.,

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  16
  • Reputation:   0
  • Joined:  10/08/17
  • Last Seen:  

sader1992 is there sample dll source code to call a program? i have a console program that automatically kill a program in process that i don't want. the problem is how to make a ragexe as it execute it will launch that application too and it will automatically kill itself when ragexe not in process.

Edited by lynxpravoka
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  417
  • Reputation:   354
  • Joined:  11/11/11
  • Last Seen:  

#include <windows.h>
#include <tchar.h>

DWORD CALLBACK RunMyApp(LPVOID lpParam)
{
    STARTUPINFO Si = { sizeof(Si) };
    PROCESS_INFORMATION Pi = { 0 };

    if(CreateProcess(_T("myapp.exe"), _T("myapp.exe param1 param2"), NULL, NULL, FALSE, 0, NULL, NULL, &Si, &Pi))
    {
        CloseHandle(Pi.hThread);
        CloseHandle(Pi.hProcess);
    }
  
    return 0;
}

BOOL CALLBACK DllMain(HINSTANCE hDll, DWORD dwReason, LPVOID lpReserved)
{
    switch(dwReason)
    {
        case DLL_PROCESS_ATTACH:
        {
            DWORD dwThreadId;
            HANDLE hThread = CreateThread(NULL, 0, &RunMyApp, NULL, 0, &dwThreadId);
          
            if(hThread)
            {
                CloseHandle(hThread);
            }
          
            break;
        }
    }
  
    return TRUE;
}

Here's your sample code. Error handling has been omitted for brevity.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  16
  • Reputation:   0
  • Joined:  10/08/17
  • Last Seen:  

by the way i try your code i change value myapp.exe to cmd.exe and param 1 param 2 to ver.

so the code like this

 

#include <windows.h>
#include <tchar.h>

DWORD CALLBACK RunMyApp(LPVOID lpParam)
{
    STARTUPINFO Si = { sizeof(Si) };
    PROCESS_INFORMATION Pi = { 0 };

    if(CreateProcess(_T("cmd.exe"), _T("cmd.exe ver"), NULL, NULL, FALSE, 0, NULL, NULL, &Si, &Pi))
    {
        CloseHandle(Pi.hThread);
        CloseHandle(Pi.hProcess);
    }
  
    return 0;
}

BOOL CALLBACK DllMain(HINSTANCE hDll, DWORD dwReason, LPVOID lpReserved)
{
    switch(dwReason)
    {
        case DLL_PROCESS_ATTACH:
        {
            DWORD dwThreadId;
            HANDLE hThread = CreateThread(NULL, 0, &RunMyApp, NULL, 0, &dwThreadId);
          
            if(hThread)
            {
                CloseHandle(hThread);
            }
          
            break;
        }
    }
  
    return TRUE;
}

and try to execute it directly from cmd.exe. the dll not call new cmd.exe with value ver to check ver cmd.exe.

whats going on?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  16
  • Reputation:   0
  • Joined:  10/08/17
  • Last Seen:  

I patch my client iwth load custom. and add my dll inside. if i'/m rong. how to suppose to work the dll? i see ragnashield can do that.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...