Skip to content

yojo3000/NCTU_Unix_HW

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

###NCTU Unix programming Homework 2

####It's a pretty simple LD_PRELOAD hijack of gnu c library function, it contents fopen64, fwrite and connect function. And I just print some function info and customized output string to file

ltraceResult is the process record of ltrace

ltrace -o ltraceResult wget http://adl.tw

build cheat library ``` make ```
clean object ``` make clean ```
test the cheat library ``` make test ```
each function hijack result will save as a file named info_output

#####sample output: ``` ========== I am in connect function int connect(int sockfd, const struct sockaddr *addr, socklen_t addrlen)

ip address: 140.115.xx.xx

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages