Skip to content

Commit

Permalink
show READMEs daily
Browse files Browse the repository at this point in the history
  • Loading branch information
nuoxoxo committed Nov 18, 2024
1 parent c68d1c5 commit b9b4f6e
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,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 @@ -795,4 +799,19 @@ 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 b9b4f6e

Please sign in to comment.