Old 05-20-2003, 03:41 AM   #1
FTPServerTools
Senior Member
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: Sep 2002
Posts: 543
Default New release ioFTPD SiteKill 1.0

Ok I think I tested it enough this should be good for the final.
For those that dont know it, SiteKill is an external command which can be executed via the scheduler or via a dos box to kill certain connections in ioFTPD.
Goto http://ftpservertools.tripod.com and visit the download page.
The site is not accessible for opera I heard, sorry it's tripod's fault.

Users of version 0.3 or 0.9 be aware the syntax has changed.

Parameters are any combination of
user=username - Kicks connections of user
ip=ipnr - Kicks connections of ip
ident=ident@ipnr - Kicks connections of ident@ip
host=hostname - Kicks connections of hostname
idle>seconds - Kicks idlers that are seconds idle
idle>=seconds - Kicks idlers that are seconds idle
path=somepath - Kicks connections on a path
group=groupname - Kicks connections from a maingroup
groups=groupname - Kicks connections from a group that the user is in
action=lastaction - Kicks connections with last action
flags=userflags - Kicks users with certain flags
times=all|once|nr - Number for the amount of kicks, all for all connections
service=ftp|http|telnet - kick only people on this service
servicename=name - name if ioftpd service (from ioftpd.ini) e.g. FTP_Service
up>nr - kick speed > nr for connections that are uploading K/s
up>=nr - kick speed >= nr for connections that are uploading K/s
up<nr - kick speed < nr for connections that are uploading K/s
up<=nr - kick speed <= nr for connections that are uploading K/s
down>nr - kick speed > nr for connections that are downloading K/s
down>=nr - kick speed >= nr for connections that are downloading K/s
down<nr - kick speed < nr for connections that are downloading K/s
down<=nr - kick speed <= nr for connections that are downloading K/s
transfer=idle|up|down|list - kick connections in the mentioned transfer mode
Preceed a parameter with a - and it will exclude that option
Wildcards are * and ? are allowed

Due to the windows rdirection (using < and >) you will need to surround your partial or complete query with double quotes.
Also when the string you comapre with has a space in it you need to surround the argument with double quotes.

Be aware that the parameters are used as AND so:
site kill groups=group1 groups=group2
will kill everyone belonging to group1 AND group2.
Thus someone only belonging to group1 will not be killed.



Examples:
site kill user=lamer - kills the user lamer
site kill user=lamer times=once - kills the user lamer once
site kill user=lamer times=25 - kills max 25 lamer users
site kill user=l*r - kills users that match the l*u wildcard so lamer looser leecher in this example but not winner
site kill ip=127.0.0.1 - kills the 127.0.0.1 connections
site kill ip=192.168.*.* - kills the 192.168.*.* connections
site kill "idle>120" - kills idlers that are longer then 120 secs idle
site kill group=l*s - kills connections with main group l*s so leechers, loosers, lamers
site kill action=noop - kills connections where the last command was NOOP
site kill ident=TEST@* - kills connections with TEST as ident
site kill user!=sitebot path=/movies/svcd/* "idle>120"
- kills all connections that are in /path/movies/svcd/ somewhere and that are 120 seconds or
more idle but dont kill user sitebot in this process
site kill servicename=FTP_Service "down<10"
- kill all ftp leechers that are downloaading < 10K/s
site kill "path=/Stay out *" "login>600"
- kill all ftp services that are logged in longer then 600 seconds.


How to use this command in ioFTPD?
Lets say we for example want to kick all idle ftp users.

[Schedule]
KillIdlers = 0,5,10,15,20,25,30,35,40,45,50,55 * * * ..\scripts\SiteKill.exe "idle>120" service=ftp


To run this same command from a tcl script you could use:
[exec -- "c:\\ioFTPD\\scripts\\SiteKill.exe" "idle>120" "service=ftp"]
FTPServerTools is offline   Reply With Quote
Old 05-20-2003, 03:48 AM   #2
The0ne
Member
 
Join Date: May 2003
Posts: 42
Default

sweet thx for the update FTPServerTools, i couldn't quite get teh older sitekills to work properly but i will give this new version a go, thx again
The0ne is offline   Reply With Quote
Old 05-20-2003, 03:56 AM   #3
FTPServerTools
Senior Member
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: Sep 2002
Posts: 543
Default

O yes I forgot... If you run the unpatched ioFTPD on win2k or winXP (no SP1) then it wont run. So see the forum somewhere to find the patches. The actual criteria to need is patch is the following:
Goto your windows system32 dir. View inside your Shell32.dll and find the string SHLock if it exists then you do NOT need a patched io to get sitekill to work.
FTPServerTools is offline   Reply With Quote
Old 05-20-2003, 04:39 AM   #4
iXi
Senior Member
ioFTPD Foundation User
 
Join Date: Nov 2002
Posts: 220
Default

hehe nice man
i wanna mary you*gg

cya
iXi is offline   Reply With Quote
Old 05-20-2003, 07:32 AM   #5
Linkster
Moderator
Administrator
 
Join Date: Oct 2001
Location: New Mexico, USA
Posts: 1,070
Default

wouldn't this also work? assuming io scheduler supports same syntax as unix...

[Schedule]
KillIdlers = */5 * * * &..\scripts\SiteKill.exe "idle>120" service=ftp
Linkster is offline   Reply With Quote
Old 05-20-2003, 12:31 PM   #6
Superblue
Member
ioFTPD Registered User
 
