added official hacktheboo2024 writeups
This commit is contained in:
parent
1f7a9b0566
commit
e3c46450f7
327 changed files with 14303 additions and 0 deletions
|
@ -0,0 +1,31 @@
|
|||
default:
|
||||
ifdef name
|
||||
@cd challenge; \
|
||||
python3 source.py; \
|
||||
mkdir crypto_$(name); \
|
||||
cp source.py output.txt ./crypto_$(name); \
|
||||
cp output.txt ../htb/; \
|
||||
mv ./crypto_$(name) ../release/;
|
||||
|
||||
@cd release; \
|
||||
zip -9 -r ./crypto_$(name).zip ./crypto_$(name); \
|
||||
unzip -l ./crypto_$(name).zip;
|
||||
|
||||
@echo [+] Challenge was built successfully.
|
||||
else
|
||||
@echo [-] Please define the challenge name. For example, \"make name=cool_chall_name\"
|
||||
endif
|
||||
|
||||
flag:
|
||||
@echo [+] Flag : $$(cd challenge; python3 -c 'print(open("flag.txt").read())')
|
||||
solver:
|
||||
@echo [+] PoC : $$(cd htb ; sage -python3 solver.py)
|
||||
@find . -name "*.sage.py" -type f -delete
|
||||
|
||||
test: clean default flag solver
|
||||
|
||||
clean:
|
||||
@rm -rf release/*
|
||||
@rm -rf htb/output.txt
|
||||
@find . -name "*.sage.py" -type f -delete
|
||||
@echo [+] Challenge release deleted successfully.
|
Loading…
Add table
Add a link
Reference in a new issue