Playing with VLC Binary (just for fun / learning)
- Open vlc binary in a hex editor
# yum / dnf / apt-get / pacman install ghex - if ghex is not installed
ghex /usr/bin/vlc- Now search for the string
geteuid(use find, type it on the right side)
you’ll see something like:
geteuid._libc_start_main- Replace
geteuidwithgetppidso it becomes:
getppid._libc_start_main- Save, close and run:
vlcNote
This is just messing around to understand how binaries work under the hood.
Don’t do this on a system you actually care about, things can break real quick 😄
If your terminal looks weird (If you see -bash-xxx instead of root@smjrifle)
- Open:
vim ~/.bashrc- Add:
export PS1='[\u@\h \W]\$ '- Restart terminal
