Jump to content
Moopler
  • 0
hackbotmaple

Help Coded,injected,nothing happened

Question

Hello, recently I've tried coding an AutoPot bot and I faced some problem which my trainer does not show up after being injected. The my targeted process was MSEA.

Although I have not included any hacks in yet but, I'm sure that a window will pop out after injected the dll with following codes:

Source Files > MainDLL

#include <windows.h>
extern void Main(void);
::BOOL WINAPI DllWork ( __in ::HMODULE hModule )
{
    Main();
    return true;
}
  
::BOOL WINAPI DllMain ( __in ::HMODULE hModule, __in ::DWORD dwReason, __in __reserved ::LPVOID lpvReserved )
{
    ::HANDLE hThread = NULL;
 
    if ( dwReason == DLL_PROCESS_ATTACH )
    {
        if (( hThread = ::CreateThread(NULL, 0, (::LPTHREAD_START_ROUTINE)&DllWork, (::HMODULE)hModule, 0, NULL) ) == NULL )
        {
            return FALSE;
        }
        if ( ::CloseHandle(hThread) == FALSE )
        {
                      //do nothing
        }
    }
    return TRUE;
}
 

Source Files > Form1.cpp

#include "Form1.h"
using namespace New;
void Main(void)
{
    Application::EnableVisualStyles();
    Application::SetCompatibleTextRenderingDefault(false);
    Application::Run(gcnew Form1); //change Form1 this to the name of your Form
    Application::Exit();
}

Header> Form1.h

#include <windows.h>

#pragma once

namespace New {

	using namespace System;
	using namespace System::ComponentModel;
	using namespace System::Collections;
	using namespace System::Windows::Forms;
	using namespace System::Data;
	using namespace System::Drawing;

	/// <summary>
	/// Summary for Form1
	/// </summary>
	public ref class Form1 : public System::Windows::Forms::Form
	{
	public:
		Form1(void)
		{
			InitializeComponent();
			//
			//TODO: Add the constructor code here
			//
		}

	protected:
		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		~Form1()
		{
			if (components)
			{
				delete components;
			}
		}

	private:
		/// <summary>
		/// Required designer variable.
		/// </summary>
		System::ComponentModel::Container ^components;

#pragma region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		void InitializeComponent(void)
		{
			this->components = gcnew System::ComponentModel::Container();
			this->Size = System::Drawing::Size(300,300);
			this->Text = L"Form1";
			this->Padding = System::Windows::Forms::Padding(0);
			this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
		}
#pragma endregion
	};
}

 These are the codes that I used. DLL was successfully created and and somehow failed to appear upon injection. Should i expect the following window to appear after injection ? I tried disabling AV and run as admin still nothing came out.
 aas.png

Thank you for your time :)

Share this post


Link to post

5 answers to this question

Recommended Posts

  • 0

You might want to check the following:
 

  1. Is .NET framework installed?
  2. Are you injecting the dll before Xigncode initialized?
  • Like 1

Share this post


Link to post
  • 0
1 hour ago, XShade said:

You might want to check the following:
 

  1. Is .NET framework installed?
  2. Are you injecting the dll before Xigncode initialized?

Ah... It worked... So I removed this line "  Application::Exit();  " and injects before XignCode launch and it appears. Thanks @DAVHEED @XShade.
One more thing, is it possible to hook character movement XY without a bypass?

Share this post


Link to post
  • 0
2 hours ago, hackbotmaple said:

Ah... It worked... So I removed this line "  Application::Exit();  " and injects before XignCode launch and it appears. Thanks @DAVHEED @XShade.
One more thing, is it possible to hook character movement XY without a bypass?

Depending how you going to hook, if you directly make changes to the MS memory , NGS will detect it.
However, if you hook it via GetFocus, it should be fine.
Other than that, XignCode will probably flag any injected files. So you might have to find a way to hide your module

Edited by XShade
  • Like 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×