import os
import sys

if __name__ == "__main__":
    os.system('echo "\nTARGET: {0}\n" | tee -a {1}'.format(sys.argv[1], sys.argv[2]))
    domain = sys.argv[1].split("://")[1].split(":")[0]
    port = sys.argv[1].split("://")[1].split(":")[1]
    os.system("python3 exploit.py CHECK -p {1} {0} '' '' | tee -a {2}".format(domain, port, sys.argv[2]))