> zonca.it / glftpd scripts
glFTPD scripts logo

Scripts for glFTPD service management, and protection.

GL QUOTA

It simply checks the users quota, you can setup it to run with crontab, every three hours. If the user is over quota, he will not be able to uploads new files, but he can delete some stuff, and type: site quota username to regain upload.

Inside the archive there is quota-setup.sh, the script to install the main script.

SHA-1 29b5133f455301bc5c43beb4823534a575228ad0 | quota-1.2.6.tar.gz

Quota 1.2.6 fixed for new gcc standards and security bugs.

HTGL

Use major version 0.73 in production. Compile it with gcc and these arguments:

gcc -o htgl -lcrypto htgl.c   for GlFTPd 2.0X
gcc -o htgl -lcrypt htgl.c    for GlFTPd 1.32

Then copy in your Glftpd's bin dir.

HTGL helps to write new hosting for your server, sets users's homedir, deletes Alias hostname ecc...

SHA-1 56bb6d7bb03886706f732f30e0a4065d98eb6c30 | htgl073.tar.gz
SHA-1 91167d29cc2736a92fff92e1fc52fd49d98808fd | htgl072.tar.gz
SHA-1 047b444378d3ef3ec884e059704310197a1e7298 | htgl06c.tar.gz

HtGL 0.73

HtGL 0.72 this version still uses the old PKCS5_PBKDF2_HMAC_SHA1 function. It's not possible to compile it with a recent OpenSSL version (3.0.x).

PHGL

If you need to manage all your Gadmins with one tool, and need to create virtualhosts (for Apache web hosting) with a Gadmin account, use this tool.

SHA-1 6304015bceaa8795e0c79a3fcd55570ae9f37711 | phgl031.tar.gz

GWHGL

This is a "Personal Log Util", and dupe crc check. For more info read the main comment in the source file.

SHA-1 97adbdb6030f42603912154f0ac7f1a9af2cdf74 | gwhgl-014.tar.gz
SHA-1 71cd43a5f8b22cbecb73b79669fc06697f5d23b5 | gwhgl-015.tar.gz

RPGL

Move file with right prefix where you want, see the main comment in the source file for other script information.

SHA-1 b8ef904390d939983dc4c9067673b3387d453552 | rpgl02.tar.gz

GL_ANTIKAD

This util has been created after I saw the HighLand DC script, I thought to write new one for Kad but without use a ip database. For more info read the description in checker.c source file.

Version 0.22 will be removed, it has some security problems.

SHA-1 485e74c47065b6133c7627865091b1aef7e20534 | gl_antikad_022.tar.gz
SHA-1 4120940be6d40ed1e52fc6d0514044a24bf48ce7 | gl_antikad_023.tar.gz

GLBEACON

It's a simple test to use the beacon concept (connect back shell), in a glFTPD enviroment. There isn't a client, and a crypto connection.

SHA1 a2a6d175c1e000bc1212924b669af311c3ae5936 | glbeacon_001d.tar.gz
SHA1 a2a6d175c1e000bc1212924b669af311c3ae5936 | glbeacon_001c.tar.gz

GL_CAOS

It is a bash script, useful to trick bad bots, or study their behaviors. You can see here an example of directory and files names generated.

SHA1 cfcb0924eecf0382d3d8d099eb35326214e2212b | gl_caos_001.tar.gz

Import script

Since in past I started to install server with ncftpd (a good and light ftp service) all my users were in /home/*. Import 1.0a is a little util that you can use with your homes/logins stored in tar.bz2 inside a directory.

The script helps to extract the files, set login, password, and ownership for the user on the new server. For other help read the comments in the file import.sh inside the archive.

News

25 oct 2025

'GL_Caos 001' released. The script simply tries to trick attackers and malicious bots, with random generated directory, files stuff. See README file in the archive for details.

28 jun 2023

'GLbeacon 001d' released. Added the jump funcion, to switch session to a second team server.

25 nov 2021

'GLbeacon 001c' released. It's a simple test to use the beacon concept (connect back shell), in a glftpd environment. Just trying to recall the beacon once needed. Other info in the README file.

26 Dec 2007

'HtGL 0.72' released, more info in the source file.

25 Nov 2007

Found a bug in htgl 0.6c. Passwd file wasn't correctly updated with right crypted password.

29 Gen 2006

GL_antikad 0.22 (checks if the user is using the famous p2p network kad).

20 Mar 2004

'Quota 1.2.4'. Read the header lines in quota.c to see the changes. I rewrote some of code, so the program can be used without problems from bash or glFTPD prompt. Fixes in quota-setup.sh. The files '.quote' will be added and removed by root or glFTPD account. User can finally use 'site quota' to regain upload access. Thanks to Apocalyp and r_winter.

17 Mar 2004

Apocalyp found some bugs in 'Quota 1.2.3'. Some of them are already fixed, but I need time to correct another routine, so I removed the lynk from the page.

07 Feb 2004

'HtGL 0.6c'. The util gone today in producion state, so to works correctly. I applied some patchs, and fixed some openfile routine, and did tests, like 6 hours.

04 Feb 2004

'Quota 1.2.3'. Tested on Glftpd 2.0 ALPHA6, fixed some bugs (dir control, vars...).

06 Jan 2004

'RpGL 0.2' released.

04 Jan 2004

Started to write 'RpGL 0.2'. It moves files from a dir (where people upload stuff) to another dirs according with directive file in '/etc'. The uploader will rename the files with a tag (example: mp3s-somedude-song.mp3), the script will scan every file and will move in the right dir. There are many scripts that do this, but I needed one (fast) to run on a private site.

25 Nov 2003

HtGL 0.6a Released. This version reduces to one step, the commands to add a new virtualhost under apache (before were 5).

— it adds users and passwords when you add a domain.
— it deletes users and move the user data in a lumber dir. (after all commands type: site purge)
— 'plusdom' and 'delplus' adds/deletes a virtualhost with documentroot under a user's dir.

(for more infos read the nfo in tar.gz file).

13 Nov 2003

GwhGl 0.14 released.

04 Oct 2003

I'm still working on the new script. The name will be: "Graphic Work Hard". This addon permits to normal user to collect info about file created, moved, deleted in his home and store day by day a private dupelog. This is usefull when another guy (example a graphic) is working on your website, or other files. Also the admin could use it to collect all data/history users. Stay tunned.

21 Sep 2003

I found a big bug in PhGL, so I rewrote most of the code. Here for you the new PhGL 0.3. I lost 3 hours to fix PhGL, so the new addon is still not complete. Stay tunned for news.

14 Sep 2003

New ascii-logo (Pogue), thinking a new addon.

06 Sep 2003

Here for you PhGL 0.2 for Glftpd.

21 Aug 2003

Quota 1.2.1. This new version includes a simple and fast routine to copy the .quote file in the /ftp-data/users/, excluding the 'cp' system call. ENJ0Y.

07 Aug 2003

Quota 1.2. This is the final quota script for your webserver and glFTPD. More Fast, bug fixed, without system calls. Info for installation are in the *.c files. Enjoy it.