{"id":21204951,"url":"https://github.com/saelo/armpwn","last_synced_at":"2025-04-08T03:13:31.858Z","repository":{"id":28514890,"uuid":"32031545","full_name":"saelo/armpwn","owner":"saelo","description":"Repository to train/learn memory corruption on the ARM platform.","archived":false,"fork":false,"pushed_at":"2017-04-17T09:16:33.000Z","size":924,"stargazers_count":351,"open_issues_count":0,"forks_count":82,"subscribers_count":30,"default_branch":"master","last_synced_at":"2025-03-31T18:21:18.931Z","etag":null,"topics":["ctf","exploit"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/saelo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-11T17:30:50.000Z","updated_at":"2025-02-24T04:55:48.000Z","dependencies_parsed_at":"2022-08-24T07:00:40.889Z","dependency_job_id":null,"html_url":"https://github.com/saelo/armpwn","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saelo%2Farmpwn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saelo%2Farmpwn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saelo%2Farmpwn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saelo%2Farmpwn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saelo","download_url":"https://codeload.github.com/saelo/armpwn/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247767236,"owners_count":20992548,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ctf","exploit"],"created_at":"2024-11-20T20:42:07.641Z","updated_at":"2025-04-08T03:13:31.834Z","avatar_url":"https://github.com/saelo.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ARMPwn\n\nRepository to train/learn memory corruption exploitation on the ARM platform.\nThis is the material of a workshop I prepared for my CTF Team.\n\n\n## Quick Setup\n\nEither upload the binary to some ARM device (I used a Raspberry Pi) or use qemu locally as described [here](https://github.com/niklasb/rpi-qemu).\nAlso copy the webroot/ folder and the led script to the device. The binary expects both to be in the current working directory.\n\nThe binary needs to be run as root or (preferably) have CAP_NET_BIND_SERVICE enabled (sudo setcap 'cap_net_bind_service=+ep' websrv).\n\n\n## How to use this Repository\n\nIn general the goal is to get code execution on the target system.\nThere are 4 different ways to benefit from this repository:\n\n### Total Pwn\n\nDeploy the binary and go pwn it _without_ reversing the binary first. Assume no prior knowlege of the binary.\n\n### Full Pwn\n\nYou're given access to the binary as well (in bin/).\n\n### Medium Pwn\n\nYou're given access to the binary and it's source code in src/. You'll miss out on some reversing fun though.\n\n### Lesser Pwn\n\nRefer to the exploit and explanations in exploit/ as you go along.\n\n\n## RPI Configuration\n\nThe RPI used during the workshop was configured as follows:\n\n- kernel boot messages were written to /dev/ttyAMA0 (the default)\n- /etc/inittab was modified to not spawn getty on /dev/ttyAMA0\n- syslog-ng was modified to enable output on /dev/ttyAMA0 by adding the following line to /etc/syslog-ng/syslog-ng.conf:\n    destination d_console_all { file(\"/dev/ttyAMA0\"); };\n- verbose crash messages were enabled by setting \"sysctl kernel.print-fatal-signals=1\" during boot, e.g. through /etc/init.d/rc.local\n    (sadly the ARM kernel does not by default print a crash summary to the kernel ring buffer as opposed to e.g. an x86 kernel)\n- An LED was connected to GPIO pin 17 on the Pi\n\nUsing these, we developed our exploits by connecting a serial cable to the Pi and getting the crash dumps this way. No gdb or similar.\n\n\nFeedback is always welcome! Enjoy :)\n\n@5aelo\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaelo%2Farmpwn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaelo%2Farmpwn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaelo%2Farmpwn/lists"}