Skip to content

Instantly share code, notes, and snippets.

@Ainevsia
Created September 4, 2019 23:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ainevsia/1e03415ecf76df7459d72a1ad9abf753 to your computer and use it in GitHub Desktop.
Save Ainevsia/1e03415ecf76df7459d72a1ad9abf753 to your computer and use it in GitHub Desktop.
privilege example
ainevsia@ubuntu:~/cc$ whoami
ainevsia
ainevsia@ubuntu:~/cc$ ls -la | grep flag
---s--x---  1 admin    ainevsia 8768 Sep  5 06:49 catflag
-r--------  1 admin    root       16 Sep  5 06:47 flag
ainevsia@ubuntu:~/cc$ ./catflag
this{is}a{flag}

As a user with the gid, once i run catflag, i will get the user's privilege.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment