Error under compalering i C++
Hej Eksperter...!Jeg har dette lille problem, med at jeg får denne fejl i Microsoft Visual C++ 6 når jeg prøver at compilere mit demostrerings program:
¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
--------------------Configuration: exploit1 - Win32 Debug--------------------
Compiling...
exploit1.cpp
C:\Documents and Settings\Administrator\Desktop\exploit1.cpp(35) : error C2415: improper operand type
Error executing cl.exe.
exploit1.exe - 1 error(s), 0 warning(s)
¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
Min kildekode til programmet ser således ud:
¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
#include <stdio.h>
#include <stdlib.h>
#include <fstream.h>
#include <string.h>
#include <process.h>
void main(void)
{
char *Buffer = "", *Data = "test";
cout << "\n-----> EXPLOIT <-----\n";
cout << "Buffer overflow exploit v0.01b\n\n";
cout << "Executing main.exe ... \n";
if (system("main.exe"))
{
cout << "\nExecution of main.exe succeded!\n";
}
else
{
cout << "\nExecution of main.exe failed!\n";
}
cout << "Done executing main.exe ...\n";
_asm
{
mov eax, 0x0012FF94
mov Buffer, eax
push 0x0
lea eax,[edi][0x0000000C0]
push eax
push ebx
call 0x000414370
}
cout << "Buffer contains: " << Buffer << ";\n";
cout << "Data contains: " << Data << ";\n";
cout << "-----> EXPLOIT <-----\n";
gets( Buffer );
}
¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
Jeg håber der er nogle der kan forklare hvad jeg kan gøre ved dette problem....
150 Point, da det betyder meget for mig at få svar iaften.
Truti