How often does the letter i occur in:
In Topic: [c++] Read File Offset ?
Add -masm=intel to your compiler arguments.
What if my file is large than 550 bytes or the file doesnt exist?
Youd have to reverse engineer the protocol the game uses, which is impossible for someone who doesnt even know the basics of winsock/networking.
In Topic: x64 Intel Assembly Probably bad jump.
The [ & ] operators are the equivalent to the reference operator in C, which means this instruction will compare the rax with the value stored at 0x00000000006C6F6C whilst you probably meant to compare the contents of rax to lol.
Another mistake here is that rax wont contain the arguments but the number of arguments; the actual pointers to the arguments (excluding program name) passed on to the program start at [esp + 0x8].
The strings length is not 76 but 67.
Also notice how I changed dq into db, this is necessary because dq allocates 8 bytes for every character while you only need 1 byte.
And get rid of the ret instructions as they will never be reached.
user
In that passage, there are 47 occurrences of the letter "i."
assistant