Skip to content

Commit

Permalink
solve packets primer
Browse files Browse the repository at this point in the history
  • Loading branch information
adarah committed Jul 12, 2023
1 parent 92cd598 commit 0a1f3cd
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ SHELL ["/bin/bash", "--login", "-c"]

# Install poetry
ENV PATH="$HOME/.local/bin:$PATH"
ENV DEBIAN_FRONTEND=non-interactive
RUN curl -sSL https://install.python-poetry.org | python3 -
# This command is using a separate RUN statemnet to start a new shell
# which will source ~/.profile and thus obtain access to poetry
Expand All @@ -16,4 +17,5 @@ RUN sudo apt-get update && sudo apt-get install -y \
netcat \
sleuthkit \
autopsy \
exiftool
exiftool \
tshark
2 changes: 2 additions & 0 deletions picoctf/packetsprimer/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Packets Primer
https://play.picoctf.org/practice/challenge/286
Binary file added picoctf/packetsprimer/network-dump.flag.pcap
Binary file not shown.
3 changes: 3 additions & 0 deletions picoctf/packetsprimer/packetsprimer.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

tshark -r network-dump.flag.pcap -x -Y frame.number==4 | xxd -r | grep 'p i c o.*' --text -o | tr -d ' '

0 comments on commit 0a1f3cd

Please sign in to comment.