diff --git a/README.mdx b/README.mdx index f4e44a2..4d0ca73 100644 --- a/README.mdx +++ b/README.mdx @@ -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 @@ -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 @@ -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: @@ -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 = ''