Skip to content

Single header code that sets any section's page to No Access

License

Notifications You must be signed in to change notification settings

hotline1337/page_no_access

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Page No Access

Proof of Concept

We specify the section by using it's name, we encrypt it and set the protection to NO_ACCESS. The pages will be decrypted on their very first access. If the RIP will be outside the valid module the program will fail and crash.

Usage

#include "section.hpp"

auto main(void) -> int
{
    page::section::initialize_protection(".text");
    
    /* ... */
    
    return EXIT_SUCCESS;
}

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

GPL-3.0

About

Single header code that sets any section's page to No Access

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages