metasploit-framework/external/source/exploits/CVE-2014-0515/Logger.as

33 lines
721 B
ActionScript
Raw Normal View History

2015-06-11 21:18:50 +00:00
package
{
import flash.external.ExternalInterface
public class Logger {
2015-06-11 22:39:36 +00:00
private static const DEBUG:uint = 0
2015-06-11 21:18:50 +00:00
public static function alert(msg:String):void
{
var str:String = "";
if (DEBUG == 1)
str += msg;
if(ExternalInterface.available){
ExternalInterface.call("alert", str);
}
}
public static function log(msg:String):void
{
var str:String = "";
if (DEBUG == 1)
str += msg;
if(ExternalInterface.available){
ExternalInterface.call("console.log", str);
}
}
}
}