Thread: nop in c++

Page 2 of 2 FirstFirst 12
Results 16 to 22 of 22
  1. #16
    scimmyboy's Avatar
    Join Date
    Jan 2008
    Gender
    male
    Location
    https://mpgh.net MPGHCash: $442,596,199
    Posts
    5,645
    Reputation
    26
    Thanks
    896
    My Mood
    Happy
    lol. jetamay, u make hax too?

  2. #17
    oilu's Avatar
    Join Date
    Apr 2007
    Gender
    male
    Location
    all
    Posts
    7
    Reputation
    10
    Thanks
    0
    hello i'm training to do the nub on a DLL i include the header windows.h and every thing but still gives compiler error "invalid conversion from `int' to `void*".

    Can you do a byte nob in DLL? thas my question.
    it dosen't let me.

  3. #18
    radnomguywfq3's Avatar
    Join Date
    Jan 2007
    Gender
    male
    Location
    J:\E\T\A\M\A\Y.exe
    Posts
    8,858
    Reputation
    381
    Thanks
    1,823
    My Mood
    Sad
    Quote Originally Posted by oilu View Post
    hello i'm training to do the nub on a DLL i include the header windows.h and every thing but still gives compiler error "invalid conversion from `int' to `void*".

    Can you do a byte nob in DLL? thas my question.
    it dosen't let me.
    Did you put (void*) in-front of it(or typecast it rather). Some compilers like Dev-C++ will be a real bitch when in comes to compiling, others like VC6 will compile with the rare occasion of a crash, what compiler are you using?



    There are two types of tragedies in life. One is not getting what you want, the other is getting it.

    If you wake up at a different time in a different place, could you wake up as a different person?


  4. #19
    oilu's Avatar
    Join Date
    Apr 2007
    Gender
    male
    Location
    all
    Posts
    7
    Reputation
    10
    Thanks
    0
    I'm using VC6, the (void*) i did put but still nothing take a LOOK here is the
    code:
    void Unlammo()
    {
    OpenMemory();
    WriteProcessMemory(pontermandataren,(LPVOID*)(void *)0x51EEF6, 0x90, 3, NULL);
    WriteProcessMemory(pontermandataren,(LPVOID*)(void *)0x51EF07, 0x90, 3, NULL);
    WriteProcessMemory(pontermandataren,(LPVOID*)(void *)0x51EF0D, 0x90, 3, NULL);
    }
    whene i try to do a array type byte still gives error
    code:
    void Unlammo()
    {
    byte nop[] = {0x90};
    OpenMemory();
    WriteProcessMemory(pontermandataren,(LPVOID*)(void *)0x51EEF6, &nop, 3, NULL);
    WriteProcessMemory(pontermandataren,(LPVOID*)(void *)0x51EF07, &nop, 3, NULL);
    WriteProcessMemory(pontermandataren,(LPVOID*)(void *)0x51EF0D, &nop, 3, NULL);
    }
    the errors are :
    'byte' : undeclared identifier
    'nop' : undeclared identifier

  5. #20
    Gordon`'s Avatar
    Join Date
    Dec 2007
    Gender
    male
    Posts
    283
    Reputation
    24
    Thanks
    325
    case sensitive..

    change "byte" to "BYTE"

  6. The Following User Says Thank You to Gordon` For This Useful Post:

    oilu (06-05-2008)

  7. #21
    oilu's Avatar
    Join Date
    Apr 2007
    Gender
    male
    Location
    all
    Posts
    7
    Reputation
    10
    Thanks
    0
    WOW man i thought that i did that Thanks A Lot it did work GRRRR byte lol

  8. #22
    *Marneus901*'s Avatar
    Join Date
    Sep 2007
    Gender
    male
    Location
    Maryland
    Posts
    112
    Reputation
    12
    Thanks
    16
    Code:
    //Write To Memory
    DWORD OldProtection;
    void WriteToMemory(DWORD Offset, DWORD Pointer, DWORD Length){
        VirtualProtect((void *)Offset, Length, PAGE_EXECUTE_READWRITE, &OldProtection);
        RtlMoveMemory((void *)Offset, (const void*)Pointer, Length);
        VirtualProtect((void *)Offset, Length, OldProtection, &OldProtection);
    }
    //------------------------------
    //Modify Memory
    void ModifyMemory( BYTE *Offset, BYTE *ByteArray, DWORD Length){
        for(DWORD i = 0; i < Length; i++)
            WriteToMemory((DWORD)Offset + i, (DWORD)ByteArray + i, 1);
    }
    Call the function by

    Code:
    ModifyMemory((BYTE*)[Address],[Bytes to write with], [amount of bytes]);
    So it looks like this
    Code:
    #define Address1 0xFFFFFF //Address
    BYTE AddressBytes[] = {0x90,0x90,0x90};//3 Byte NOP
    ModifyMemory((BYTE*)Address1,AddressBytes,3); //Call Function


Page 2 of 2 FirstFirst 12

Similar Threads

  1. [Help] How to write value NOP
    By jaqq3000 in forum Visual Basic Programming
    Replies: 9
    Last Post: 12-02-2007, 11:46 AM
  2. How to write value "NOP"
    By w00t? in forum Visual Basic Programming
    Replies: 2
    Last Post: 10-10-2007, 12:32 PM
  3. C++ nop Address
    By yoni1993 in forum C++/C Programming
    Replies: 6
    Last Post: 08-28-2007, 12:30 AM
  4. NOP in VB6?
    By unseenss in forum WarRock - International Hacks
    Replies: 0
    Last Post: 07-27-2007, 09:18 PM
  5. C++ nop Address
    By yoni1993 in forum C++/C Programming
    Replies: 0
    Last Post: 07-14-2007, 01:14 PM

Tags for this Thread