logo
Updated July 4th, 2005 - Archived news - Archived scripts - contact: /msg SoD- on EFNet
NEWS: LiNKS:

2005-07-04: Updated video_info_v0.3beta to video_info_v0.3beta2.
            Fixed a few things and added a few new features, check
            the README in the tarball.
2005-04-14: Added a new program called wmgl_spy_v0.1beta.tar.gz. It's
            a dockapp that acts like gl_spy. Look HERE for an example.
2004-11-08: Updated zip_cleaner_v0.3.sh to zip_cleaner_v0.3.1.sh.
            Fixed the EXTRACT_TO_LOWER feature (for real this time).
            Also removed some ugly error messages when run from shell.
2004-10-07: Updated zip_cleaner_v0.3beta.sh to zip_cleaner_v0.3.sh.
            Made it execute MUCH MUCH faster and fixed the lower case
            convertion of extracted .diz/.nfo files.
2004-08-27: Updated zip_cleaner_v0.2(beta).sh to
            zip_cleaner_v0.3beta.sh. Made the script try to fix
            corrupt zip files (since some add-nfo-to-zip scripts fucks
            them up).
            Also fixed a bug in the .nfo/.diz extraction. The script
            no longer chown's any files (since it's unnescessary).
2004-08-08: Updated video_info_v0.2beta to video_info_v0.3beta.
            Fixed a few things and added a few new features, check
            the README in the tarball.
            This is probably the last time i'm upgrading this program,
            i have tested it on hundreds of samples and it feels quite
            reliable now.
2004-08-08: Updated zip_cleaner_v0.1beta.sh to
            zip_cleaner_v0.2beta.sh. Made the match for unwanted files
            case insensitive. Also added support for extraction of
            .nfo and .diz files.
2004-02-01: Added a new script called zip_cleaner_v0.1beta.sh. It
            removes garbage files and comments from zip files.

Apocalypse
binary
BOR
crockett007
DAVE-SECURE
Flowman
FRSoldier
glFTPD.at
glFTPD homepage
GOD-EMPEROR
high society
Jehsom
ouzo12
pnG
pzs-ng
SceneDivision
tanesha
Turranius,psxc,
eur0dance,Mr_V,
cruxis,Flowman
xferlogDB
Zio

mp3info homepage
Guide to TCL
Guide to BASH
Guide to GAWK
Programming in C
Regexp
Please give me some feedback on the scripts/programs here so i can make them non-betas
wmgl_spy_v0.1beta.tar.gz *NIX format

Created: 2005-04-14
Updated: 2005-04-14
This program is a dockapp that shows user and total upload/download speed in glftpd. If you don't know what a "dockapp" is you can stop reading because then this isn't for you.
This program is more or less just a stripped down version of Zio's ftpwhoDlx2 that continously displays stuff inside a tiny (128x64 px) dockapp. Because of the limited space it only shows a maximum of eigth rows that looks like this: "user@group speed". The bottom row shows the total up/dn users and speed.
It should be noted that I'm a total noob when it comes to dockapp programming. I've just modified wmDockApp (which is kind of a dockapp template) a little. Since I suck at dockapps I have no idea what desktops it will work on. It runs fine in my Fluxbox and from what I understand it should work on Window Maker, AfterStep and Blackbox too. It might work in other too...
Look HERE for an example.

Requires glftpd.
 
zip_cleaner_v0.3.1.sh *NIX format
zip_cleaner_v0.3.1.sh HTML format

Created: 2004-01-29
Updated: 2004-11-07
This script uses zip and unzip to remove garbage files and comments from zip files. Just run it with the file to be cleaned as argument. It can also extract nfo and diz and repair some corrupt files.
Instructions for usage with Dark0n3's zipscript-c is included.

NOTE: Some files might fail because Info-ZIP isn't supporting all .zip files.
 
video_info_v0.3beta2.tar.gz *NIX format

