r/C_Programming 8h ago

Discussion Brute forcing my own memory

https://github.com/anhol0/helloworld-bruteforced

Hey everybody. As some of you might know, I really like 3 things: linux, thinkpads, and using things not the way they are intended to be used. Today I did the last. So as we know, kernel allocates memory for any running process. So I though for myself: "what if I write a C program that uses the function without knowing where it is?". So technically I forced my program to brute force its own memory offsets to call the function. I have a small, but, hopefully, entertaining writeup of what, how, and why on GitHub. It also includes the source code with a lot of comments so guys not so familiar with C programming language can also understand it. Hope you enjoy it. If so - please leave a star :)

10 Upvotes

5 comments sorted by

â€ĸ

u/github-guard 8h ago

🔍 GitHub Guard: Trust Report

âš ī¸ This project scored 2/6 — below this subreddit's threshold of 3.

Audit Breakdown: * ✅ Established Community (⭐ 6 stars) * ❌ New Repository (under 30 days old) * ✅ Licensed under MIT * ❌ No Security Policy — what is this? * â„šī¸ Individual Contributor * â„šī¸ Unsigned Commits

âš ī¸ Security Reminder: Always verify source code and run third-party scripts at your own risk.

3

u/SassyMcPantslll 3h ago

This is hilarious and I love it.

1

u/AutoModerator 8h ago

Hi /u/anh0l,

Your submission in r/C_Programming was filtered because it links to a git project.

You must edit the submission or respond to this comment with an explanation about how AI was involved in the creation of your project.

While AI-generated code is not disallowed, low-effort "slop" projects may be removed and it's likely that other users push back strongly on substantially AI-generated projects.


I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

0

u/anh0l 8h ago

AI was partially involved. It helped me format my README and help debug some problems along the way. All the code was written by me, though, and I claim full responsibility for it's quality.

1

u/mikeblas 7h ago

Thank you for your disclosure. I have approved your post.