Questions tagged [c++]

C++ is a statically typed, free-form, multi-paradigm, compiled, general-purpose programming language. It is considered an intermediate level language.

C++ is a statically typed, free-form, multi-paradigm, compiled, general-purpose programming language. It is considered an intermediate level language. Multi-paradigm refers to the language being procedural, functional, object-oriented and generic.

447 questions
6
votes
1 answer

How to find event functions called by UI components in a C++/DirectX program

I have a program written in C++ with DirectX (as far as I know). The user interface has menus with buttons and other UI components. To automate a process I would like to find the function called by an event (eg. click on a specific button). How can…
samuirai
  • 3,079
  • 4
  • 23
  • 37
3
votes
1 answer

Trying to identify a Binary-Search-Tree structure

Let's say I make a std::map in C++, and ADDR is their address in memory. When I look at this place in memory I will find a pointer and in ADDR + 4 will be the amount of elements in the container. Now, when I go to [ADDR], I will find 3 more…
ozuromo
  • 31
  • 2
2
votes
1 answer

libuv - spoofing user-agent problem

Im trying to give an app "second life" (gamedev "banned" User-Agent of this tool to avoid requests from it). This app is using websocket to get real-time result and then use this result in a GET request. Where is header data stored in libuv (what…
2
votes
0 answers

Is it possible to get address of function that implement virtual

I have address of virtual function in export table , is it possible to get implementation function address, that makes whole logic of virtual ? Code sample: this is virtual function that goes to export table class CORE_API FArchive { public: …
LighFusion
  • 272
  • 2
  • 10
1
vote
2 answers

How to find specific function in IDA pro

Apologies if this account question may sound a bit stupid but I really need help with something Let's say I had a function that looks something like this : #undef curl_easy_setopt CURLcode curl_easy_setopt(struct Curl_easy *data, CURLoption tag,…
CoolNite
  • 39
  • 4
1
vote
1 answer

Trying to call DLL's functions from my exe

I am new here and I have a question for you guys (C++) I will try to describe my situation with some details so that you can understand this better. This might be long(er) but it might be necessary to explain this to someone who doesn't know how…
782458
  • 11
  • 1
1
vote
1 answer

Question about IDA 6.8, also why its creating unnecessary vars

recently I've been learning to do RE. I made a simple program in 10 seconds that I was going to mess around with in IDA. #include int main(int argc, char* argv[]) { printf("Hello, world!\n"); int i = 0; if (i == 0) { …
Verideth
  • 31
  • 5
0
votes
2 answers

Questions about reversing object oriented code(initializing vtables in ctors)

I was reversing some C++ code and encountered following function. sub_106C0A0 proc near var_10= dword ptr -10h var_C= dword ptr -0Ch var_4= dword ptr -4 push 0FFFFFFFFh push offset SEH_106C0A0 mov eax, large fs:0 push eax mov …
Jaewon Min
  • 329
  • 1
  • 10
0
votes
1 answer

C++/C++11/C++0x in application to Reverse-engineering

Is there any libraries for Reverse engineering/exploitation for the C++11/C++/C programming language ? I am currently learning C based languages and would like to know if there are any libraries for this kind of trade.
user3286303
  • 107
  • 1
  • 3
  • 7
0
votes
1 answer

Flag 200h open file

cseg01:00056938 mov edx, offset var_byte_0004DCC8 cseg01:0005693D mov eax, offset hmi_drv_str cseg01:00056942 call strcpy_ cseg01:00056947 mov edx, offset aHmidrv_386 ;…
black4
  • 333
  • 1
  • 6
0
votes
1 answer

Get hardcoded char array from compiled C++ source

It is well known that literal strings can be retrieved from C++ compilates. For example, the output of g++ a.cpp on int main(void) { const char * secret0 = "abcdefghijklmnopqrstuvwxyz"; const char secret1[] = { 0x00, 0x01, 0x02,…
0
votes
1 answer

Making zero terminated string WATCOM compiler

This is WATCOM compiler. Assembler code below try create random 8 letters to compose zero terminated string. cseg01:0001F544 Try_Write_To_Disk proc near ; CODE XREF: Check_CDRom+46p cseg01:0001F544 cseg01:0001F544 var_19 = byte…
black4
  • 333
  • 1
  • 6
0
votes
0 answers

How many bytes allocated for buffer?

There is start of function: cseg01:0001F4C8 Check_CDRom proc near ; CODE XREF: Init+Ap cseg01:0001F4C8 cseg01:0001F4C8 var_24 = byte ptr -24h cseg01:0001F4C8 cseg01:0001F4C8 push edx cseg01:0001F4C9 …
black4
  • 333
  • 1
  • 6
0
votes
0 answers

Detours ws2_32.dll [Send]

I have a program that calls send (), I need to change the host to my own, but this does not work (either the program crashes or the request does not reach the server) - I log requests on the server. What could be the problem? int WINAPI…
IRED
  • 1
0
votes
1 answer

Unrecognized sequence of bytes

I have this piece of code: .text:00537FDE push offset a3Rrrrrrrrrrrrr ; "3L+ÐÐÐÐÐÐÐÐÐÐÐÐÐ+ÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐøû9\n" .text:00537FE3 call sub_5606A0 Where offset a3Rrrrrrrrrrrrr is: .text:005379B0 a3Rrrrrrrrrrrrr db…
black4
  • 333
  • 1
  • 6
1
2