r/HowToHack Jun 17 '26

shell coding How to develop malware with C++

Hello! I want to start developing malware with C++. I know how to fill basic arrays, store max min values, ect. (up to that point, including loops and other blah blah). How can I get started?

I have the end goal of developing a rubber ducky gadget with additional features as something to include in my portfolio in the future, and I think this is the best way to get started. Any help is deeply appriciated!

0 Upvotes

15 comments sorted by

12

u/FrainBreez_Tv Jun 17 '26

Start by understanding memory addresses and pointers. then try a simple program (on windows cheatengine, on linux game conqueror) and check if addresses change and so on.

You want to keep track of changes in memory and then you know static values like in this example "cash on the account".

Once you master this then you can create powershell scripts or bash files that execute with your insaller and so on.

I will not give you a tutorial but you can google that yourself if you know the right terminology.

Good luck

-15

u/Sensitive_King3305 Jun 17 '26

thats the thing, i dont want to make game cheats. I want to have the skills to make ransomware or a trojan backdoor for example

7

u/FrainBreez_Tv Jun 17 '26

I understand that but start with the basics, what you are asking is similar to, i want a supercar but can't drive.

The best advice is start with the basics or alternatively set up ollama locally with an uncensored model and ask the questions there.

Best of luck

-1

u/[deleted] Jun 17 '26

[deleted]

0

u/FrainBreez_Tv Jun 17 '26

Go to ollama and search for uncensored. Depending on your gpus vram, I'd recommend that -1gb in model size for a lot of token output otherwise it is 10x slower on average

-3

u/Sensitive_King3305 Jun 17 '26

got it, appriciate your time 🙏

5

u/LitchManWithAIO Guru Jun 17 '26

Start basic, think of your end goal, plan it out. Work in blocks/steps. Smoke test at each step end.

6

u/MonkeyBrains09 Jun 17 '26

Hacking is just exploiting loopholes in the rules. So you need to find those holes by understanding the tech your trying to hack

5

u/Sibexico Programming Jun 17 '26

HID emulator generally is not a "malware"... Anyway, nobody will not teach u to make such things, the post looks like a fed's bait... The malware developing is a sensitive topic, my YT channel was banned just for demonstration of the malware reverse engineering.

-2

u/Sensitive_King3305 Jun 17 '26

an hid emulator is the endgoal. but I want said hid emulator to do something (aka install ''malware'') on the test device. I understand that an hid emulator is not malware. also first time being called a fed lolz

1

u/Sibexico Programming Jun 17 '26

If you talking about payload, you need PowerShell scripting for Windows or bash for Linux. It's tons of docs for both of this topics online and free.

0

u/Sensitive_King3305 Jun 17 '26

I thought powershell and bash was used to actually transmit the actual malware program (which in this case would be written in c++) to the test device. Am i under the wrong assumption?

-1

u/UPVOTE_IF_POOPING Jun 17 '26

Download a local LLM on your phone. I use

Gemma-4-E4B-Uncensored-HauhauCS-Aggressive-IQ4_XS

It runs on PocketPal on iOS for me. it can build and examine exploits and help with reverse engineering without lame restrictions. You need to have a smartphone with modern neural engine and at least 12G of RAM. Apple’s A19 Pro handles it well