Jump to content

GDB assembly injection?

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
Acedia

Acedia

    Newbie

  • Members
  • Pip
  • 2 posts
Hi, I'm working on an assignment for a computer security class. I've been given an executable with a faulty function called "decode" and a text file with the corrected version of "decode" in hexadecimal/assembly format. I need to know if there is a way in GDB to execute arbitrary assembly instructions or inject/replace instructions in the code. I do not have the source code for the executable (obviously). Any help?

#2
dargueta

dargueta

    Writes binary right handed and hex left handed

  • Moderators
  • 4,722 posts
This might be what you're looking for.
Code Injection into Running Linux Application - CodeProject
sudo rm -rf /