网站LOGO
紫血小站
页面加载中
3月21日
网站LOGO 紫血小站
人山人海人来人往,自尊自爱自由自在
菜单
[LOL]英雄联盟Riot Servers bypass inline hook
正文
  • 用户的头像
    首次访问
    上次留言
    累计留言
    我的等级
    我的角色
    打赏二维码
    打赏博主
    [LOL]英雄联盟Riot Servers bypass inline hook
    点击复制本页信息
    微信扫一扫
    文章二维码
    文章图片 文章标题
    创建时间
  • 一 言
    确认删除此评论么? 确认
  • 本弹窗介绍内容来自,本网站不对其中内容负责。

    [LOL]英雄联盟Riot Servers bypass inline hook

    Zixue · 原创 ·
    C++ · 暂无标签
    共 1532 字 · 约 1 分钟 · 431
    本文最后更新于2024年05月15日,已经过了309天没有更新,若内容或图片失效,请留言反馈

    这段代码实现了绕过Riot服务器的某些安全机制。通过修改散列哈希值,可以实现对游戏内存的修改。该方法可能会导致游戏被检测出作弊行为,因此需谨慎使用。


    cpp 代码:
    constexpr uint64_t hash_array = 0x2D6A10; // 13.24
     
    struct hash_struct {
        char pad1[ 0x68 ];   // will be change
        uint64_t hash[ 4 ];
    };
     
    struct section_hash {
        uint64_t og_hash[ 4] ;
        hash_struct* hash_ptr;
     
        section_hash() = default;
     
        explicit section_hash( hash_struct* hash ) : hash_ptr( hash ) {
            for ( int i = 0; i < 4; i++ ) {
                og_hash[ i ] = hash_ptr->hash[ i ];
            }
        }
     
        void restore_hash( ) const {
            for ( int i = 0; i < 4; i++ ) {
                hash_ptr->hash[ i ] = og_hash[ i ];
            }
        }
     
        void bypass_hash( ) const {
            for ( unsigned long long& i : hash_ptr->hash ) {
                i = 0x0;
            }
        }
    };
     
    void replace_hash( const uint64_t func_address ) {
        const int nb_pages = get_league_nb_pages( );
        const uint64_t league = reinterpret_cast< uint64_t >( GetModuleHandleA( nullptr ) );
     
        for ( int i = 4; i <= nb_pages; i++ ) {
            uint64_t curr_page = league + static_cast< uint64_t >( 0x1000 ) * i;
            const uint64_t next_page = league + static_cast< uint64_t >( 0x1000 ) * ( i + 1 );
     
            if ( func_address < curr_page || func_address > next_page ) {
                continue;
            }
     
            if ( hashes.contains( curr_page ) ) {
                hashes[ curr_page ].bypass_hash( );
            }
        }
    }
     
    uint64_t hook( void* src, void* dest, size_t size ) {
        const uint64_t detour = detour_func( src, dest, size );
        replace_hash( reinterpret_cast< uint64_t >( src ) );
     
        return detour;
    }
    声明:本文由 Zixue(博主)原创,依据 CC-BY-NC-SA 4.0 许可协议 授权,转载请注明出处。

    还没有人喜爱这篇文章呢

    我要发表评论 我要发表评论
    博客logo 紫血小站 人山人海人来人往,自尊自爱自由自在
    MOEICP 萌ICP备20241077号 ICP 粤ICP备15110322号-2

    💻️ Zixue 一天前 在线

    🕛

    本站已运行 1 年 89 天 21 小时 54 分
    紫血小站. © 2023 ~ 2025.
    网站logo

    紫血小站 人山人海人来人往,自尊自爱自由自在