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 9557c1b commit 51662fd
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions level02/README.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ Login
> Password: f2av5il02puano7naaf6adaaf
```

- New stuff
- `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
New stuff
- `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

- Save the `.pcap` to Host
Save the `.pcap` to Host
```b
### VM
> ls -l
Expand All @@ -22,7 +22,7 @@ Login
> scp -P 4242 level02@$(ifconfig|grep 'inet '|awk 'NR==2 {print $2}'):/home/user/level02/level02.pcap $(pwd)
```

- ❌ Inspect `.pcap`
❌ Inspect `.pcap`

```b
### Host
Expand All @@ -32,9 +32,9 @@ Login
> xxd level02.pcap | cut -d ' ' -f2-9 | tr -d ' '
```

- ✅ Use _Wireshark_
- _Analyze - Follow - TCP Stream_
- copy _`TCP Stream`_ to text
✅ Use _Wireshark_
- _Analyze - Follow - TCP Stream_
- copy _`TCP Stream`_ to text

```b
000000D6 00 0d 0a 50 61 73 73 77 6f 72 64 3a 20 ...Passw ord:
Expand Down Expand Up @@ -64,6 +64,8 @@ Login
- `7f` - DE
- `0d` - CR

Parse the above block

```py
infile = [[n[-2], n[-1]] for n in [_.split() for _ in open(0).read().split('\n') if len(_.split()) == 3]]
res = ''
Expand Down

0 comments on commit 51662fd

Please sign in to comment.