Hello There,
I am using phpbb 3 and just downloaded a MOD called Proxy Revealer which primarly used to detect and ban spammers and the following attached code is a part of the MOD, as you can see the AS uses sendToURL method to pass flash variables to PHP side which uses the _GET method to obatin values but the problem is that the values always come as NULL, I did some research using burpsuite and seen the values in the client’s header request but was never executed in the URL bar or even disclosed “Modified”
URL = example(dot)com/index.php
Request Header = index(dot)php?value=3424124&another=32412342
How can I get those variables in PHP variables, thanks for taking the time to read my message and have a nice day
import flash.display.LoaderInfo;
import flash.errors.*;
import flash.events.*;
import flash.net.sendToURL;
import flash.net.URLRequest;
import flash.net.XMLSocket;
import flash.system.Capabilities;
import flash.system.Security;
import flash.xml.*;
// Retrieve passed FlashVars
var dhost:String = root.loaderInfo.parameters.dhost;
var dport:Number = root.loaderInfo.parameters.dport;
var flash_url:String = root.loaderInfo.parameters.flash_url;
var ip:String = root.loaderInfo.parameters.ip;
var extra:String = root.loaderInfo.parameters.extra;
var user_agent:String = root.loaderInfo.parameters.user_agent;
// Retrieve policy file from our XMLSocket server to allow socket connections
Security.loadPolicyFile("xmlsocket://" + dhost + ":" + dport);
// Get Flash Player version
var version:String = Capabilities.version;
// Our probe.php URL and the query string concatenated
var myURL:String = flash_url + "?mode=flash&ip=" + ip + "&extra=" + extra;
myURL += "&version=" + escape(version) + "&user_agent=" + escape(user_agent);
// Socket connection code
var sock:XMLSocket = new XMLSocket();
sock.addEventListener(Event.CONNECT, connectHandler);
sock.addEventListener(DataEvent.DATA, dataHandler);
sock.connect(dhost,dport);
function connectHandler(event:Event):void {
var xmlRequest:String = "<data><request>getmyip</request></data>";
sock.send(new XML(xmlRequest));
}
function dataHandler(event:DataEvent):void {
var myXML:XML = new XML(event.data);
var myIP:String = myXML.ip[0];
myURL += "&xml_ip=" + myIP;
var request:URLRequest = new URLRequest(myURL);
sendToURL(request);
sock.close();
}