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 16, 2024
1 parent 6dc5db4 commit 9a0b7a8
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions README.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# SSH

on host do

```
$ ifconfig
πŸ‘‰ find inet 192.168.X.X ...
Expand All @@ -11,29 +12,31 @@ $ ssh 192.168.X.X

# 00

- to begin with

```
$ ls -l
$ find / -user level00
$ find / -user level00 2>/dev/null
$ find / -user flag00 2>/dev/null
...output (only 2 files)
πŸ‘‰ and we want to cat them all out
$ find / -user flag00 -exec cat {} + 2>/dev/null
$ find / -user flag00 -exec cat {} + 2>/dev/null\
cdiiddwpgswtgt
cdiiddwpgswtgt
πŸ‘‰ looks like cipher to decode
```

- command explained
- `/` - from root directory
- `+` - forces `find` to run `cat` on many files at once and not one at a time
- `2>/dev/null` - redir stderr output to `/dev/null`
- decipher in python
- decipher ___`cdiiddwpgswtgt`___ in python

```py
a = ord('a')
for i in range(26):
print(i, ''.join(chr(a + (ord(c) - a + i) % 26) for c in 'cdiiddwpgswtgt'))
```

- swicth to user `flag00` w/ pw
- swicth to user `flag00`

```sh
$ su flag00
Expand Down

0 comments on commit 9a0b7a8

Please sign in to comment.