This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Anyone have codes/procs to see who was the last user?

Old posts that have not been replied to for several years.
Locked
C
CcL
Voice
Posts: 11
Joined: Fri Apr 04, 2003 11:45 am

Anyone have codes/procs to see who was the last user?

Post by CcL »

anyone out there have the codes to see who was the last user who logon the botnet? i would really appreciate help. thank you!
M
MC_8
Voice
Posts: 36
Joined: Sat Apr 26, 2003 5:04 pm
Location: Dallas, Texas
Contact:

Post by MC_8 »

Code: Select all

bind chjn - * proc_name
proc proc_name {botname handle channel flag idx uhost} {
  global array_name
  set handle [string tolower $handle]
  set botname [string tolower $botname]
  set array_name($handle@$botname) [list [clock seconds] $uhost] ;# Whatever else you want in the list.
}

proc get_handle_of_last_logged_in {} {
  global array_name
  set temp ""
  foreach {user value} [array get array_name] {
    lappend temp [list [lindex $value 0] [lindex [split $user @] 0]]
  }
  set temp [lsort -dictionary -index 0 $temp]
  return [lindex [lindex $temp end] 1]
}
Hope that helps.
Carl M. Gregory - MC_8
http://mc.purehype.net/whois/
Locked