Feedback

C++ - Flyff Paketfilter -> NPC anklicken blocken

Veröffentlicht von am 7/24/2010
(2 Bewertungen)
Das erlaubt es euch z.B jemandem das Trading an einem NPC zu verhindern auf das geünschte Authorit. Man kann es auch ereitern und z.B schädliche Pakete blocken oder einem spieler eine Funktion zu blocken
#include "stdio.h"
#include "winsock2.h"
#include "windows.h"
#include <iostream>
#include <string>

using namespace std;

#pragma comment(lib, "ws2_32.lib")

typedef int (WINAPI* t_WSARecv)

(SOCKET,LPWSABUF,DWORD,LPDWORD,LPDWORD,LPWSAOVERLAPPED,LPWSAOVERLAPPED_COMPLETION_ROUTINE);
typedef int (WINAPI* t_WSASend)

(SOCKET,LPWSABUF,DWORD,LPDWORD,DWORD,LPWSAOVERLAPPED,LPWSAOVERLAPPED_COMPLETION_ROUTINE );

t_WSASend o_WSASend;
t_WSARecv o_WSARecv;
Pro_Attach = 00000x061;



void *DetourFunction(BYTE *src, const BYTE *dst, const int len) // credits to gamedeception
{
	BYTE *jmp = (BYTE*)malloc(len+5);
	DWORD dwback;
	VirtualProtect(src, len, PAGE_READWRITE, &dwback);
	memcpy(jmp, src, len); jmp += len;
	jmp[0] = 0xE9;
	*(DWORD*)(jmp+1) = (DWORD)(src+len - jmp) - 5;
	src[0] = 0xE9;
	*(DWORD*)(src+1) = (DWORD)(dst - src) - 5;
	VirtualProtect(src, len, dwback, &dwback);
	return (jmp-len);
}

int value = tcp.ip.Convert(inTo16.Convert) = "127.0.0.1" //ip zum server


int WINAPI hook_WSARecv(SOCKET s,LPWSABUF lpBuffers,DWORD dwBufferCount,LPDWORD lpNumberOfBytesRecvd,LPDWORD 

lpFlags,LPWSAOVERLAPPED lpOverlapped,LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine)
{
 
	return o_WSARecv(s,lpBuffers,dwBufferCount,lpNumberOfBytesRecvd,lpFlags,lpOverlapped,lpCompletionRoutine);
}

