Skip to content

Commit

Permalink
Update README.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
nuoxoxo authored Nov 17, 2024
1 parent 7468e9b commit b426635
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions level01/README.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,19 @@ Login
```

Look at `/etc/passwd`

```b
> grep -i flag01 /etc/passwd
flag01:42hDRfypTqqnw:3001:3001::/home/flag/flag01:/bin/bash
> grep flag01 /etc/passwd | awk -F: '{print $2}'
42hDRfypTqqnw
```

### observation
if we have john as a cli tool we'll able to one of these:
> john --show <(grep flag01 /etc/passwd | awk -F: '{print $2}')
> john --show <(cat /etc/passwd | grep -i flag01 | awk -F: '{print $2}')
What is `/etc/passwd`
- it is a list of user accounts and their info
```b
username:PWD:UID:GID:comment:home_dir:shell
^^^ ancient storage for encrypted passwd
now passwd hashes are stored in /etc/shadow
```

Download and use `john`
Expand Down

0 comments on commit b426635

Please sign in to comment.