blob: f3690f4c7f5782c7430022d09239844916676c61 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
default: 1bitvm.tar.gz run
server.out: 1bitvm server.asm
1bitvm/asm.py -d server.asm 2>&1 > asm.log
server.asm: server.php index.html hi.html
./server.php > $@
run: server.out
socat TCP6-LISTEN:6844,fork,reuseaddr 'exec:1bitvm/main.py server.out'
1bitvm:
git clone https://ass.si/git/adrian/1bitvm
clean:
rm -fr `cat .gitignore`
1bitvm.tar.gz: server.out docker-compose.yml Dockerfile
f=`grep -o cnctf{.*} docker-compose.yml` && sed -i s/$$f/cnctf{placeholder}/ docker-compose.yml && cd .. && tar --exclude *README.md --exclude *challenge.yml --exclude *1bitvm.tar.gz -zc `rev <<<$$OLDPWD | cut -d/ -f1 | rev` | sponge $$OLDPWD/1bitvm.tar.gz; cd $$OLDPWD; sed -i s/cnctf{placeholder}/$$f/ docker-compose.yml
.PHONY: default clean run
|