Marook-Online
* 06.Feb.2012, 15:43 UTC+1
Welcome, Guest. Please login or register.
Username:
Password:

News: Back again Wink
Main Menu
  Navigation
   Downloads
     Tools
     Music Discs
     SMF Mods
     Trainer & Patches
     EgoShare Uploader
   Guestbook
   NoPaste
   User Map
   Gallery
  
   Malware Scan
   Hacker Blacklist
   Find Abusemail
Top Downloads
Support Me !
Help me by donating a small amount!



Advanced search

Google


Pages: [1]   Go Down
0 Members and 1 Guest are viewing this topic. Topic Tools  
Read
19-Nov-2007 21:15
Marook
Administrator
*****
Offline Offline

Joined: 01-Jan-2005
Posts: 224


Just a simple script, which tries to find the real ip even when a proxy is used...

Code
GeSHi (php):
  1. <?php
  2. // Simple script to retrieve the ip even when a proxy is used
  3. echo getip() . "<br />";
  4.  
  5. function GetIP(){
  6. if (getenv('HTTP_CLIENT_IP')) {
  7. $IP = getenv('HTTP_CLIENT_IP');
  8. } elseif (getenv('HTTP_X_FORWARDED_FOR')) {
  9. $IP = getenv('HTTP_X_FORWARDED_FOR');
  10. } elseif (getenv('HTTP_X_FORWARDED')) {
  11. $IP = getenv('HTTP_X_FORWARDED');
  12. } elseif (getenv('HTTP_FORWARDED_FOR')) {
  13. $IP = getenv('HTTP_FORWARDED_FOR');
  14. } elseif (getenv('HTTP_FORWARDED')) {
  15. $IP = getenv('HTTP_FORWARDED');
  16. } else {
  17. $IP = $_SERVER['REMOTE_ADDR'];
  18. }
  19. return $IP;
  20. }
  21. ?>
Created by GeSHI 1.0.7.20

I also wrote a script to get the proxy-ip and the user-ip...

Code
GeSHi (php):
  1. <?php
  2.  
  3. $proxy = "No Proxy-Server used or found!";
  4. if (isset($_SERVER['REMOTE_ADDR'])) $ip = $_SERVER['REMOTE_ADDR']; else $ip = 'Unknown';
  5.  
  6. //Proxy detection
  7.  foreach (array('HTTP_X_FORWARDED_FOR',
  8.   'HTTP_X_FORWARDED',
  9.   'HTTP_FORWARDED_FOR',
  10.   'HTTP_FORWARDED',
  11.   'HTTP_CLIENT_IP') as $x) {
  12.    if (!isset($_SERVER[$x])) continue;
  13.     $proxy = $ip;
  14.     $ip = $_SERVER[$x];
  15.  }
  16.  
  17.  
  18. echo 'IP-Adress : ' . $ip . "<br />";
  19. echo 'Hostname  : ' . @gethostbyaddr($ip) ."<br />";
  20. echo 'Proxy     : ' . $proxy . "<br />";
  21. echo 'Hostname  : ' . @gethostbyaddr($proxy);
  22. ?>
  23.  
Created by GeSHI 1.0.7.20
« Last Edit: 21-Nov-2007 05:20 by Marook » Logged
 

Read
29-Nov-2007 20:13
th3B0d
Special VIP
******
Offline Offline

Joined: 01-May-2007
Coding in: PHP
Posts: 7


Diese möglichkeit funktioniert jedoch nicht immer, da einige Proxys die Realip nicht immer mitschicken

mfg
Logged
 

Read
29-Nov-2007 20:17
Marook
Administrator
*****
Offline Offline

Joined: 01-Jan-2005
Posts: 224


english pls Wink I know, that script is for use only with non elite-proxy server.
Logged
 

Pages: [1]   Go Up
Jump to:  

Theme by webtechnica.net

MHD v2.1 © 2oo8 by Marook
32116 hacking attempts defended!