Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #============================================================
- #
- # FILE: getVersion.ftp.sh
- #
- # USAGE: ./getVersion.ftp.sh
- #
- # DESCRIPTION: Current version retrieval tool for various
- # FTP client and server software.
- #
- # OPTIONS: ---
- # REQUIREMENTS: ---
- # BUGS: ---
- # NOTES: This is a local Database updating tool.
- # AUTHOR: tankd, retardedolphin
- # COMPANY: ---
- # VERSION: 1.0
- # CREATED: 10/28/12 17:42:08 PST
- # REVISION: ---
- #============================================================
- # Parse FileZilla URL for current version. [DEPRECATED]
- # curl http://filezilla-project.org/ | grep -E --max-count=1 '[0-9][0-9][0-9][0-9]\-[0-9].+\-[0-9].+' | grep -E --only-matching '[0-9]+\.[0-9]+\.[0-9]+'
- # VERSION=$(curl http://filezilla-project.org/ | grep -E --max-count=1 '[0-9][0-9][0-9][0-9]\-[0-9].+\-[0-9].+' | grep -E --only-matching '[0-9]+\.[0-9]+\.[0-9]+')
- # New way
- # curl http://filezilla-project.org/newsfeed.php | grep -E --max-count=1 --after-context=1 '\<entry\>' | sed 's/[<]entry[>]//g' | grep -E --only-matching '[0-9]+\.[0-9]+\.[0-9]+'
- # FILEZILLA_VER=$(curl http://filezilla-project.org/newsfeed.php | grep -E --max-count=1 --after-context=1 '\<entry\>' | sed 's/[<]entry[>]//g' | grep -E --only-matching '[0-9]+\.[0-9]+\.[0-9]+')
- #FileZilla
- FILEZILLA_VER=$(curl http://filezilla-project.org/newsfeed.php | grep -E --max-count=1 --after-context=1 '\<entry\>' | sed 's/[<]entry[>]//g' | grep -E --only-matching '[0-9]+\.[0-9]+\.[0-9]+')
- #Bulletproof FTP Server
- Bulletproof_Server_VER=$(curl http://www.bpftpserver.com/ | grep -E --only-matching '[0-9]+[0-9]+[0-9]+[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+[0-9]' | sort -n)
- #ALFTP
- ALFTP_VER=$(curl http://www.altools.com/ALTools/ALFTP/Version-History.aspx | grep -E --only-matching '[0-9]+\.[0-9]' | sort -n |tail -1)
- #Cerberus FTP Server
- CERBERUS_FTP_SERVER_VER=$(curl http://www.cerberusftp.com/download/ | grep -E --after-context=1 'FTP Server' | grep -E --only-matching '[0-9]+\.[0-9]' | tail -1)
- #Complete FTP
- COMPLETEFTP_VER=$(curl http://www.enterprisedt.com/products/completeftp/history.html | grep -E --only-matching '[0-9]+\.[0-9]' |sort -n |tail -1)
- #Free_ftp
- FREE_FTP_VER=$(curl http://www.freesshd.com/?ctt=download | grep -E --only-matching '[0-9]+\.[0-9]+\.[0-9]+[0-9]' |sort -n | tail -1)
- #EFT Server
- EFT_SERVER_VER=$(curl http://www.globalscape.com/eft/whatsnew.aspx | grep -E --only-matching '[0-9]+\.[0-9]' | sort -n | tail -1)
- #IIS
- IIS_VER=$(curl http://www.iis.net/overview | grep --after-context=1 "IIS" | grep -E --only-matching '[0-9]+\.[0-9]' | sort -n | tail -1)
- #Raiden FTP
- RAIDEN_FTP_VER=$(curl http://www.raidenftpd.com/en/download.html | grep --after-context=1 "</strong>" | tail -2 | grep -E --only-matching '[a-z]+[0-9]+.[0-9]')
- RAIDEN__FTP_REVIS_VER=$(curl http://www.raidenftpd.com/en/download.html | grep --after-context=1 "</strong>" | tail -2 | grep -E --only-matching '[0-9]+[0-9]+[0-9]+[0-9]' | sort -n | tail -1)
- #proftpd
- PROFTPD_VER=$(curl http://www.proftpd.org/ | grep -E --only-matching --max-count=1 '[0-9]+\.[0-9]+\.[0-9a-z]+')
- #Apache FTP Server
- APACHE_FTP_SERVER_VER=$(curl http://mina.apache.org/ftpserver/downloads.html | grep -E --only-matching '[0-9]+\.[0-9]+\.[0-9]' | sort -n |tail -1)
- #CrushFTP Server
- CrushFTP_SERVER_VER=$(curl http://www.crushftp.com/download.html | grep -E --only-matching '[0-9]+\.[0-9]+\.[0-9]' | sort -n |tail -1)
- #glFTPd
- glFTPd_VER=$(curl http://www.glftpd.dk/ | grep -E --only-matching '[a-z0-9]+\.[0-9]+[0-9]' | sort -n |tail -1)
- #PureFTP
- PureFTP_VER=$(curl http://www.pureftpd.org/project/pure-ftpd | grep -E --only-matching '[0-9]+\.[0-9]+.[0-9]+[0-9]' |sort -n |head -n 1)
- #SlimFTPd
- SlimFTPd_VER=$(curl http://www.whitsoftdev.com/slimftpd/ | grep -E --only-matching '[0-9]+\.[0-9]+[0-9]' |sort -n |tail -n 1)
- #MuddleFTPd
- MuddleFTPd_VER=$(curl https://savannah.nongnu.org/news/?group=muddleftpd | grep -E --only-matching '[0-9]+\.[0-9]+\.[0-9]+[0-9]+\.[0-9]' |sort -n |tail -n 1)
- #Publicfile
- Publicfile_VER=$(curl http://cr.yp.to/publicfile/install.html | grep -E --only-matching '[0-9]+\.[0-9]+[0-9]' | sort -n | head -n 1)
- #Vsftpd
- Vsftpd_VER=$(curl https://security.appspot.com/vsftpd.html | grep -E --only-matching '[0-9]+\.[0-9]+\.[0-9]' |sort -n |head -n 1)
- #Wu_ftpd
- Wu_ftpd_VER=$(curl http://wu-ftpd.therockgarden.ca | grep -E --only-matching '[0-9]+\.[0-9]+\.[0-9]' |sort -n |tail -n 1)
- # Display Version Information
- echo "###Graphical FTP###"
- echo
- echo FileZilla - $FILEZILLA_VER
- echo
- echo ALFTP - $ALFTP_VER
- echo
- echo Bulletproof FTP server - $Bulletproof_Server_VER
- echo
- echo Cerberus FTP Server - $CERBERUS_FTP_SERVER_VER
- echo
- echo Complete FTP - $COMPLETEFTP_VER
- echo
- echo Free FTP - $FREE_FTP_VER
- echo
- echo EFT Server - $EFT_SERVER_VER
- echo
- echo IIS - $IIS_VER
- echo
- echo Raiden FTP - $RAIDEN_FTP_VER build $RAIDEN__FTP_REVIS_VER
- echo
- echo
- echo "###Console/terminal-based FTP###"
- echo
- echo
- echo Apache_FTP_server - $APACHE_FTP_SERVER_VER
- echo
- echo CrushFTP_SERVER - $CrushFTP_SERVER_VER
- echo
- echo glFTPd - $glFTPd_VER
- echo
- echo Proftpd - $PROFTPD_VER
- echo
- echo PureFTP - $PureFTP_VER
- echo
- echo SlimFTPd - $SlimFTPd_VER
- echo
- echo MuddleFTPd - $MuddleFTPd_VER
- echo
- echo Publicfile - $Publicfile_VER
- echo
- echo Vsftpd - $Vsftpd_VER
- echo
- echo Wu-ftdp - $Wu_ftpd_VER
- echo
- #EOF
Advertisement
Add Comment
Please, Sign In to add comment