GithubHelp home page GithubHelp logo

access_physical_memory_tools's Introduction

Step1: Under the folder,compile module code-dram.c into dram.ko module.CMD:make
Step2: Under the folder,compile fileview-App for checkout the physical memory.CMD:make fileview
Step3: Install module for fileview-App reading mem by kernel's drv.CMD:sudo insmod dram.ko
Step4: Create the device for drv(dram.ko).CMD:sudo mknod /dev/dram c 85 0
Step5: Run the fileview-App.CMD:sudo ./fileview /dev/dram
Step6: Reopen new terminal change directory into usrapp-test,compile main.c.CMD:make
Step7: Run the main progress.CMD:sudo ./main

  • (Notice:you must use sudo previlige to run this code because of the code using file:"/proc/self/pagemap")

Step8: After run main code, you will get phy && vir address.Checkout phy address with fileview-App.
Step9: Fileview-App terminal,insert search cmd-code:0x0000000A,then the phy-address getting from Step8.

  • (Here you can see the content at phy-address the same as your main-code setting.)

access_physical_memory_tools's People

Contributors

mm1994uestc avatar

Stargazers

827998983 avatar  avatar Allen avatar

Watchers

 avatar

Forkers

ivanallen

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.