Code Monkey home page Code Monkey logo

0x02-arm-32-hacking-int's Introduction

image

0x02_arm_32_hacking_int

ARM 32-bit Raspberry Pi Hacking Int example in Kali Linux.


Join DC540 Discord HERE


FREE Reverse Engineering Self-Study Course HERE


Schematic

image

Parts

Raspberry Pi 4
64GB Micro SD Card
Micro SD Card Reader/Writer

STEP 1: Download Kali Linux ARM Image - Raspberry Pi 32-bit

Download [https://www.offensive-security.com/kali-linux-arm-images/]

STEP 2: Download balenaEtcher

Download

STEP 3: Flash Kali Linux ARM Image

Watch YT Null Byte Video

STEP 4: Power Up RPI & Login

POWER UP DEVICE AND LOGIN AS KALI AND SET UP SSH

STEP 5: Create File In VIM

#include <stdio.h>

int main()
{
    int x;

    x = 10;

    printf("%i\n", x);

    return 0;
}

STEP 6: Save File As - 0x02_arm_32_hacking_int.c [:wq]

STEP 7: Build & Link

gcc -o 0x02_arm_32_hacking_int 0x02_arm_32_hacking_int.c

STEP 8: Run Binary

./0x02_arm_32_hacking_int
10

STEP 9: Run Radare2 - Debug Mode

r2 -d ./0x02_arm_32_hacking_int

STEP 10: Run Radare2 - Debug Step 1 [Examine Binary @ Entry Point]

aaa
s main
vv

image

STEP 11: Run Radare2 - Debug Step 2 [Examine int]

q
[0x0041b50c]> pf C @0x0041b512
0x0041b512 = 10

STEP 12: Run Radare2 - Debug Step 3 [Hack int]

[0x0041b50c]> wa mov r3, 0xd @0x00470512

STEP 13: Run Radare2 - Debug Step 4 [Review Hack]

[0x0041b50c]> pf C @0x0041b512
0x0041b512 = 13

STEP 14: Run Radare2 - Debug Step 5 [Hack Binary Permanently]

q
r2 -w ./0x02_arm_32_hacking_int
[0x000003fc]> aaa
[0x000003fc]> s main
[0x0000050c]> vv

image

[0x0000050c]> wa mov r3, 0xd @0x00000512
q

STEP 15: Prove Hack

./0x02_arm_32_hacking_int
13

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

Apache License, Version 2.0

0x02-arm-32-hacking-int's People

Contributors

mytechnotalent avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

rodrigoieh incod3

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.