Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Utilities

    phook 0.2

    Download button

    No screenshots available
    Downloads: 1,032  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Poor (1.0/5)
    1 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Virgilio | More programs
    GPL / FREE
    April 20th, 2007, 21:03 GMT
    ROOT / Utilities

     Read user reviews (0)  Refer to a friend  Subscribe

    phook description

    phook is a userspace tool that injects code into any application at run-time using ptrace().

    phook is a userspace tool that injects code into any application at run-time using ptrace(). The project has a modular design to allow one use different plugins to make the target application do whatever is wanted. Default plugins are able to read and write into file descriptors belonging to other applications and to clean zombie processes.

    Usage:

    phook accepts by default the following command-line options:

    ./phook -p|--pid PID -f|--fd FD [ -w|--write STRING | -l|--load PLUGIN_NAME
    -r|--read NUM_BYTES -o|--output FILE [ -t|--timeout TIMEOUT ] ]

    You have to choose either --read, --write or --load.

    --write STRING * Write the string STRING to the file descriptor specified by --fd

    --read NUM_BYTES * Read NUM_BYTES bytes from the file descriptor specified by --fd

    --load PLUGIN_NAME * Use the plugin PLUGIN_NAME. Command line options depends upon the plugin.


    When using --read or --write, the following options are mandatory (M):

    M) --pid * The pid of the target application
    M) --fd * The file descriptor you want to read/write from/to

    With --read, you have the following options, which might be mandatory (M) or optional (O):

    M) --output * Write the data stolen from the file descriptor to this output file
    O) --timeout * Wait for data for the specified amount of seconds (integer). If timeout is 0, the plugin will wait *FOREVER*.

    !!! IMPORTANT NOTE: WHILE READING FROM A FILE DESCRIPTOR, YOUR APPLICATION WILL HANG* UNTIL DATA IS RECEIVED OR THE TIMEOUT EXPIRES.

    !!! REMEMBER THAT YOU ARE ACTUALLY STEALING DATA FROM THE FILE DESCRIPTOR AND THIS MEANS THAT YOUR TARGET APPLICATION WON'T BE ABLE TO READ THE DATA YOU'VE "STOLEN".

    THIS CAN MAKE YOUR APPLICATION UTTERLY FAIL IN AN UNEXPECTED WAY.

    What's New in This Release:

    · A plugin that reads from a file descriptor of another process without blocking it has been added, as well as a general purpose cleaner of zombie processes.



    Product's homepage

      


    TAGS:

    code injector | Pluggable injector | run-time injector | phook | Pluggable | run-time

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM