vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Silly Gag Hack - IP Spoofing (https://vborg.vbsupport.ru/showthread.php?t=50752)

amykhar 03-23-2003 10:00 PM

Silly Gag Hack - IP Spoofing
 
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

Quote:

Today at 12:02 PM Oricon said this in Post #2
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);

PHP Code:

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.


All times are GMT. The time now is 08:39 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01032 seconds
  • Memory Usage 1,732KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete