Skip to content

yoggy/hook_bind_lo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hook_bind_lo

hook_bind_lo - bind() function hook sample

compile

  $ git clone https://github.com/yoggy/hook_bind_lo.git
  $ cd hook_bind_lo
  $ make

how to use

  $ ./hook_bind_lo
  usage : hook_bind_lo port command [args...]

IPv6

  $ ./hook_bind_lo 23456 nc -l -p 12345 -6
  hook_bind_lo.so : [INFO] HOOK_BIND_LO_PORT=23456
  hook_bind_lo.so : [INFO] hook bind() : addr=::1, port=23456

IPv4

  $ ./hook_bind_lo 23456 nc -l -p 12345 -4
  hook_bind_lo.so : [INFO] HOOK_BIND_LO_PORT=23456
  hook_bind_lo.so : [INFO] hook bind() : addr=127.0.0.1, port=23456

About

LD_PRELOAD sample

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages