____  _ ____ ____ ______ ____  
|___ \| |___ \___ \____  |___ \ 
  __) | | __) |__) |  / /  __) |
 |__ <| ||__ <|__ <  / /  |__ < 
 ___) | |___) |__) |/ /   ___) |
|____/|_|____/____//_/   |____/ 
      

i pwn all thats all u need to know.

Thursday, August 2, 2007

//ipX

This tutorial shows you how to build a flash file which will show the user their IP address which they are connecting on.

//Preview






//ActionScript Code

///////////////////// Start ////////////////////////////

//crossdomain
Security.loadPolicyFile("http://localhost/crossdomain.xml");
System.security.allowDomain("*");
System.security.allowInsecureDomain("*");

//feildVars
hdrTxt.text = '//ipX_';
resTxt.text = 'loading ...';

//dataLoad
var dataX = this
varReceiver = new LoadVars();
varReceiver.load("http://localhost/ip.php");
varReceiver.onLoad = function(){
dataX.resTxt.text = "ip address: " + this.ip + "\n";
trace("ip address: " + this.ip + "\n");
};

//
stop();

///////////////////// End ////////////////////////////


//PHP Code

///////////////////// Start ////////////////////////////

$ip = getenv('REMOTE_ADDR');
$ip = "&ip=".$ip."&amp;amp;";
echo $ip;

///////////////////// End ////////////////////////////

//Sample files
http://3l3373.com/dl/tutorials/ip/ipX_.rar

//Additional info
crossdomain guide (http://3l3373.com/blogz0r/2007/08/crossdomain-guide.html).

Labels: , , ,

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home