![]() |
|
[C] Linux C++/C Dll injection + Code Injection Tutorial - Part Four(final) - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [C] Linux C++/C Dll injection + Code Injection Tutorial - Part Four(final) (/showthread.php?tid=2237772) |
Linux C++/C Dll injection + Code Injection Tutorial - Part Four(final) - g4143 - Feb 22, 2012 Main Page - https://hackforums.net/showthread.php?tid=2220892 This is the final step in this tutorial - We need to modify the code that we looked at in part one. We need to add a thread that maintains a server. shareobj.c Code #include <stdio.h>compile lines. Code gcc -shared -fPIC -o shareobj.so shareobj.c -ldl -lpthreadAnd finally usage. first open two terminals and go to the directory with our files. terminal one type. Code LD_PRELOAD=./shareobj.so ./testitterminal two type. Code ./client 127.0.0.1 helloYou should find that you can inject the shell code directly into the running program testit. This injection, dynamic library and shell code, has worked on C/C++, perl, python, AWK/GAWK, bash script, C#, and Java(this is what I've tested it on). * - Nerv - Feb 22, 2012 Hmm I'll read through the code a bit later (tired). Looks interesting though, +rep. RE: Linux C++/C Dll injection + Code Injection Tutorial - Part Four(final) - Chengjun LI - Jul 22, 2019 This is an interesting turorial RE: Linux C++/C Dll injection + Code Injection Tutorial - Part Four(final) - Araz Ibrahim - Aug 14, 2019 This is an interesting ❤️❤️❤️ RE: Linux C++/C Dll injection + Code Injection Tutorial - Part Four(final) - YouthInAsia - Aug 14, 2019 (Jul 22, 2019 10:55 AM)Chengjun LI Wrote: This is an interesting turorial You know what's not interesting? A tutorial written 7 years ago. RE: Linux C++/C Dll injection + Code Injection Tutorial - Part Four(final) - joker69696 - Aug 21, 2019 This is completely useless in real world RE: Linux C++/C Dll injection + Code Injection Tutorial - Part Four(final) - YouthInAsia - Aug 21, 2019 (Aug 21, 2019 09:32 AM)joker69696 Wrote: This is completely useless in real world You know what else is useless in the real world? A tutorial written SEVEN years ago |