Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

369
Views
How to inject code into a running process using C/C++

I am looking for advice on how to manipulate functions by injecting code directly into memory during runtime. The aim is to eventually run run an external application that is able to manipulate running processes for optimisation purposes. So far, I have gone down the route of using GDB to manipulate memory, by following this tutorial:

http://www.codeproject.com/Articles/33340/Code-Injection-into-Running-Linux-Application?fid=1534990&df=90&mpp=10&sort=Position&spc=Relaxed&tid=4678205

However, it is fairly dated now and i cant seem to get it working on a 64-bit architecture... I would appreciate any advice on this topic. Cheers

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

To allow this opens up huge security vulnerabilities, so it is strictly forbidden in any sane environment. Newer Linux in particular (and more so on x86_64) strictly separates executable memory areas from modifiable areas. Besides, modern CPUs don't react kindly to code changes outside their caches and such. Perhaps the nearest would be to load shared libraries dynamically.

This kind of operation is part of the workings of most scripting languages, like Perl or Python.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!