egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

botnet asciimap problem..

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive
View previous topic :: View next topic  
Author Message
Ofloo
Owner


Joined: 13 May 2003
Posts: 953
Location: Belguim

PostPosted: Wed Jul 21, 2004 6:21 pm    Post subject: botnet asciimap problem.. Reply with quote

Code:
##############################
# Create a Ascii map of your
# current botnet
##############################

proc asciimap {space bot} {
  global version
  botnet_uplinks
  return "$bot \(<b>$version</b>\)<br>%n[mapgen $space $bot]"
}

##############################
# Show current uplinks
##############################

proc botnet_uplinks {} {
  global botnet http botnet-nick botnetshare botnetvers
  if {[array exists botnet]} {
    array unset botnet
  }
  set botnet(${botnet-nick}) ${botnet-nick}
  foreach x [botlist] {
    set botnet([lindex $x 0]) [lindex $x 1]
    set botnetshare([lindex $x 0]) [lindex $x 3]
    set botnetvers([lindex $x 0]) [vrsres [lindex $x 2]]
  }
}

##############################
# Create a Ascii map of your
# current botnet
##############################

proc mapgen {space bot} {
  global botnet botnetshare botnetvers
  foreach botlink [array names botnet] {
    if {![string match $bot $botlink] && [string match $botnet($botlink) $bot]} {
      if {[info exists downlinks]} {
        lappend downlinks $botlink
      } else {
         set downlinks $botlink
      }
    }
  }
  if {![info exists downlinks]} {
    return
  }
  foreach botlink $downlinks {
    if {[string match $botlink [lindex $downlinks end]]} {
      if {[info exist return]} {
        append return "$space &nbsp;`-$botnetshare($botlink)$botlink \(<b>$botnetvers($botlink)</b>\)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>%n"
      } else {
         set return "$space &nbsp;`-$botnetshare($botlink)$botlink \(<b>$botnetvers($botlink)</b>\)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>%n"
      }
      mapgen "$space &nbsp;&nbsp;" $botlink
    } else {
      if {[info exists return]} {
        append return "$space &nbsp;|-$botnetshare($botlink)$botlink \(<b>$botnetvers($botlink)</b>\)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>%n"
      } else {
         set return "$space &nbsp;|-$botnetshare($botlink)$botlink \(<b>$botnetvers($botlink)</b>\)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>%n"
      }
      mapgen "$space &nbsp;&nbsp;|-&nbsp;&nbsp;&nbsp;" $botlink
    }
  }
  return ${return}
}


can't put my finger on it but its only listing the direct linked bots any one any suggestions?
_________________
XplaiN but think of me as stupid
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber