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.

autoupdate botnet (all files)

Old posts that have not been replied to for several years.
User avatar
esix
Voice
Posts: 39
Joined: Thu Aug 12, 2004 11:16 am
Location: [esix@localhost]
Contact:

autoupdate botnet (all files)

Post by esix »

Hi, i wonder where could i get an example of a script that auto checks for updates on a specific server and downloads them, i would like to have this for my botnet (24 bots), so that they would be up2date all the time.

Thanks :wink:
The End
g
greenbear
Owner
Posts: 733
Joined: Mon Sep 24, 2001 8:00 pm
Location: Norway

Post by greenbear »

Update what? Your eggdrop, a tcl script, a random file ..?
User avatar
esix
Voice
Posts: 39
Joined: Thu Aug 12, 2004 11:16 am
Location: [esix@localhost]
Contact:

Post by esix »

tcl scripts, randroom files (like motd, banner .. version.txt ..).
The End
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

MC_8 has an updater type of thing in all his scripts which checks his websites for script updates and stuffs.

Code: Select all

## SVS Client (Script Version Service) v4.1.2 ##
# Once a day, the SVS Client will connect to MC_8's SVS Server to determine if
# there is a newer version of this script available.  If a newer version is
# found, the script will be auto updated.

# [0=no/1=yes] Do you want to enable auto updating?  If you chose to disable
# auto updating, it will not automatically update the script upon finding a
# newer version.
set mc_banm(:config:svs:enable) 1
This is in all of his scripts. Goto http://mc.purehype.net/ download a random script and check if the code responsible for it. Oops, and one more thing his scripts and codes are very complex so understanding them is also a bit difficult than normal scripplets out there.
Last edited by awyeah on Thu Sep 09, 2004 8:38 pm, edited 1 time in total.
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
User avatar
Kurupt
Voice
Posts: 26
Joined: Sun Aug 22, 2004 7:57 pm
Location: Hermanstat

huh

Post by Kurupt »

smart awyeah! :)
User avatar
esix
Voice
Posts: 39
Joined: Thu Aug 12, 2004 11:16 am
Location: [esix@localhost]
Contact:

Post by esix »

ok, i'll give it a try :)
The End
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

check out my scripts spambuster.tcl and ircd.tcl, both have autoupdate, making use of a proc like this:

Code: Select all

proc update {} {
	variable version
	set url "http://demond.net/[lindex [split $version -] 0].tcl"
	catch {set token [::http::geturl $url]}
	if [info exists token] {
		if {[::http::ncode $token] == 200} {
			foreach line [split [::http::data $token] \n] {
				if [string match "variable version *" $line] break
			}
			if {[strcmp [lindex $line 2] $version] > 0} {
				set file [open $::ircd::source w]
				set data [split [::http::data $token] \n]
				foreach line [lrange $data 0 end-1] {puts $file $line}
				close $file
				log "updated with NEW version, reloading..."
				uplevel #0 {source $::ircd::source}
			}
		} else {
			log "update error: [::http::code $token]"
		}
		::http::cleanup $token
	}
}
m
mm
Halfop
Posts: 78
Joined: Thu Jul 01, 2004 10:24 pm

Post by mm »

Hi demond,
i was wondering hows spambuster.tcl is working?, does this need special setting?


thanks
MM
User avatar
esix
Voice
Posts: 39
Joined: Thu Aug 12, 2004 11:16 am
Location: [esix@localhost]
Contact:

Post by esix »

ok, thanks demond i'll give it a try as soon as i'll have time :wink:
The End
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

mm wrote:Hi demond,
i was wondering hows spambuster.tcl is working?, does this need special setting?


thanks
everything is configurable and well documented, just read script's header
m
mm
Halfop
Posts: 78
Joined: Thu Jul 01, 2004 10:24 pm

Post by mm »

Hi demond, yes but more than 50% document is not in english, that's why i had asked.


thanks
MM
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

mm yes, but there's also description in english for each and every single option; anyway, contact me online if you need more information
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

*demond* I was trying to make a similar yet simpler script like spambuster for IRCOps to catch and kill spammers throughout the network

I only want to ask, how do you make the bot join and part random channels? on the network, Do you generate a /list of channels on the network, save it to an array or list? And then make the bot pick a random one and join. Or by whois'ing each user on a channel then joining each channel every user is on, something like that? :mrgreen:
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

awyeah, both

actually, the channel roaming is implemented by picking random channels with a configurable minimum number of users from a list which is populated by doing /list on connect; whois'ing on join has another, statistical purpose - as you might have seen already, spambuster generates (on-the-fly) spam stats webpage by channel, server and host/domain
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

...and that channel list gets updated every hour
Locked