193

I once pirated a book because I didn't want to get it from another room.

you are viewing a single comment's thread
view the rest of the comments
[-] tunetardis@piefed.ca 5 points 2 days ago

Yeah. At the lowest level, the CPU reads a program as a bunch of numbers, where each number is a very simple instruction such as "add 2 values together". Assembly language is a more human-readable version of machine code, where you can see something more like add r1,r2 instead of 35397176 or whatever numeric code means "add the value in register 1 to 2" for some hypothetical processor. (Registers are where the processor keeps values loaded in from the RAM.)

So in my case, if I saw that the program was making some system call to the random number generator and the calling conventions used by the operating system always put the return value in register 0, I could replace the call with something like clr r0 (clear the value in register 0). It's a pretty simple hack. So the "generator" now always generates zero.

These days, programs are often code-signed and if you start messing around like that, they'll get flagged as malware. But it worked fine back in those open and trusting days.

[-] CanadaPlus@lemmy.sdf.org 1 points 15 hours ago* (last edited 15 hours ago)

Isn't there a way to manually whitelist modified software on your AV, if it's your own machine?

With modern software, there's also the problem of just learning whatever weird stack the game is running on, to know where to look.

[-] tunetardis@piefed.ca 1 points 14 hours ago

That's a good question. It may depend on the platform?

Right now, I'm doing most of my coding on a Mac. I noticed I get into trouble when trying to move the program to another machine. The OS seems to tag the executable with some metadata that runs afoul of Gatekeeper. Removing said metadata seems to get you past that. But that's for in-house software that has never been registered with Apple or anything. I've never actually tried modifying a program that has been registered, so I'm not sure if there are any extra levels to this?

this post was submitted on 26 Jun 2026
193 points (99.0% liked)

Asklemmy

54727 readers
1360 users here now

A loosely moderated place to ask open-ended questions

Search asklemmy ๐Ÿ”

If your post meets the following criteria, it's welcome here!

  1. Open-ended question
  2. Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
  3. Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
  4. Not ad nauseam inducing: please make sure it is a question that would be new to most members
  5. An actual topic of discussion

Looking for support?

Looking for a community?

~Icon~ ~by~ ~@Double_A@discuss.tchncs.de~

founded 7 years ago
MODERATORS