#!/usr/bin/env python3
# Lab 3.4: driver chay ca ba challenge lien tiep (chall1 flag, chall2 shell,
# chall3 shell). Chi tiet tung bai xem exp_chall1.py / exp_chall2.py / exp_chall3.py.
import subprocess, sys, os
here = os.path.dirname(os.path.abspath(__file__))
for name in ('exp_chall1.py', 'exp_chall2.py', 'exp_chall3.py'):
    print('=' * 60)
    print('RUN', name)
    print('=' * 60)
    subprocess.run([sys.executable, os.path.join(here, name)], cwd=here)
