DreamHack Web Beginner_Command_Injection1
1️⃣ DreamHack Web Beginner_Command Injection1 문제확인 (https://dreamhack.io/wargame/challenges/44) 풀이 📜문제확인 드림핵 사이트에서 문제 확인 서버 오픈 후 접속하면 아래와 같이 Ping을 할 수 있는 사이트 확인 문제파일 다운후 코드 확인 가능 #!/usr/bin/env python3 import subprocess from flask import Flask, request, render_template, redirect from flag import FLAG APP = Flask(__name__) @APP.route('/') def index(): return render_template('index.html') @APP.route('/ping', methods=['GET', 'POST']) def ping(): if request.method == 'POST': host = request.form.get('host') cmd = f'ping -c 3 "{host}"' try: output = subprocess....