Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.git
.gitignore
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM python

WORKDIR /pcap2curl

COPY . .

RUN pip install .
RUN chmod +x pcap2curl.py
RUN echo "export PATH=/pcap2curl:\"$PATH\"" >> ~/.bashrc
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,11 @@ Little effort is made to verify that the requests are valid. This is intended to

DISCLAIMER: I am not a Python coder. I do not like Python. I have to use it once in a while because I love [Scapy](http://www.secdev.org/projects/scapy/).

## Usage with docker
```sh
docker build . -t pcap2curl
docker run -v /host/path/to/capture.pcap:/capture.pcap pcap2curl bash
pcap2curl.py /capture.pcap
```

CREDIT: Stackoverflow