vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Need help ASAP for Police Help!!!!! Are a User IP Addresses Listed Chronologically? (https://vborg.vbsupport.ru/showthread.php?t=48722)

maoz440 02-09-2003 01:28 PM

Need help ASAP for Police Help!!!!! Are a User IP Addresses Listed Chronologically?
 
A user on my forum has made a very serious threat to shoot another kid at school on Monday. I am helping his local police investigate his identity. Among other things I sent the investigator a list of all IP addys the kid has used to log on. Is there a little hack or piece of code I can run to correllate a list of IP address (from a user's admin panel profile) to a list of dates? Any timely help is greatly appreciated as time is of the essence.

Thanks.

Dean C 02-09-2003 02:33 PM

Wow it sounds very serious. Someone will help you very shortly i hope :)

- miSt

Xenon 02-09-2003 03:04 PM

open admin/user.php find this block:
PHP Code:

// ############################# douserid() #########################
function douserid($userid,$previpaddress,$depth=2) {
  global 
$DB_site,$session;

  
$depth--;

  
$getusername=$DB_site->query_first("SELECT username FROM user WHERE userid=$userid");
  echo 
"<ul>";

  
$ips=$DB_site->query("SELECT DISTINCT ipaddress FROM post WHERE userid=$userid AND ipaddress<>'' AND ipaddress<>'$previpaddress' ORDER BY ipaddress");
  while (
$ip=$DB_site->fetch_array($ips)) {

    echo 
"<li>$ip[ipaddress] (".gethostbyaddr($ip[ipaddress]).") ".makelinkcode("find more users for this ip","user.php?s=$session[sessionhash]&action=doips&ipaddress=$ip[ipaddress]")."</li>\n";

    if (
$depth>and $ip[ipaddress]!=$previpaddress) {
      
doipaddress($ip[ipaddress],$userid,$depth);
    }

  }

  echo 
"</ul>";



and change it into:
PHP Code:

// ############################# douserid() #########################
function douserid($userid,$previpaddress,$depth=2) {
  global 
$DB_site,$session;

  
$depth--;

  
$getusername=$DB_site->query_first("SELECT username FROM user WHERE userid=$userid");
  echo 
"<ul>";

  
$ips=$DB_site->query("SELECT DISTINCT ipaddress, dateline FROM post WHERE userid=$userid AND ipaddress<>'' AND ipaddress<>'$previpaddress' ORDER BY ipaddress");
  while (
$ip=$DB_site->fetch_array($ips)) {

    echo 
"<li>".date("H:i m-d-Y"$ip[dateline]). ": $ip[ipaddress] (".gethostbyaddr($ip[ipaddress]).") ".makelinkcode("find more users for this ip","user.php?s=$session[sessionhash]&action=doips&ipaddress=$ip[ipaddress]")."</li>\n";

    if (
$depth>and $ip[ipaddress]!=$previpaddress) {
      
doipaddress($ip[ipaddress],$userid,$depth);
    }

  }

  echo 
"</ul>";



think this should do what ya wanted

maoz440 02-09-2003 03:21 PM

Worked Perfectly Xenon - exactly what the inspector needed! :D Thanks so much! I'll keep you posted on what develops with this sad situation.

maoz

Dean C 02-09-2003 03:41 PM

Xenon what does that code do btw :)?

- miSt

Xenon 02-09-2003 03:52 PM

@maoz: glad i could help :)

@Mist: it shows the dateline near the ip when it was used..

Dean C 02-09-2003 04:32 PM

Ahhh cool :) Thanks bud!

- miSt

Erwin 02-09-2003 07:50 PM

That serious stuff. Hope they catch the guy.

Logik 02-10-2003 03:51 AM

/me watches the TV show "Cops".
"A vBulletin killer on the loose!"

Xenon 02-10-2003 12:49 PM

@Logik: i think this is a theme where you shouldn't make any fun of it...

just calm down a bit, not every thread needs your comments!


All times are GMT. The time now is 02:36 PM.

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.01174 seconds
  • Memory Usage 1,752KB
  • 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
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete