tankdthedruid

getVersion.ftp.sh

Jan 29th, 2012
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. #============================================================
  3. #
  4. #          FILE:  getVersion.ftp.sh
  5. #
  6. #         USAGE:  ./getVersion.ftp.sh
  7. #
  8. #   DESCRIPTION:  Current version retrieval tool for various
  9. #                 FTP client and server software.
  10. #
  11. #       OPTIONS:  ---
  12. #  REQUIREMENTS:  ---
  13. #          BUGS:  ---
  14. #         NOTES:  This is a local Database updating tool.
  15. #        AUTHOR:  tankd, retardedolphin
  16. #       COMPANY:  ---
  17. #       VERSION:  1.0
  18. #       CREATED:  10/28/12 17:42:08 PST
  19. #      REVISION:  ---
  20. #============================================================
  21.  
  22. # Parse FileZilla URL for current version. [DEPRECATED]
  23. # 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]+'
  24. # 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]+')
  25.  
  26. # New way
  27. # 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]+'
  28. # 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]+')
  29.  
  30. #FileZilla
  31. 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]+')
  32.  
  33. #Bulletproof FTP Server
  34. 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)
  35.  
  36. #ALFTP
  37. ALFTP_VER=$(curl http://www.altools.com/ALTools/ALFTP/Version-History.aspx | grep -E --only-matching '[0-9]+\.[0-9]' | sort -n |tail -1)
  38.  
  39. #Cerberus FTP Server   
  40. 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)
  41.  
  42. #Complete FTP
  43. COMPLETEFTP_VER=$(curl http://www.enterprisedt.com/products/completeftp/history.html | grep -E --only-matching '[0-9]+\.[0-9]' |sort -n |tail -1)
  44.  
  45. #Free_ftp
  46. 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)
  47.  
  48. #EFT Server
  49. EFT_SERVER_VER=$(curl http://www.globalscape.com/eft/whatsnew.aspx | grep -E --only-matching '[0-9]+\.[0-9]' | sort -n | tail -1)
  50.  
  51. #IIS
  52. 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)
  53.  
  54. #Raiden FTP
  55. 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]')
  56. 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)
  57.  
  58. #proftpd
  59. PROFTPD_VER=$(curl http://www.proftpd.org/ | grep -E --only-matching --max-count=1 '[0-9]+\.[0-9]+\.[0-9a-z]+')
  60.  
  61. #Apache FTP Server
  62. 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)
  63.  
  64. #CrushFTP Server
  65. CrushFTP_SERVER_VER=$(curl http://www.crushftp.com/download.html | grep -E --only-matching '[0-9]+\.[0-9]+\.[0-9]' | sort -n |tail -1)
  66.  
  67. #glFTPd
  68. glFTPd_VER=$(curl http://www.glftpd.dk/ | grep -E --only-matching '[a-z0-9]+\.[0-9]+[0-9]' | sort -n |tail -1)
  69.  
  70. #PureFTP
  71. 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)
  72.  
  73. #SlimFTPd
  74. SlimFTPd_VER=$(curl http://www.whitsoftdev.com/slimftpd/ | grep -E --only-matching '[0-9]+\.[0-9]+[0-9]' |sort -n |tail -n 1)
  75.  
  76. #MuddleFTPd
  77. 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)
  78.  
  79. #Publicfile
  80. 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)
  81.  
  82. #Vsftpd
  83. Vsftpd_VER=$(curl https://security.appspot.com/vsftpd.html | grep -E --only-matching '[0-9]+\.[0-9]+\.[0-9]' |sort -n |head -n 1)
  84.  
  85. #Wu_ftpd
  86. Wu_ftpd_VER=$(curl http://wu-ftpd.therockgarden.ca | grep -E --only-matching '[0-9]+\.[0-9]+\.[0-9]' |sort -n |tail -n 1)
  87.  
  88. # Display Version Information
  89. echo "###Graphical FTP###"
  90. echo
  91. echo FileZilla - $FILEZILLA_VER
  92. echo
  93. echo ALFTP - $ALFTP_VER
  94. echo
  95. echo Bulletproof FTP server - $Bulletproof_Server_VER
  96. echo
  97. echo Cerberus FTP Server - $CERBERUS_FTP_SERVER_VER
  98. echo
  99. echo Complete FTP - $COMPLETEFTP_VER
  100. echo
  101. echo Free FTP - $FREE_FTP_VER
  102. echo
  103. echo EFT Server - $EFT_SERVER_VER
  104. echo
  105. echo IIS - $IIS_VER
  106. echo
  107. echo Raiden FTP - $RAIDEN_FTP_VER build $RAIDEN__FTP_REVIS_VER
  108. echo
  109. echo
  110. echo "###Console/terminal-based FTP###"
  111. echo
  112. echo
  113. echo Apache_FTP_server - $APACHE_FTP_SERVER_VER
  114. echo
  115. echo CrushFTP_SERVER - $CrushFTP_SERVER_VER
  116. echo
  117. echo glFTPd - $glFTPd_VER
  118. echo
  119. echo Proftpd - $PROFTPD_VER
  120. echo
  121. echo PureFTP - $PureFTP_VER
  122. echo
  123. echo SlimFTPd - $SlimFTPd_VER
  124. echo
  125. echo MuddleFTPd - $MuddleFTPd_VER
  126. echo
  127. echo Publicfile - $Publicfile_VER
  128. echo
  129. echo Vsftpd - $Vsftpd_VER
  130. echo
  131. echo Wu-ftdp - $Wu_ftpd_VER
  132. echo
  133.  
  134. #EOF
Advertisement
Add Comment
Please, Sign In to add comment