News for hackers. Stuff that matters.

tomf64

Yes, there's no recompiling that can be done anyway if you only have the binary and no source code. Writing the new machine code would overwrite some code at the start of the function you're modifying, but that doesn't matter if you just want the function to return true or false.

You could edit the binary manually with a hex editor, but some disassemblers like Hopper have a feature where you can type new instructions in assembly and it will assemble and insert them for you. I'm sure IDA pro has something like that as well.

You insert the equivalent of "mov eax, 0x1; ret" (or 0x0) in x86 for whatever architecture you're using as the first instructions of the function.
Re:Fallout 4 Service Discovery and Relay on Sunday November 22, 2015 @10:51PM (#10612776)
It would be incredibly cool to have a script that automatically manages your inventory while playing the game, e.g. the player picks up all items and has the script auto-drop them if they don't meet certain requirements (value/weight ratio, duplicates, etc.). I'm excited to see where this goes!
Re:f.lux for iOS is no longer available on Thursday November 12, 2015 @07:18PM (#10557170)
That's the default header created by Xcode when making a new file, I didn't add that on purpose. I suppose I should go through and get rid of those lines.
Re:Facebook listening to conversations through microphone? on Friday October 09, 2015 @12:57PM (#10361489)
This is somewhat anecdotal but with the latest iOS and Facebook app versions, Facebook doesn't even show up on the list of apps that have requested to use my microphone. Unless they found some exploit to bypass Apple's restrictions and use my microphone without even asking for permission, I seriously doubt they're listening to users.
Re:Play GTA V in your Browser, Sort of on Monday July 27, 2015 @11:02AM (#9955552)
It definitely does! The main point of interest for me would be instant cross-platform support, although it's nice to not have to install a client too.
Re:Play GTA V in your Browser, Sort of on Monday July 27, 2015 @10:37AM (#9955410)
You may have seen this before, but if not it would probably interest you: http://lg.io/2015/07/05/revised-and-much-faster-run-your-own...
Re:Workflow for iOS on Thursday December 11, 2014 @02:44PM (#8736674)
None of the things you mentioned are possible without jailbreaking, but I think workflow's creators are planning to bring extra features like those to it through a jailbroken plugin of some kind.
Re:Is it possible to apply CSS to half of a character? on Monday May 12, 2014 @06:18PM (#7735720)
Maybe I'm misinterpreting but I assumed the subreddit would be a collection of answers like this instead of a place to ask them which would be super cool and helpful. Not sure if that's what's meant though.
Re:2014 MacBook Air: Performance benchmarks on Friday May 02, 2014 @09:52PM (#7689189)
It has nothing to do with them being Macs vs. PCs, it just depends on who they buy the SSDs from.