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 17, 2024
1 parent 51662fd commit 0c01c90
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions README.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,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 @@ -144,7 +144,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 @@ -154,9 +154,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 @@ -186,6 +186,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 0c01c90

Please sign in to comment.