int WINAPI hook_WSASend(SOCKET s,LPWSABUF lpBuffers,DWORD dwBufferCount,LPDWORD lpNumberOfBytesSent,DWORD 
<?TCP version="500","15400" standalone=no> //der tcp port und world port
<Trading.Configuration Npc.Menu[funktion]="0">
	<NPC.Trading.TPC value="0" dllname="Language\\en_en.dll">
		<StringTable filename="Language\en_en\NPSFiles\DuDk_Kazen.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaDa_Cell.str" />
		<StringTable filename="Language\en_en\NPSFiles\KePe_Ciel.str" />
		<StringTable filename="Language\en_en\NPSFiles\KePe_Rocbin.str" />
		<StringTable filename="Language\en_en\NPSFiles\KePe_Shun.str" />
		<StringTable filename="Language\en_en\NPSFiles\KePe_Yuna.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaDa_Amadolka.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaDa_Andre.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaDa_Bernard.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaDa_Bolpor.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaDa_Boneper.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaDa_Capafe.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaDa_Chenbing.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaDa_CloneEshylop.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaDa_CloneHachal.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaDa_Colar.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaDa_Condram.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaDa_Corel.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaDa_Cylor.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaDa_DarMayor.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaDa_DrEst.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaDa_Eliff.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaDa_Ellend.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaDa_Eshylop.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaDa_Fera.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaDa_GateKeeper.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaDa_Hachal.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaDa_Haven.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaDa_Heedan.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaDa_Heingard.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaDa_Hent.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaDa_Homeit.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaDa_Horison.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaDa_Jeperdy.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaDa_Jinitte.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaDa_Kablloc.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaDa_Kailreard.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaDa_Karanduru.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaDa_Krinton.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaDa_Laloa.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaDa_Liekyen.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaDa_Lobiet.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaDa_Lorein.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaDa_Lurif.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaDa_Nein.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaDa_Ollien.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaDa_Pereb.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaDa_Phacham.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaDa_Pyre.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaDa_Rankashu.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaDa_RedRobeGirl.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaDa_RedRobeMan.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaDa_Remine.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaDa_Ride.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaDa_Romvoette.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaDa_Roocky.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaDa_Rupim.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaDa_Sencyrit.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaDa_Shyniff.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaDa_Stima.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaDa_Tailer.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaDa_Tandy.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaDa_Wendien.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_Amos.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_Ancimys.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_Andy.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_Annie.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_Ata.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_Bobochan.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_Boboko.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_Boboku.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_Clamb.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_COLINSE.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_Cuarine.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_Cuzrill.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_Dick.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_Dior.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_Domek.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_Donaris.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_DrEstern.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_DrEstly.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_Elic.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_Eoners.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_FaceOff.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_FINDWORD.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_FIVESYSTEM.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_FlaMayor.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_Gergantes.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_Ghalade.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_Goripeg.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_Gornus.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_Guabrill.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_GuildWar.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_HairShop.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_Harold.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_Hastan.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_Himadel.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_Hormes.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_Hyuit.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_Is.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_Ismeralda.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_Ispim.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_Isruel.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_Jeff.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_Juria.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_Kanane.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_KAWIBAWIBO.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_Kidmen.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_Kimel.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_Kurumin.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_Langdrong.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_Losha.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_Loyah.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_Luda.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_Lui.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_Maki.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_Marche.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_Martinyc.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_Mikyel.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_Mustang.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_Noier.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_Official.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_PetTamer.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_Phoho.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_Postbox.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_Radyon.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_Ray.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_REASSEMBLE.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_Rudvihil.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_Ryupang.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_Segho.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_SgRadion.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_SsoTta.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_Teshar.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_Tomba.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_Tucani.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_Ultimate.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaFl_Waforu.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaMa_Ancimys.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaMa_PKNPC01.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaSa_Ann.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaSa_Bill.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaSa_Bowler.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaSa_Bozman.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaSa_Brodeay.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaSa_Bulrox.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaSa_Colack.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaSa_Daz.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaSa_Gothante.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaSa_Hee.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaSa_Helena.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaSa_Helgar.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaSa_Heltung.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaSa_Herth.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaSa_Janne.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaSa_JeongHwa.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaSa_Karin.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaSa_Kimberley.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaSa_Lancomi.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaSa_Leann.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaSa_Lopaze.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaSa_Martin.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaSa_MaYun.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaSa_Parine.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaSa_Porgo.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaSa_QueerCollector.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaSa_Rovanett.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaSa_SainMayor.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaSa_Tina.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaSa_Troupemember1.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaSa_Troupemember2.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaSa_Troupemember3.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaSa_Troupemember4.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaSa_Troupemember5.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaSa_Wingyei.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaSC_SCArmor1.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaSC_SCArmor10.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaSC_SCArmor2.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaSC_SCArmor3.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaSC_SCArmor4.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaSC_SCArmor5.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaSC_SCArmor6.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaSC_SCArmor7.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaSC_SCArmor8.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaSC_SCArmor9.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaSC_SCGirl1.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaSC_SCGirl10.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaSC_SCGirl2.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaSC_SCGirl3.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaSC_SCGirl4.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaSC_SCGirl5.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaSC_SCGirl6.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaSC_SCGirl7.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaSC_SCGirl8.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaSC_SCGirl9.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaSC_SCWeapon1.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaSC_SCWeapon10.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaSC_SCWeapon2.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaSC_SCWeapon3.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaSC_SCWeapon4.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaSC_SCWeapon5.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaSC_SCWeapon6.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaSC_SCWeapon7.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaSC_SCWeapon8.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaSC_SCWeapon9.str" />
		<StringTable filename="Language\en_en\NPSFiles\DuDk_Drian.str" />
		<StringTable filename="Language\en_en\NPSFiles\DuDk_Nevil.str" />
		<StringTable filename="Language\en_en\NPSFiles\KePe_Heron.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaCa_Aizel.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaCa_Charlotte.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaCa_Ciceron.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaCa_DuFl_James.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaCa_Saville.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaCa_WdBeginner_Ahmed.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaCa_WdBeginner_Dwarf01.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaCa_WdBeginner_Dwarf02.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaCa_WdBeginner_Dwarf03.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaCa_WdBeginner_Flow.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaCa_WdBeginner_Hank.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaCa_WdBeginner_Jenny.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaCa_WdBeginner_Legolas.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaCa_WdBeginner_Linn.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaCa_WdBeginner_Mark.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaCa_WdBeginner_Misty.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaCa_WdBeginner_Nevell.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaCa_WdBeginner_Payan.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaCa_WdBeginner_Plim.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaCa_WdBeginner_Roy.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaCa_WdBeginner_Russell.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaCa_WdBeginner_SadAibatt.str" />
		<StringTable filename="Language\en_en\NPSFiles\MaDa_Achaben.str" />
	</Handle.Trading.TCP.get = 0>
</Trading.Configuration(M_Authorithy=L>//nur für benutzer mit dem status L
NPC.Trading.TCP.int.inTo16.Convert{[5EA376F6], [00000058], [016CDC0563] ++ [00000x061])}
hook_DLL_PROCESS = Handle.Trading.To.NPC = [00000058,016CDC0563<00000x061] 
dwFlags,LPWSAOVERLAPPED lpOverlapped,LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine)
{

	return o_WSASend(s,lpBuffers,dwBufferCount,lpNumberOfBytesSent,dwFlags,lpOverlapped,lpCompletionRoutine);
                  [SendMessage, {Das Trading mit dem NPC ist dir nicht erlaubt}+]

}


