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 5f751d9 commit 07180fa
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions README.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,43 @@ Password: abcdefg
- `realpath` - get the full absolute filepath
- `scp` - secure copy - `scp username@ip:path _local_`
- `~.pcap` - a Packet Capture to store network packet data captured during network traffic monitoring

```b
### VM
> ls -l
----r--r-- 1 flag02 level02 level02.pcap
^ which means a regular file
> scp -P 4242 [email protected]:/home/user/level02/level02.pcap $(pwd)
### Host
> hexdump -C level02.pcap
> xxd level02.pcap
> xxd level02.pcap | grep -i pass -A10 -B10
> xxd level02.pcap | cut -d ' ' -f2-9 | tr -d ' ' 👈 get midfields
```

- use Wireshark
- _Analyze - Follow - TCP Stream_ - copy _TCP Stream_ to text

```py
infile = [[n[-2], n[-1]] for n in [_.split() for _ in open(0).read().split('\n') if len(_.split()) == 3]]
res = ''
for i, line in enumerate(infile):
print('line/', line, 'i/', i)
l, r = line
if l == '7f': res = res[:-1]
elif r != '.': res += r
else: assert(l == '0d')
print('res/', res)

# ft_waNDReL0L
```

# 02 - token

> su flag02
Password: ft_waNDReL0L
> su level03
> Password: kooda2puivaav1idi4f57q8iq

0 comments on commit 07180fa

Please sign in to comment.