Created: 2003-01-30
Updated: 2005-06-16
This program (written in ANSI C) extracts video and audio parameters from MPEG-1, MPEG-2, VOB and AVI files.
Support for XviD is somewhat limited; profile, layer, chroma, and picture size isn't always extracted. The files must contain both audio and video.
The main purpose of this program is to extract information from sample files uploaded to an ftp so the files properties can be displayed to the users, but it can also be used manually to determine the properties of a video file.
The extracted information can be presented in 4 different ways; written to stdout, written to a file (eg glftpd log), written to a .message file and/or have a directory or a file created whos name reflects the information.
For a more detailed description, check the README in the tarball.
Instructions for usage with pzs-ng v1.0 is included.

 
gloganalyzer_v0.3beta.tar.gz *NIX format

Created: 2001-12-04
Updated: 2002-03-xx
gloganalyzer is a program for easier/funnier viewing of stats, at least compared to log reading (not as leet though).
The program comes in two (almost identical) versions. One of them takes its parameters from the command line (or from a script) and the other one uses a cgi interface. Both programs take a start and a stop date, a choice between uploads and downloads and a list with users or groups as parameters and produce an image in the png format representing their stats. The cgi interface requires password authorization (checks against glftpd's passwd file). This isn't very secure but neither is ftp...
WARNING! Since I haven't had a proper xferlog to test against I can't even guarantee that the output is correct at all.
Look HERE for a (bad) example of the output.
Look HERE too see the cgi interface (of course the 'GENERATE IMAGE' button doesn't work).

Requires glftpd.
 
dated_dir_creator_v1.3.2.sh *NIX format
dated_dir_creator_v1.3.2.sh HTML format

Created: 2001-05-16
Updated: 2003-02-19
This script have been confirmed to work in Slackware 8.0/8.1, Debian 3.0 and FreeBSD 4.5.
This script is to be executed from crontab every midnight (or 23:59 to be more exact) and then creates new dated dirs in the paths you've specified. It chmods them and yesterdays dir and if you want, creates symlinks to them. It lets you set the "closing-time" of yesterdays dir and it writes to glftpd.log in such a way that a bot can announce it.
It can also announce the total DAYUP and the 3 best uploaders of today, their speed and the amount they've uploaded for every section.
It is also possible to just use the script as a stats announcer.

Requires glftpd if announcing of stats is enabled.
 
predircheck_v1.4.sh *NIX format
predircheck_v1.4.sh HTML format

Created: 2001-05-01
Updated: 2003-04-25
This script have been confirmed to work in Slackware 8.0 and FreeBSD 4.7/5.0.
This script is executed by glftpd before a directory is created and then checks for up to 4 things (depending on if you enable all checks or not):
- Checks for dupe in the dupelog (dirname, not files of course).
- Checks for what group the release origins from. This allows for denial of affil-racing and banned groups.
- Checks for releaseyear (only works for the mp3 scene).
- Checks for previous nuke in glftpd.log.
It also lets you rename CDx dirs to:
1: all lower case                       (Cd1 -> cd1, CD1 -> cd1)
2: all lower case except for first char (CD1 -> Cd1, cd1 -> Cd1)
3: all upper case                       (Cd1 -> CD1, cd1 -> CD1)

In other words, this script lets you deny your users to create dirs you don't want, making it easier for both the nukers and the users.

PS! You might wanna check out jehsoms dirscript (here) since it has more features and is easier to setup if you don't know bash at all. I wasn't aware of his when I wrote mine.

Requires glftpd.
 
bin copy v1.2beta.sh *NIX format
bin copy v1.2beta.sh HTML format

Created: 2001-08-16
Updated: 2002-08-15
This script copies 40 binaries (add more if you like) and the libs they need from your system to glftpd's bin/lib dir and chmod's them to 755. Just run with the path to your glftpd's bin-dir and it does the rest for you. You need root access to the system.

I know that Zio already has made a script like this (BinCopy v1.0) and it's just as good as mine (better perhaps :)) but I was boored...

Requires glftpd.
 
free space dated dirs v1.4beta2.sh *NIX format
free space dated dirs v1.4beta2.sh HTML format

Created: 2001-05-01
Updated: 2002-08-29
This script have been confirmed to work in Slackware 8.0 and FreeBSD 4.5.
This script helps you keep your devices from running full. It runs in crontab at an approperiate interval and then deletes directorys in a dated dir structure until a specified amount of space is free.
The script can be run with arguments or with the settings in this file. Running it with arguments can be handy if u have many sections since it then only requires 1 copy of this script.
If all/some of your sections doesn't use dated dirs you should use another script, for example my free_space_v1.2.x.sh for them.
This script is meant for mp3/0-day and other sections that uses dated dirs.
You can specify how much space the section is allowed to contain, letting you have multiple sections on one device and you can set groups that you don't want deleted by the script (eg, don't delete any of CORE's or SND's releases).
Nuked dirs from "VIP groups" will get deleted, not moved.
The script deletes the dated dirs by their name (hence the dated dirs only) and all dirs within the dated dirs by their modification date. It only deletes dated dirs (ie. 0311) so dirs named otherwise than a dated dir won't be touched. It will delete a dir named '0000' and a few more non-dated-dirs that consist of four digits.
Since some filesystems (and mounts) don't write the status of the files on the hard discs right away, there's an option that makes the script wait for a specified time until it continues to delete.
To easy the configuration there's a variable called DEBUG, which when set to 1 runs the script without deleting anything. It will say which dir is about to get deleted but not deleting it. Since it isn't deleted, the script will run forever so just hit ctrl-c to stop it.
It writes to glftpd.log so that a botscript can announce it (download the script to see how to configure the botscript).
The script does something like this:
- Deleting any files directly inside the oldest dated dir.
- Deleting any nuked directorys inside the oldest dated dir.
- Deleting oldest directory inside oldest dated dir.
- Moving any "VIP groups" releases to a specified dir.
- Deleting the oldest dated dir if it's empty.
- Repeats above in the "next" dated dir until enough space is free.
 
free_space_v1.2.2.sh *NIX format
free_space_v1.2.2.sh HTML format
You will also need file_age.c

Created: 2001-05-01
Updated: 2002-08-04
This script have been confirmed to work in Slackware 8.0 and FreeBSD 4.5.
This script helps you keep your devices from running full. It's meant to be run from crontab at an approperiate interval and will then delete directorys until a specified amount of space is free. It only deletes directly inside the specified incomingpath, thus it cannot be used were you have "nested" dirs (CD1, CD2, sample and such does not qualify as nested). For example, if you have 3 sections within /site/incoming/ and you set this script to delete in /site/incoming/ you will end up with 2 sections within a few seconds. You need to set up 1 script or call it with different args for each and one of these sections.
If you have a dated dir structure you should use my other script, free space dated dirs v1.3beta2.sh. This script is meant for iso/vcd/divx and similar sections that doesn't use dated dirs.
You can specify how much space the section is allowed to contain, letting you have multiple sections on one device and you can set the time you want nuked dirs to stay on the site. You can set groups that you don't want deleted by the script (eg, don't delete any of RiSC's or FLT's releases) and of course "special" dirs that you want excluded. Nuked dirs gets deleted even if they are from "VIP groups".
Since some filesystems (and mounts) don't write the status of the files on the hard discs right away, there's an option that makes the script wait for a specified time until it continues to delete.
The script deletes the dirs by their modification time.
It writes to glftpd.log so that a botscript can announce it (download the script to see how to configure the botscripts).
The script does something like this:
- Deleting any nuked directorys inside incomingpath if they're too old.
- Deleting oldest directory inside incomingpath.
- Repeats the above until enough space is free.