[ create a new paste ] login | about

Link: http://codepad.org/y0MDp6FA    [ raw code | fork | 2 comments ]

C++, pasted on Jan 30:
#include <windows.h>

//00402148 usamimi
//00ECFD24 arad kasoku2
//00ED1780  STUCK
//00ED5A64  MP
//00ED5A68  HP
//00ECF604  攻速
//00ECDA18  加速Ⅰ


	DWORD* pad = (DWORD*)0x00ECFD24;//アドレス指定
	float* p_kasoku2=(float*)0x00ECFD24;
	float* p_stuck=(float*)0x00ED1780;
	float* p_mp=(float*)0x00ED5A64;
	float* p_hp=(float*)0x00ED5A68;
	float* p_kosoku=(float*)0x00ECF604;

	int fk2=0;//加速2のフラグ
	int fs=0;//すたっくのふらぐ
	int fh=0;//hp
	int fm=0;//mp
	int fk=0;//kosoku

	void kasoku2(){
				switch(fk2){//加速のスイッチ処理
		case 0:	
           
		    *p_kasoku2=200;
			//MessageBox(NULL,"on hacked200","てす",MB_OK);
				fk2=1;
		break;
		case 1:
		    *p_kasoku2=100;
			//MessageBox(NULL,"off","てす",MB_OK);
			fk2=0;
		break;
		}
		Sleep(400);
	}//加速1スイッチの関数のプロとタイ@い宣言

	void stuck(){
				switch(fs){//加速のスイッチ処理
		case 0:		
	
		*p_stuck=100;
			//MessageBox(NULL,"on","てす",MB_OK);
				fs=1;
		break;
		case 1:
			*p_stuck=3;
			//MessageBox(NULL,"off","てす",MB_OK);
			fs=0;
		break;
		}
		Sleep(400);
	}//加速1スイッチの関数のプロとタイ@い宣言

	void hp(){
				switch(fh){//加速のスイッチ処理
		case 0:		
	
		*p_hp=-4;
			//MessageBox(NULL,"on","てす",MB_OK);
				fh=1;
		break;
		case 1:
			*p_hp=0;
			//MessageBox(NULL,"off","てす",MB_OK);
			fh=0;
		break;
		}
		Sleep(400);
	}//加速1スイッチの関数のプロとタイ@い宣言

	void mp(){
				switch(fm){//加速のスイッチ処理
		case 0:		
	
		*p_mp=0.5;
			//MessageBox(NULL,"on","てす",MB_OK);
				fm=1;
		break;
		case 1:
			*p_mp=0;
			//MessageBox(NULL,"off","てす",MB_OK);
			fm=0;
		break;
		}
		Sleep(400);
	}//加速1スイッチの関数のプロとタイ@い宣言

     void kosoku(){
				switch(fk){//加速のスイッチ処理
		case 0:		
	
		*p_kosoku=0.5;
			//MessageBox(NULL,"on","てす",MB_OK);
				fk=1;
		break;
		case 1:
			*p_kosoku=0;
			//MessageBox(NULL,"off","てす",MB_OK);
			fk=0;
		break;
		}
		Sleep(400);
     }//加速1スイッチの関数のプロとタイ@い宣言




    void main1(){

	

    while(1){

	     if (GetAsyncKeyState(VK_MENU)&0x8000 && GetAsyncKeyState('K')&0x8000){
		     kasoku2();
		}
	     if (GetAsyncKeyState(VK_MENU)&0x8000 && GetAsyncKeyState('S')&0x8000){
		     stuck();
		}
	     if (GetAsyncKeyState(VK_MENU)&0x8000 && GetAsyncKeyState('H')&0x8000){
		     hp();
	    }
	     if (GetAsyncKeyState(VK_MENU)&0x8000 && GetAsyncKeyState('M')&0x8000){
		     mp();
		}
	     if (GetAsyncKeyState(VK_MENU)&0x8000 && GetAsyncKeyState('L')&0x8000){
		     kosoku();

			
		}
        }
}

#define makethread(a) CreateThread(NULL,NULL,(LPTHREAD_START_ROUTINE)&a,NULL,NULL,NULL);
extern "C"{//extern "C"でC言語へ
__declspec(dllexport) BOOL __stdcall DllMain(HINSTANCE hInst,DWORD reason,LPVOID lpv){
if (reason == DLL_PROCESS_ATTACH){
DisableThreadLibraryCalls(hInst);
makethread(main1);//ここで新規スレッド作成
MessageBox(NULL,"inject完了","Fentanyl.dll",MB_OK);}
return true;}}


Create a new paste based on this one


Comments:
posted by aradsan on Feb 6

reply
posted by aradsan on Aug 21
これでメシウマですね。
reply