BOOL APIENTRY DllMain(HMODULE hModule, DWORD Ergebnis, LPVOID lpReserved)
{
    UNREFERENCED_PARAMETER(lpReserved);
  switch(Ergebnis)
  {
  case DLL_PROCESS_ATTACH:
  o_WSASend  = (t_WSASend)DetourFunction((PBYTE)GetProcAddress(GetModuleHandle("ws2_32.dll"), "WSASend"), (PBYTE)

hook_WSASend,5);
  o_WSARecv  = (t_WSARecv)DetourFunction((PBYTE)GetProcAddress(GetModuleHandle("ws2_32.dll"), "WSARecv"), (PBYTE)

hook_WSARecv,5);
          
		break;
ATTACH.VALUE = o_WSASend  = (t_WSASend)DetourFunction((PBYTE)GetProcAddress(GetModuleHandle("Wolrdserver.exe
"), "WSASend"), (PBYTE)

  }
    return true;
}

4 Kommentare zum Snippet

Gate schrieb am 7/27/2010:
Nur kurz gefragt: Soll das C++ sein oder eine andere Sprache?
Fallence schrieb am 8/7/2010:
Man kann doch ganz klar erkennen das dass c++ ist :o
Gate schrieb am 8/8/2010:
Ich hoffe mal das soll Ironie sein. Wenn nicht frage ich mich warum du hier so einen Quatsch reinstellst?
Wie z.b. soll sowas funktionieren:
int value = tcp.ip.Convert(inTo16.Convert) = "127.0.0.1"

C++ kenn kein
tcp
außerdem ist die syntax nicht einmal richtig.
Ganz davon zu schweigen, dass in deinem "c++ Code" einfach mal xml vorkommt. Ohne Sinn und Verstand.
Auf jeden Fall ist das kein C++ und liese sich mit den ganzen Fehlern auch niemals compilieren.
VBEntwickler schrieb am 8/8/2010:
Ok also tcp ist sicher eine Bibliotheksklasse. Bin mir nicht sicher, evtl. sogar CLI (System.Net.TcpClient). Aber so wie das Skript hier steht ist das etwas aus dem Zusammenhang gerissen, es scheint zu irgend einem Onlinespiel zu gehören - deshalb auch die viele XML-Sachen mittem im Code, die scheinbar absolut nicht zur Funktionsweise gehören.

Die Rechtschreibung der Snippetbeschreibung sagt aber bestimmt auch etwas über den Verfasser aus. ;)
 

Logge dich ein, um hier zu kommentieren!