Categories > Coding > C++ >

C++ memory editing / manipulation library.

Posts: 228

Threads: 43

Joined: May, 2022

Reputation: -5

Posted

I've had this in my github for a bit and it's currently probably my main "project". 

It's a simple and concise memory editing / manipulation library, it's a heavy WIP as I'm making it as I learn and I'm currently working on a full version of this with restoration of memory (i.e restoring overwritten code, values). If you have any suggestions at all please contact me at: xprssngz#9999

 

The purpose of this library is to make memory editing as easy as possible without the hassle of writing the code yourself. The library is updated frequently and improved as I go on with my C++ journey. Current features:

    void unload();

    template<typename...var_arg>
    void dbg_log(std::string const& dbg_message, var_arg...fmt_args) const;

    template<typename... var_arg>
    void dbg_err(std::string const& dbg_error, var_arg...fmt_args) const;

    template<typename stl_container_t>
    stl_container_t mem_read_bytes() const;

    template<typename value_t>
    void mem_set_val(value_t val) const;

    template<typename ret_t>
    ret_t mem_read_val() const;

    template<std::uint32_t sz>
    manipulated_code mem_tramp_hook(const std::uint32_t func_addr);

    template<typename data_t, std::size_t sz>
    std::array<data_t, sizeof(data_t) * sz> mem_read_dyn();
    
    std::uint32_t get_va() const;
    std::uint32_t get_rva() const;

    std::uint8_t mem_read_byte(bool signednesss) const;
    std::string mem_read_string(const std::uint32_t string_sz) const;

    std::vector< std::uint8_t > mem_read_func_bytes() const;

    bool alloc_console();
    bool free_console();

    void reloc_rva(const std::uint32_t mem_address);
    void set_va(const std::uint32_t mem_address);


    void set_rwx(const std::size_t sz);
    void unset_rwx(const std::size_t sz);

    void mem_set_nop(const std::size_t sz);

    bool mem_set_bytes(const std::size_t szbyte, std::span<std::uint8_t> byte_arr);
    bool mem_set_bytes(const std::size_t szbyte, std::uint8_t byte);

 

 

https://github.com/expressiongz/memory-manip-lib

 

 

 

 

  • 1

https://media.discordapp.net/attachments/1044764388546068510/1051935933836050482/Signature_4.png

Posts: 12

Threads: 2

Joined: Jun, 2022

Reputation: 11

Replied

vouch good release <3

  • 0

~iskrer

https://cdn.discordapp.com/attachments/1001178171510624439/1001614646282829934/unknown.png

Posts: 228

Threads: 43

Joined: May, 2022

Reputation: -5

Replied

@IskraNeverDies

 

:heart:

  • 0

https://media.discordapp.net/attachments/1044764388546068510/1051935933836050482/Signature_4.png

Posts: 29

Threads: 8

Joined: Jul, 2022

Reputation: 10

Replied

Vouch, am had some suggestions in the past(where dyn_read)

  • 0

veh_handler and seh_handler disliker

<p>enis</p>

Posts: 4

Threads: 2

Joined: Jun, 2022

Reputation: 3

Replied

DTC

with power of allah is work no detect MASHALLAH

  • 0

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )