Old 03-18-2004, 12:01 PM   #1
scull
Senior Member
ioFTPD Scripter
 
Join Date: May 2003
Posts: 159
Default ioSKIPLIST

Hi ..

I was sick and tired of traders uploading other sites "site-tags", so i made this little script.

It deny upload of files or folders that have "[" or "]" in their names.

- Edit your ioFTPD.ini

[FTP_Pre-Command_Events]
stor = EXEC ..\scripts\ioSKIPLIST\ioSKIPLIST.exe
mkd = EXEC ..\scripts\ioSKIPLIST\ioSKIPLIST.exe

- ALWAYS place ioSKIPLIST as first "mkd" or "stor" script.

//Scull

>>Download Here<<
scull is offline   Reply With Quote
Old 03-18-2004, 12:13 PM   #2
scull
Senior Member
ioFTPD Scripter
 
Join Date: May 2003
Posts: 159
Default

Opps .. Wrong name , It should be ioSKIPLIST .. NOT .. ioSKIPTAG ..

New renamed file uploaded. ( only change is that ioSKIPTAG.exe is renamed to ioSKIPLIST ).

//Scull
scull is offline   Reply With Quote
Old 03-18-2004, 02:44 PM   #3
Zer0Racer
Senior Member
ioFTPD Scripter
 
Join Date: Oct 2002
Posts: 703
Default

Does it really block files without catching pre STOR?
Zer0Racer is offline   Reply With Quote
Old 03-18-2004, 07:16 PM   #4
ddeca
Member
ioFTPD Foundation User
 
Join Date: Aug 2003
Posts: 73
Default

i guess it only blocks TAGs that are made of dir..
ddeca is offline   Reply With Quote
Old 03-19-2004, 12:45 AM   #5
scull
Senior Member
ioFTPD Scripter
 
Join Date: May 2003
Posts: 159
Default

Hi..

I havent tested if it blocks files , but it should if you put it in the pre-stor too.

It works and prevents dirs to be created BUT i have a little problem. ioFTPD want to "CWD" ( Change Owner Dir ) to the blocked UN-MADE dir, and when it does not find the dir ( because i blockt the MKD of it ) it times out trying CWD the dir ...

When timed out the USER that tried to upload the tag dir is connected again and NO tag dir is uploaded ( punishment ? )

Any one know how to prevent the CWD ? I'm working in VB6.

//scull
scull is offline   Reply With Quote
Old 03-19-2004, 10:27 AM   #6
Mouton
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 1,956
Default

The ftp client (ffxp ?) tries to CWD, not io...
And the ftp client tries to enter the dir because u didn't tell it that the MKD command failed.
U need to output something to the client... 530 Dir creation blocked by ioSKIPLIST. or something similar.
Check what's the right error code for mkd denied...
Mouton is offline   Reply With Quote
Old 03-20-2004, 09:50 AM   #7
scull
Senior Member
ioFTPD Scripter
 
Join Date: May 2003
Posts: 159
Default

Thanx! ..

I fixed the "problem" now.

Now Files AND Folders are rejected if they have "[" or "]" in their names.

version 1.1 out.

//Scull

>>Download Here<<
scull is offline   Reply With Quote
Old 03-22-2004, 11:57 AM   #8
wooolF[RM]
Senior Member
ioFTPD Foundation User
 
Join Date: Oct 2003
Posts: 411
Default

erm... why dont use ioftpd.ini for this task? under upload/download permissions... just wondering...
wooolF[RM] is offline   Reply With Quote
Old 03-22-2004, 12:27 PM   #9
scull
Senior Member
ioFTPD Scripter
 
Join Date: May 2003
Posts: 159
Default

Quote:
Originally posted by wooolF[RM]
erm... why dont use ioftpd.ini for this task? under upload/download permissions... just wondering...
hehe I wanted to learn how to do a script that deny a PRE operation.

//Scull
scull is offline   Reply With Quote
Old 03-22-2004, 01:25 PM   #10
wooolF[RM]
Senior Member
ioFTPD Foundation User
 
Join Date: Oct 2003
Posts: 411
Default

ah, oki and good job on learning
wooolF[RM] is offline   Reply With Quote
Reply

Tags
download, ioskiplist, mkd, stor, upload

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 10:39 AM.

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