Skip to content
/ pstdio Public

A GDB plug-in that can set stdio of the program you debug

Notifications You must be signed in to change notification settings

Ovi3/pstdio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

pstdio

A GDB plug-in that can set stdio of the program you debug.

Notice

See issue #1

Installation

git clone https://github.com/Ovi3/pstdio.git ~/pstdio
echo "source ~/pstdio/pstdio.py" >> ~/.gdbinit

Usage

First open GDB, And type 'pstdio help' to see the help text.

Example:

  1. When you debug the program, and the program will call the '<read@plt> to read data from stdio.
  2. And if you wanna enter the data, like '\x02\x03\x04\x05', just type:
pstdio data /x \\x02\\x03\\x04\\x05
  1. Then execute the 'call <read@plt>', the data you enter will be input.
  2. Or you can type 'psdtio file /path/to/data'. In this case, data of the file will be input.

About

A GDB plug-in that can set stdio of the program you debug

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages