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 18, 2024
1 parent b4dfd26 commit c68d1c5
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions level10/README.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ cat: token: Permission denied
> ./level10 token localhost
You don't have access to ./token
```

ltrace

```b
> ltrace ./level10 token localhost
__libc_start_main(0x80486d4, 3, 0xbffff7d4, 0x8048970, 0x80489e0 <unfinished ...>
access("token", 4) = -1
Expand All @@ -36,3 +40,18 @@ printf("You don't have access to %s\n", "token"You don't have access to token
```

`access` - check real user's permissions for a file
- touch a file of our own, try again

```b
> ./level10 /tmp/tmp localhost
Connecting to localhost:6969 .. Unable to connect to host localhost
> ltrace ./level10 /tmp/tmp localhost
__libc_start_main(0x80486d4, 3, 0xbffff7d4, 0x8048970, 0x80489e0 <unfinished ...>
access("/tmp/tmp", 4) = 0
printf("Connecting to %s:6969 .. ", "localhost") = 32
^^^^ 🟡
fflush(0xb7fd1a20Connecting to localhost:6969 .. ) = 0
^^^^ 🟡
```

0 comments on commit c68d1c5

Please sign in to comment.