MEWBIES@:  Facebook  Twitter  G+  YouTube  DeviantArt  Forum  Wall
 SHARE:
    ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
   ██                                                                       ██
  █▌         -   RAR - TEST & LIST FILE INFORMATION VIA SITE CMD   -         █▌
 █▌                                                                           █▌
 █                                                                            ▐▌ 
 █ Two scripts for users to use via a site cmd - one to retest the integrity  ▐▌
 █ of a rar set and another to list the details of the files contained within ▐▌
 █ a rar set including the compression. I've altered two scripts              ▐▌
 █ sitezipchk.sh  & siteziplist.sh (from glFTPd) to create these.             ▐▌
 █                                                                            ▐▌ 
 █ site rartest [rarname.rar] To re-test integrity of a rar set.              ▐▌
 █ site rardtl [rarname.rar] To list details of a rar set.                    ▐▌
 █                                                                            ▐▌
 █ These scripts are useful if you are packing on your server or sent rar     ▐▌
 █ files to the server that bypass the checking scripts. Furthermore some     ▐▌
 █ sites in certain sections require rars' compression to be at least m3,     ▐▌
 █ though m5e is respected more.                                              ▐▌
 █ If you want your bot to announce rar compression; view here.               ▐▌
 █ If you want auto nuke if rar compression is too low; view here.            ▐▌
 █                                                                            ▐▌
 █ RAR FILE SCRIPTS:                                                          ▐▌
 █ `````````````````                                                          ▐▌
 █ 1. Download from HERE, or:                                                 ▐▌
 █ cd ~                                                                       ▐▌
 █ wget http://mewbies.com/glftpd_scripts_mewbies/Rar.Test.and.List.for.glFTPd-MWB/mwbrtlg1.zipunzip mwbrtlg1.zip -d ~/mwbrtlg1 && cd mwbrtlg1                            ▐▌
 █                                                                            ▐▌
 █ 2. Check that the needed binaries are in glftpd/bin; find, echo, cut,      ▐▌
 █ bash, unzip, rar, unrar, & cat:                                            ▐▌
 █ su                                                                         ▐▌
 █ ls /jail/glftpd/bin/                                                       ▐▌
 █ Binaries that aren't on the reply/list copy over:                          ▐▌
 █ missing ones that I needed:                                                ▐▌
 █ cp /bin/echo /jail/glftpd/bin/echo                                         ▐▌
 █ cp /bin/rar /jail/glftpd/bin/rar                                           ▐▌
 █ cp /bin/unrar /jail/glftpd/bin/unrar                                       ▐▌
 █                                                                            ▐▌
 █ 3. Copy the new rar scripts to bin:                                        ▐▌
 █ cp rartest.sh /jail/glftpd/bin/rartest.sh                                  ▐▌
 █ cp rardtl.sh  /jail/glftpd/bin/rardtl.sh                                   ▐▌
 █                                                                            ▐▌
 █ 4. Set permissions to the binaries that you copied over and the scripts:   ▐▌
 █ cd /jail/glftpd/bin/                                                       ▐▌
 █ chmod 755 echo rar unrar rartest.sh rardtl.sh                              ▐▌
 █                                                                            ▐▌
 █ 5. Add the two scripts to glftpd.conf under the site_cmd section and under ▐▌
 █ custom so that users may use them then save changes:                       ▐▌
 █ pico /jail/glftpd/etc/glftpd.conf                                          ▐▌
 █ site_cmd RARTEST        EXEC    /bin/rartest.sh                            ▐▌
 █ site_cmd RARCHK         EXEC    /bin/rarchk.sh                             ▐▌
 █                                                                            ▐▌
 █ custom-rartest   !8 *                                                      ▐▌
 █ custom-rarchk   !8 *                                                       ▐▌
 █                                                                            ▐▌
 █ exit                                                                       ▐▌
 █                                                                            ▐▌
 █ 6. TEST:                                                                   ▐▌
 █ Logout of your glFTPd if logged in, then login again.                      ▐▌
 █ Change to the directory containing the rar you want to test, then issue,   ▐▌
 █ via site cmd, for example:                                                 ▐▌
 █ site rartest whatever.rar                                                  ▐▌
 █ site rardtl mewbies1.rar                                                   ▐▌
 █                                                                            ▐▌
 █ EXAMPLES OF THE REPLY:                                                     ▐▌
 █ site rartest mewbies.rar                                                   ▐▌
 █ mewbie's Rar Integrity Re-Tester altered from dn's ZIP Checker v1.00       ▐▌
 █ Testing mewbies.rar... OK                                                  ▐▌
 █ Command Successful.                                                        ▐▌
 █                                                                            ▐▌
 █ site rardtl mewbies.rar                                                    ▐▌
 █ mewbie's Rar Compression Tester altered from dn's ZIP Checker v1.00        ▐▌
 █ Recovery record is present                                                 ▐▌
 █ Pathname/Comment                                                           ▐▌
 █            Size   Packed Ratio  Date   Time     Attr      CRC   Meth Ver   ▐▌
 █            Host OS    Solid   Old                                          ▐▌
 █ -------------------------------------------------------------------------- ▐▌
 █  mewbies.iso                                                               ▐▌
 █        3309586432 49505921  --> 09-11-09 13:46  .....A.   96A170BC m3a 2.9 ▐▌
 █        Win95/NT       No   No                                              ▐▌
 █ Data header type: RR                                                       ▐▌
 █  RR                                                                        ▐▌
 █            493928   493928 100% 00-00-80 00:00   .....B   A9C10F20 m0a 2.9 ▐▌
 █             Win95/NT       No   No                                         ▐▌
 █ -------------------------------------------------------------------------- ▐▌
 █     1       3309586432 49505921   1%       volume 1                        ▐▌
 █ Command Successful.                                                        ▐▌
 █                                                                            ▐▌
 █ 7. ADD NEW CMD TO NEWS OR SITE HELP:                                       ▐▌
 █ SITE NEWS:                                                                 ▐▌
 █ pico /jail/glftpd/ftp-data/misc/newsfile                                   ▐▌
 █                                                                            ▐▌
 █ SITE HELP:                                                                 ▐▌
 █ pico /jail/glftpd/ftp-data/help/site.help.all                              ▐▌
 █ Paste this in (don't hit enter after the last line or there will be a gap):▐▌
!D!5   RARTEST!B!5:!h!5 To Re-Test Integrity of a rar set- site rartest <rarname.rar>
!D!5   RARCHK!B!5:!h!5 Compression & Files in a rar set- site rarchk <rarname.rar>
 █                                                                            ▐▌
 █ //----------------------------------------------------------------------   ▐▌
 █                                                                            ▐▌
 █ If you find mistakes, have suggestions, and or questions please post at    ▐▌
 █ mewbies forum HERE - thank you.                                            ▐▌
 █                                                                            ▐▌
 █ Last update on 18 Jun '10                                                  ▐▌
 █                                                                            ▐▌
 █▌                                                                           █▌
  █▌                          -   mewbies.com   -                            █▌
   █▌                                                                       █▌
    ██▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄██