This is the new home of the egghelp.org community forum. this announcement post . Click the X in the top right-corner of this box to dismiss this message. 
Old posts that have not been replied to for several years.
			
		
				
			
				
																s 														
								sipko  
									
						
		
						
						
		 
		
						
					
						 
													
							
						
									
						Post 
					 
								by sipko  Tue Nov 06, 2001 1:49 pm 
			
			
			
			
			
			Can some tell me where can I find (or hints to write) a tcl script wich disables bot users to add a new user. It is not important what their flags are. 
			
			
									
						
										
						 
		 
				
		
		 
	 
				
		
				
			
				
								greenbear 							 
						Owner 			
		Posts:  733 Joined:  Mon Sep 24, 2001 8:00 pmLocation:  Norway 
		
						
					
						 
													
							
						
									
						Post 
					 
								by greenbear  Tue Nov 06, 2001 2:38 pm 
			
			
			
			
			
			I guess you could use the filt command for this.
the code would be something like this:
Code: Select all 
# users that can use the +user command
set allowed "user1 user2"
bind filt - ".+user" +user:check
proc +user:check {idx args} {
global allowed
 set usernick [idx2hand $idx]
 if {[lindex $args 1] == ""} {
  set icmd [lindex $args 0]
  set args "$icmd "
 }
 if {[lsearch -exact [string tolower $allowed] [string tolower $usernick]] == -1} { 
  putdcc $idx "What? You need '.help'"
 } else {
  return $args
 }
}
this would only allow 'user1' and 'user2' to use the +user command
 
		 
				
		
		 
	 
				
		
				
			
				
								Wcc 							 
						Master 			
		Posts:  278 Joined:  Sun Oct 28, 2001 8:00 pmLocation:  USA
				Contact: 
				
			 
				
		 
		
						
					
						 
													
							
						
									
						Post 
					 
								by Wcc  Tue Nov 06, 2001 2:59 pm 
			
			
			
			
			
			
Should be
Code: Select all 
bind filt - ".+u* * *" +user:check , otherwise you could bypass it with .+u <blah>
 
		 
				
		
		 
	 
				
		
				
			
				
																s 														
								sipko  
									
						
		
						
						
		 
		
						
					
						 
													
							
						
									
						Post 
					 
								by sipko  Tue Nov 06, 2001 3:51 pm 
			
			
			
			
			
			Huh, guys tnx!
			
			
									
						
										
						 
		 
				
		
		 
	 
				
		
				
			
				
								ppslim 							 
						Revered One 			
		Posts:  3914 Joined:  Sun Sep 23, 2001 8:00 pmLocation:  Liverpool, England 
		
						
					
						 
													
							
						
									
						Post 
					 
								by ppslim  Tue Nov 06, 2001 4:11 pm 
			
			
			
			
			
			.su is password protected.
			
			
									
						
										
						 
		 
				
		
		 
	 
				
		
				
			
				
																s 														
								sipko  
									
						
		
						
						
		 
		
						
					
						 
													
							
						
									
						Post 
					 
								by sipko  Tue Nov 06, 2001 5:34 pm 
			
			
			
			
			
			Oh, tnx!!
			
			
									
						
										
						 
		 
				
		
		 
	 
				
		
				
			
				
																s 														
								sipko  
									
						
		
						
						
		 
		
						
					
						 
													
							
						
									
						Post 
					 
								by sipko  Tue Nov 06, 2001 6:40 pm 
			
			
			
			
			
			This is burjok.tcl script. I added it and then rehashed and restarted my bot. But still all (m&n) users may add people into the botnet. I have 2 bots on my botnet. 
Have I made a mistake?
set allowed "SIPko burek12 kmeto"
<font size=-1>[ This Message was edited by: sipko on 2001-11-06 15:43 ]</font>
<font size=-1>[ This Message was edited by: sipko on 2001-11-06 15:45 ]</font>
 
		 
				
		
		 
	 
				
		
				
			
				
								ppslim 							 
						Revered One 			
		Posts:  3914 Joined:  Sun Sep 23, 2001 8:00 pmLocation:  Liverpool, England 
		
						
					
						 
													
							
						
									
						Post 
					 
								by ppslim  Tue Nov 06, 2001 7:07 pm 
			
			
			
			
			
			After the line
putdcc $idx "What? You need '.help'" 
Add the line
return ""
 
		 
				
		
		 
	 
				
		
				
			
				
																s 														
								sipko  
									
						
		
						
						
		 
		
						
					
						 
													
							
						
									
						Post 
					 
								by sipko  Tue Nov 06, 2001 7:08 pm 
			
			
			
			
			
			ok I managed the problem.. the problem was .+u* * * -> that has not solved the problem when I wrote .+user name  .. and then later .+host
			
			
									
						
										
						 
		 
				
		
		 
	 
				
		
				
			
				
																s 														
								sipko  
									
						
		
						
						
		 
		
						
					
						 
													
							
						
									
						Post 
					 
								by sipko  Tue Nov 06, 2001 7:09 pm 
			
			
			
			
			
			hm, ok... i will add this too...
			
			
									
						
										
						 
		 
				
		
		 
	 
				
		
				
			
				
								Wcc 							 
						Master 			
		Posts:  278 Joined:  Sun Oct 28, 2001 8:00 pmLocation:  USA
				Contact: 
				
			 
				
		 
		
						
					
						 
													
							
						
									
						Post 
					 
								by Wcc  Wed Nov 07, 2001 3:34 am 
			
			
			
			
			
			You also want to disable the .adduser command i'm sure.
			
			
									
						
										
						 
		 
				
		
		 
	 
				
		
				
			
				
																s 														
								sipko  
									
						
		
						
						
		 
		
						
					
						 
													
							
						
									
						Post 
					 
								by sipko  Wed Nov 07, 2001 10:31 am 
			
			
			
			
			
			Huh, indeed;)
			
			
									
						
										
						 
		 
				
		
		 
	 
				
		
				
			
				
																s 														
								sipko  
									
						
		
						
						
		 
		
						
					
						 
													
							
						
									
						Post 
					 
								by sipko  Wed Nov 07, 2001 3:36 pm 
			
			
			
			
			
			Now I would like to add these commands into the forbidden list: bind filt - ".-u* * *" -user:check 
			
			
									
						
										
						 
		 
				
		
		 
	 
				
		
				
			
				
								Wcc 							 
						Master 			
		Posts:  278 Joined:  Sun Oct 28, 2001 8:00 pmLocation:  USA
				Contact: 
				
			 
				
		 
		
						
					
						 
													
							
						
									
						Post 
					 
								by Wcc  Wed Nov 07, 2001 7:42 pm 
			
			
			
			
			
			You can use the same proc for all of these, but chattr and adduser needed to be wild-card-ified 
bind filt - ".-u* * *" +user:check 
bind filt - ".addu* +user:check 
bind filt - ".chatt* *" +user:check 
bind filt - ".die" +user:check 
 
		 
				
		
		 
	 
				
		
				
			
				
																s 														
								sipko  
									
						
		
						
						
		 
		
						
					
						 
													
							
						
									
						Post 
					 
								by sipko  Wed Nov 07, 2001 8:21 pm 
			
			
			
			
			
			huh, It works! Tnx ... I owe you a beer!;)