https://github.com/simmsb/luhack-inf-lab
My lab for practicing pwning infra
https://github.com/simmsb/luhack-inf-lab
Last synced: 28 days ago
JSON representation
My lab for practicing pwning infra
- Host: GitHub
- URL: https://github.com/simmsb/luhack-inf-lab
- Owner: simmsb
- Created: 2019-11-11T14:29:24.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-06T09:59:54.000Z (over 3 years ago)
- Last Synced: 2025-01-07T08:19:29.836Z (over 1 year ago)
- Language: Rust
- Size: 59.6 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# luhack-inf-lab
My lab for practicing pwning infra
## Running
```sh
docker build -t luhack-inf-lab-bof --build-arg FLAG="not_a_flag{nope}" bof/.
docker build -t luhack-inf-lab-vuln-py \
--build-arg FLAG_0="not_a_flag{nope}" \
--build-arg FLAG_1="not_a_flag{nope}" \
--build-arg ROOT_PW="root" \
vuln-py/.
docker run --rm \
-v /var/run/docker.sock:/var/run/docker.sock \
--net=host \
-d \
-it nitros12/container-per-ip \
luhack-inf-lab-bof -p 5000 -p 1234
docker run --rm \
-v /var/run/docker.sock:/var/run/docker.sock \
--net=host \
-d \
-it nitros12/container-per-ip \
luhack-inf-lab-vuln-py -p 4321
```
## Attempting it yourself
### Bof
1. Start it up:
```
docker run --rm -it -p 5000:5000 -p 1234:1234 nitros12/luhack-inf-lab-bof
```
2. Poke `localhost:1234`
### Vuln-py
1. Start it up:
```
docker run --rm -it -p 4321:4321 nitros12/luhack-inf-lab-vuln-py
```
2. Poke `localhost:4321`