Join Date: May 2003
Posts: 78
Default

Having some probs when I do:
site kill "idle>120"

it kills me even though I've only been idle a few seconds?
Superblue is offline   Reply With Quote
Old 05-20-2003, 01:29 PM   #7
m0B
Member
 
Join Date: May 2003
Posts: 40
Default

I have the same problem as SuperBlue.
m0B is offline   Reply With Quote
Old 05-20-2003, 05:04 PM   #8
Vampirix
Junior Member
 
Join Date: May 2003
Posts: 19
Default

same here... i tried for about an hour all the possible combinations to kill idlers>180 secs but it kills every user in the ftp even if he's idle for just 1 second i hope this will be fixed soon cause it's a great addon!
Vampirix is offline   Reply With Quote
Old 05-20-2003, 05:13 PM   #9
FTPServerTools
Senior Member
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: Sep 2002
Posts: 543
Default

Which io version and which os?
And I made a typo in the scheduler line.. The & shouldnt be there (deleted now).
FTPServerTools is offline   Reply With Quote
Old 05-20-2003, 05:39 PM   #10
m0B
Member
 
Join Date: May 2003
Posts: 40
Default

I knew about the schelduler so that part 'worked'.
But when it does 'site kill "idle>120"' it kicks everyone including me..

WinXP with SP1
Latest ioFTPD 4.6.2u
m0B is offline   Reply With Quote
Old 05-20-2003, 11:11 PM   #11
Superblue
Member
ioFTPD Registered User
 
Join Date: May 2003
Posts: 78
Default

Quote:
Originally posted by m0B
I knew about the schelduler so that part 'worked'.
But when it does 'site kill "idle>120"' it kicks everyone including me..

WinXP with SP1
Latest ioFTPD 4.6.2u
Same as above, disabled scheduler part, just trying to pass the cmd from ftp program.
Superblue is offline   Reply With Quote
Old 05-21-2003, 01:51 AM   #12
Vampirix
Junior Member
 
Join Date: May 2003
Posts: 19
Default

OS: Win 2003 Server SE
iO: beta 4.6.2u

I tried to make it work by a dos prompt, by a site command and by the scheduler but no way it kill everyone who is idle just for few seconds
Vampirix is offline   Reply With Quote
Old 05-21-2003, 04:56 AM   #13
iXi
Senior Member
ioFTPD Foundation User
 
Join Date: Nov 2002
Posts: 220
Default

moin,

ive the same problem sitekill wont work..

os windows XP sp1 ioFTPD latest unregisted version

cya
iXi is offline   Reply With Quote
Old 05-21-2003, 05:31 AM   #14
TaNiZi0
Junior Member
 
Join Date: May 2003
Posts: 4
Unhappy

I have the same problem..... into XP SP1 and ioFTPD lastest.

4 example:

c:\io\scripts\> SiteKill.exe "idle=pepe"
Kicked: TaNiS ____Ó@127.0.0.1
Totally 1 connections kicked


LoL
TaNiZi0 is offline   Reply With Quote
Old 05-21-2003, 07:04 AM   #15
darkone
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,230
Default

Have you determinated wheter this is an issue with sitekill or scheduler?
darkone is offline   Reply With Quote
Reply

Tags
connections, download, kick, kicks, speed

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 11:06 PM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)