PDA

View Full Version : Silly Gag Hack - IP Spoofing


amykhar
03-23-2003, 10:00 PM
As many of you know, I have a little April Fool's joke in the works. I used this as part of that joke and am releasing it in case anybody else feels silly or in case somebody is really concerned about their own privacy.

Normally, when a user is online, his IP address shows up to admins. His IP is also logged when he posts. Well, if one admin is playing a joke on another admin, having that IP showing is suboptimal. Therefore, this hack hardcodes a value for IP and for the resolved hostname in the who's online page and posts for a specific member.

To install this code, you should be able to know how to find a members's userid and know how to read php enough to customize this hack with your own values for userid, ip address, and host.

If the user in question has already made posts that you would like to convert to the hard-coded IP, a simple query will handle that for you: (This step is OPTIONAL)

UPDATE post set ipaddress='X' where userid=Y;

(replace X and Y with the appropriate values)

The hack is included in the text file. It's working on my board as we speak :D

No screenshots necessary :D

Dan
03-24-2003, 03:02 PM
I just may install this after I get my own hack to work........

/me licks the install button just incase

Fi_InCogNiTo
03-24-2003, 03:07 PM
Today at 12:02 PM Oricon said this in Post #2 (https://vborg.vbsupport.ru/showthread.php?postid=372512#post372512)
Oricon licks the install button just incase

How does it taste? :laugh:

I may install this later. Thanks for the release.

Dan
03-24-2003, 03:27 PM
@Fi_InCogNiTo it kinda test like that stuff..... you know the stuff in some of those april fools joke candies....

This is going to be great joke I think If my plan works...

Zelda-King
03-24-2003, 10:48 PM
I'm interested but I don't have a static IP.

amykhar
03-25-2003, 01:04 AM
You don't need one for this hack. You just make one up.

Zelda-King
03-25-2003, 07:52 AM
I 'sort of' have it working. The host doesn't show (but that may be me). In the reply/thread the IP shows how I want it but I get the attached [edit: attachment deleted (was showing a session number)] error come up for a second before it shows. Perhaps I should try something other than 123.456.789? :D

The online.php thing just isn't working at all for me, mind. My original code has an extra line at the bottom (vB 2.2.9);

if ($WOLresolve && $usergroupdef['canwhosonlineip']) {
$userinfo[$key][ipaddress] = $user[host];
$userinfo[$key][hostaddress] = @gethostbyaddr($user[host]);
} else {
$userinfo[$key][ipaddress] = $user[host];
$userinfo[$key][hostaddress] = @gethostbyaddr($user[host]);
}

amykhar
03-25-2003, 01:12 PM
It looks like you have it hacked to resolve IP addresses whether it is turned on or not That second line in your else clause is resolving the IP even though WOLresolve is turned off.

Wipe that whole block out and replace it with the code in the text file.

Amy

maoz440
03-26-2003, 01:46 PM
Oooh - nice hack! I'm running 2.29 though, do you see any problems with installing?

amykhar
03-26-2003, 01:53 PM
No. I don't.