Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

372
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda