Alias Buster checkuser

General Stuff about Armagetron, That doesn't belong anywhere else...
User avatar
dukevin
Round Winner
Posts: 219
Joined: Mon Aug 30, 2010 8:25 am
Location: Southern California
Contact:

Alias Buster checkuser

Post by dukevin » Sun May 08, 2011 11:55 pm

I made a small app that tells you the all aliases of a user and IP checks them.

In the search field, you can enter an alias, ip address, or login. For example user named "troll" is up to no good but you can't see his ip, type "troll". Or if you know his IP, type that for more accuracy.

Screen shots :)
Interface:
Image

Checking myself:
Image

Geolocating shows where they live, accurate to the city sometimes, creepy...

This is my attempt at putting an end to trolling, however impossible that is :)

DOWNLOAD
check.php
checkuser.html

HOW TO INSTALL
Instructions wrote:First:
create a new directory in /var/www/<new directory>
I'm going to call it /var/www/checkuser/

Second:
Copy both files from the download (you don't need to edit anything) and put them in the new directory (so files /var/www/checkuser/check.php and /var/www/checkuser/checkuser.html should now exist)

Third:
Open check.php with a text editer and edit this line:

Code: Select all

$f = fopen("ladderlog.txt", "r");
Instead of "ladderlog.txt" you need the full path, so in my case:

Code: Select all

$f = fopen("/home/duke/aa/servers/dogfight/var/ladderlog.txt", "r");
Fourth:
Point your webbrowser to:
http://yourwebsite/checkuser/checkuser.html
and check by IP to see all aliases and seach by alias to see all IP's, so you can do an IP check
DEMO
Here's the IP checker running on Rx.Loose (not very useful for all you sumo and fort nuts) but it is for us :P
http://206.217.223.136/test/checkuser.html
Last edited by dukevin on Tue May 10, 2011 12:56 am, edited 10 times in total.
Image

User avatar
INW
Reverse Outside Corner Grinder
Posts: 1949
Joined: Tue Jul 07, 2009 4:10 pm
Location: Charlotte, NC, USA

Re: Alias Buster checkuser

Post by INW » Sun May 08, 2011 11:58 pm

I bet my IP will show me from Raleigh, NC though I live in Clayton. hehe

syllabear
Shutout Match Winner
Posts: 984
Joined: Fri Oct 13, 2006 1:37 pm
Location: UK/HK

Re: Alias Buster checkuser

Post by syllabear » Mon May 09, 2011 2:08 am

ahahahaha word was immitating frozen, HA holer and ID killer? Or your system is borked
The Halley's comet of Armagetron.
ps I'm not tokoyami

User avatar
dukevin
Round Winner
Posts: 219
Joined: Mon Aug 30, 2010 8:25 am
Location: Southern California
Contact:

Re: Alias Buster checkuser

Post by dukevin » Mon May 09, 2011 2:44 am

not borked. All this does is take your input, read the text directly from ladderlog.txt, seach for "PLAYER_ENTERED" or "PLAYER_RENAMED", and match it with the input.
All this tells you is someone from that IP had all those names, may not have been him
Last edited by dukevin on Mon May 09, 2011 3:12 am, edited 2 times in total.
Image

User avatar
Mecca
Match Winner
Posts: 795
Joined: Sun May 02, 2004 7:38 pm
Location: I dont know...Im lost

Re: Alias Buster checkuser

Post by Mecca » Mon May 09, 2011 2:57 am

pru clan leader imitating FroZen? lol? Definitely saving this one.
Image

User avatar
dukevin
Round Winner
Posts: 219
Joined: Mon Aug 30, 2010 8:25 am
Location: Southern California
Contact:

Re: Alias Buster checkuser

Post by dukevin » Mon May 09, 2011 3:10 am

Doen't mean it was, all it means is someone with that IP used those names, could have been an imposter using everyone's names. Anyhow, my loose server doesn't have enough entries to be conclusive, this would best be run on a server where that IP visits more frequently.

EDIT: Geolocate said that IP came from the Philippines, from what I know, Word's from Germany, so definitely not him...
Image

User avatar
Mecca
Match Winner
Posts: 795
Joined: Sun May 02, 2004 7:38 pm
Location: I dont know...Im lost

Re: Alias Buster checkuser

Post by Mecca » Mon May 09, 2011 3:55 am

Word was on vacation!
Image

Word
Reverse Adjust Outside Corner Grinder
Posts: 4159
Joined: Wed Jan 07, 2009 6:13 pm

Re: Alias Buster checkuser

Post by Word » Mon May 09, 2011 9:01 am

huh? I didn't play yesterday...

I bet it's the same guy who said he was "tu eagles" (i posted it in funny tron moments but the topic got out of hand after that so Tank removed it i think) - there aren't a lot of Filipinos who have a crow to pluck with me...

Dukevin, maybe you should read this (the reactions, not the first post):
http://forums3.armagetronad.net/viewtop ... =2&t=20744

Also, my ladderlog.txt only shows my most recent aliases (Word, Vertigo), your html file gets an error message whenever i try to search my name...what did i do wrong? the error message says "firefox doesn't know how to open the file because the protocol isn't linked to another address"
Last edited by Word on Mon May 09, 2011 7:11 pm, edited 1 time in total.

User avatar
sinewav
Graphic Artist
Posts: 6198
Joined: Wed Jan 23, 2008 3:37 am
Contact:

Re: Alias Buster checkuser

Post by sinewav » Mon May 09, 2011 4:07 pm

Word, didn't you have some wiki page listing the 25+ other aliases you use? I seem to remember picking on you for it, haha.

Word
Reverse Adjust Outside Corner Grinder
Posts: 4159
Joined: Wed Jan 07, 2009 6:13 pm

Re: Alias Buster checkuser

Post by Word » Mon May 09, 2011 4:18 pm


User avatar
Titanoboa
Reverse Outside Corner Grinder
Posts: 1713
Joined: Sun Feb 22, 2009 8:07 pm

Re: Alias Buster checkuser

Post by Titanoboa » Mon May 09, 2011 4:20 pm

imposter! I'm the real MOJO JOJO
ImageImageImageImageImageImageImageImage

User avatar
dukevin
Round Winner
Posts: 219
Joined: Mon Aug 30, 2010 8:25 am
Location: Southern California
Contact:

Re: Alias Buster checkuser

Post by dukevin » Mon May 09, 2011 9:30 pm

Word wrote: Also, my ladderlog.txt only shows my most recent aliases (Word, Vertigo), your html file gets an error message whenever i try to search my name...what did i do wrong? the error message says "firefox doesn't know how to open the file because the protocol isn't linked to another address"
I did a horrible job at explaining how to install this, disregard the previous instructions

First:
create a new directory in /var/www/<new directory>
I'm going to call it /var/www/checkuser/

Second:
Copy both files from the download (you don't need to edit anything) and put them in the new directory (so files /var/www/checkuser/check.php and /var/www/checkuser/checkuser.html should now exist)

Third:
Open check.php with a text editer and edit this line:

Code: Select all

$f = fopen("ladderlog.txt", "r");
Instead of "ladderlog.txt" you need the full path, so in my case:

Code: Select all

$f = fopen("/home/duke/aa/servers/dogfight/var/ladderlog.txt", "r");
Fouth:
Point your webbrowser to:
http://yourwebsite/checkuser/checkuser.html

Should work now :)
Search by IP to see all aliases and seach by alias to see all IP's, so you can do an IP check
Image

Word
Reverse Adjust Outside Corner Grinder
Posts: 4159
Joined: Wed Jan 07, 2009 6:13 pm

Re: Alias Buster checkuser

Post by Word » Mon May 09, 2011 10:25 pm

nevermind, lol whenever i hit the button i get the last part of the text:

Code: Select all

"); while (($line = fgets($f)) !== FALSE) { if (strstr($line, $q)) { if(substr($line, 0, 14) == 'PLAYER_ENTERED') { $data = explode(" ", $line,4); // split using the space into an array // array index 0 = PLAYER_ENTERED print "" . $data[3] . " ("; // array index 2 = name print "" . $data[2] . ")  "; // array index 1 = IP print "
"; $i++; } if(substr($line, 0, 14) == 'PLAYER_RENAMED' ) { if(!strpbrk($line,"@")) { $data = explode(" ", $line); // split using the space into an array // array index 0 = PLAYER_ENTERED print "" . $data[1] . " renamed to "; // array index 2 = name print "" . $data[5] . " using "; // renamed to print "" . $data[3] . "  
"; //ip $i++; } else { $data = explode(" ", $line); // split using the space into an array // array index 0 = PLAYER_ENTERED print "" . $data[5] . "  ("; // array index 2 = name print "" . $data[2] . ") using "; // auth print "" . $data[3] . "
"; //ip $i++; } } } } print("Found " . $i . " matches.
"); if (!preg_match('#[0-9]#',$q) && $i!=0) { print("
IP checks are more accurate; write down the IP and now do an IP check."); } if($i==0) { print("No user with $q found on this server."); } ?>
this is "check.php":

Code: Select all

<?php
//Put this php file in the same location as ladderlog.txt
//Made by dukevin [email protected]
//Licenced to the Public Domain
$q = $_REQUEST["ipladder"];
$f = fopen("C:\Users\MyName\AppData\Roaming\Armagetron\var\ladderlog.txt", "r");
$i=0;
print("All matches using $q (newest on bottom):<br>");
while (($line = fgets($f)) !== FALSE)
{
    if (strstr($line, $q)) 
    {

		if(substr($line, 0, 14) == 'PLAYER_ENTERED')
		{
        $data = explode(" ", $line,4); // split using the space into an array
                                     // array index 0 = PLAYER_ENTERED
        print "" . $data[3] . "&nbsp;(";   // array index 2 = name
		print "" . $data[2] . ")&nbsp;&nbsp;";      // array index 1 = IP
		print "<br>";
		$i++;
		}
		if(substr($line, 0, 14) == 'PLAYER_RENAMED' )
		{
		if(!strpbrk($line,"@"))
		{
			$data = explode(" ", $line); // split using the space into an array
										 // array index 0 = PLAYER_ENTERED
			print "" . $data[1] . "&nbsp;<font color=gray>renamed to </font>";   // array index 2 = name
			print "" . $data[5] . "&nbsp;<font color=gray>using </font>";      // renamed to
			print "" . $data[3] . "&nbsp;&nbsp;<br>"; //ip
			$i++;
		}
		else
		{
			$data = explode(" ", $line); // split using the space into an array
										 // array index 0 = PLAYER_ENTERED
			print "" . $data[5] . "<font color=green>&nbsp;&nbsp;(";   // array index 2 = name
			print "" . $data[2] . ")&nbsp;</font><font color=gray>using </font>";      // auth
			print "" . $data[3] . "<br>"; //ip
			
			$i++;
		}
		}
		
    }
	
}
print("Found " . $i . " matches.<br>");
	if (!preg_match('#[0-9]#',$q) && $i!=0)
	{
	print("<br>IP checks are more accurate; write down the IP and now do an IP check.");
	}
	if($i==0)
	{
	print("<big>No user with $q found on this server.</big>");
	}

?>
Last edited by Word on Mon May 09, 2011 10:30 pm, edited 1 time in total.

syllabear
Shutout Match Winner
Posts: 984
Joined: Fri Oct 13, 2006 1:37 pm
Location: UK/HK

Re: Alias Buster checkuser

Post by syllabear » Mon May 09, 2011 10:29 pm


Yesss I'm number 1!!!
The Halley's comet of Armagetron.
ps I'm not tokoyami

User avatar
dukevin
Round Winner
Posts: 219
Joined: Mon Aug 30, 2010 8:25 am
Location: Southern California
Contact:

Re: Alias Buster checkuser

Post by dukevin » Mon May 09, 2011 10:36 pm

Word wrote:nevermind, lol whenever i hit the button i get the last part of the text:

You shouldn't ever get php code as output, but I really don't know how this works on Armagetron for Windows, I've only tested on Linux. Does your windows machine have a php parser?

Anyhow, you can try it out on Rx.Loose (not very useful for all you fort and sumo players)
http://206.217.223.136/test/checkuser.html
Image

Post Reply