Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

/prog/ Challenge #1872 - Exploit slock

Name: Anonymous 2016-01-28 14:57

slock is a simple X display locker utility.

After invoking slock, the only way to get out of it is to enter your password.

The challenge: find a way to exploit it, so that the you get out of slock without knowing the victim's password.

The source code is less than 400 LOCs.
http://git.suckless.org/slock/tree/slock.c

Good luck.

Name: Anonymous 2016-01-31 15:25

>>27
``Never use conditional compilation ever'' is cargo cult nonsense.
They only needed to support two different optional features in this case, so using a couple #ifdefs is the correct choice.
If they add more in the future it might be time to break it out into separate files with a common interface, but there's no point doing that from the beginning because *that* brings about bloat and bugs in the form of over engineering.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List