Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

373
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda