So recently I've been working on automating my code for bug bountys but i want to have a overall out put so it shows what it got neatly
(xssstrike is for example here)
website = (input(Fore.GREEN + "enter url/website for this scan: "))
ops = (input(Fore.GREEN + "enter other operators for xxstrike here (with spaces): "))
def xssstrike():
try:
os.chdir("/mnt/usb/xss-strike")
os.system(f"python3 xsstrike.py {ops} -u {website}")
except ValueError:
raise print("oops! there was an error with xss strike!")
i want to put the output from os.system(f"python3 xsstrike.py {ops} -u {website}")
into a variable so i can print it later at the end of the code such as
print("<><><> xss strike output results <><><>")
print(xssstrikeoutput)
forgive me if this is simple im fairly new to coding but overall but ive checked everywhere and cant seem to find a answer