I DID IT GUYS!! I successfully wrapped execve!!!!
Type: Posts; User: thecowmilk
I DID IT GUYS!! I successfully wrapped execve!!!!
Well that's interesting...
nm test | grep 'U'
U execl@GLIBC_2.2.5
U fork@GLIBC_2.2.5
0000000000002018 r __GNU_EH_FRAME_HDR
U...
Yess!! But "in wrapped execve" doesn't get executed when the other bin runs
Okay, I actually have made more progress, I have successfully linked both binaries but there's smth else...
#define _GNU_SOURCE
#include <dlfcn.h>
#include <stdio.h>
#include <unistd.h>...
No not really, I don't have any personal gains from this except expanding my learning horizont.
Yeah I get it, if a user deletes a file using GUI then it's fine, I'm more in the command line stuff. If a user executes a command with args, the logger would just get it and log it somewhere safe.
> Are you trying to do anything that say strace can't?
Yes, I'm trying to learn here not to invent the wheel.
> Pointing at someone else's broken code with the sub-text "I found this, please...
Hello guys, I'm developing a tool for educational purposes that one of the features is intercepting every command a user is executing in Linux and then log it somewhere. The problem is that I have...
Hi guys, I have this winsock C code which is a tcp client
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <winsock2.h>
#include <ws2tcpip.h>