bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: version 3.2.39 radically differs from 3.2.48


From: valerij_rozouvan
Subject: Re: version 3.2.39 radically differs from 3.2.48
Date: Sun, 17 May 2009 11:19:26 -0700 (PDT)


Pierre Gaston wrote:
> 
> On Wed, May 13, 2009 at 11:44 PM, valerij_rozouvan <
> valerij.rozouvan@gmail.com> wrote:
> 
>>
>> Hi all,
>>
>> The malfunctioning script can be found here (a copy is at the bottom of
>> this
>> message), along with the information about the system and versions of
>> software that I am using:
>>
>> http://forums.debian.net/viewtopic.php?t=39032
>>
>> Please help me figure out what changed in Bash - my script does not run
>> correctly with the new version.
>>
>> Thank you,
>> Valerij Rozouvan
>>
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>
>>    #!/bin/sh
>>    # ./how_fast
>>
>>    do_run ()
>>    {
>>        rm --force file_to_enc.zip
>>        zip -P "$1" -e -q file_to_enc.zip file_to_enc
>>        fcrackzip --brute-force --charset aA1 --length 4 --method zip6
>> --use-unzip file_to_enc.zip
>>        rm --force file_to_enc.zip
>>    }
>>
>>    passowrds=(3Qv1 d0Va 94z1 yH35 elB1 94ZJ Lzd3 U0Yn 51Kr F2Q9)
>>
>>    rm --force file_to_enc
>>
>>    echo "eajGaylXnSNRKXvuegHLNcKPUwYRFBiRLBvV7RRsJEkszNUN2ByPNgDGKzxpbNf"
>> >
>> file_to_enc
>>    echo "R7zhSwlRFPxTXp9BUXtAA8MCZFTsEHkvOTMFq5u3V1WQq3rj1UTz0D9Xj3oXIIq"
>> >> file_to_enc
>>    echo "xAaaYfE18GWY4ZpnYheyfSHbbIz6rfwWPE6LRIL0oHWrEmMDB1bPTQ04zz8YMCU"
>> >> file_to_enc
>>    echo "CgYl7G653L2uqmg1VfcK80Iazhgv2SnC6lXc02h3LhvbBJcxZmh7nYgUdwofpLR"
>> >> file_to_enc
>>    echo "t7PF7PV8AcDKOmUllhArCyHuKbSZAER2JGHQtCY3PzNBVIUhXsIxZn1JySI7wz9"
>> >> file_to_enc
>>    echo "ddQ3GtZIgyvPrbJI8boD8LFRkxAp17yejmfZNcH3IbQ9mzQtJe6R0JHiefHdmdr"
>> >> file_to_enc
>>    echo "FzEDnQiowrfEMMudvIjlG12YfhDtBQSfqvQLl69Qyouk9YxEEOXlNXh1cVsOLk1"
>> >> file_to_enc
>>    echo "9PRU9X2XtorNxnic157kS5CThxj3gE4orTiyPiviHU4efkohpwBgBb7QIrUX3Wl"
>> >> file_to_enc
>>    echo "sOB1BUuTBnVPCecRBIrPhCX7jmZgpUBPIaOj4jaDE4reiD6RjvHA5EFoYFClzda"
>> >> file_to_enc
>>    echo "fmZwogG2SIr604aSnFxVLbA77dKsKVCZhzvGNaGFS7MRbWHwAeplpZsubcWV6wV"
>> >> file_to_enc
>>    echo "n6o3TyJzpQjgZdXtNbS6yQx21HYWNuPbyecqKUX9IgpItk9fv2l3SS3TAZNnsDw"
>> >> file_to_enc
>>    echo "0PJqzDnHlB413pbiSdDU3uXU4XHppkWn7FOFg9mzJoBMLK4EVFwY9tQdoxBLQx9"
>> >> file_to_enc
>>    echo "XaVCo2WXLlwx6gzI9fe5mGVy4t9QjEXgOSRaSN5E8C9dQJT0W83iOZOQqXEJBBX"
>> >> file_to_enc
>>    echo "nrMxkADWGd5T1MNZGT3XH2LvsJa9iL4EbR9trKn7XsZXdKWRDZOkZANphXwxHzb"
>> >> file_to_enc
>>    echo "QqljP3GU16RYhBS9eQVwNtkdIhHgWgpMGI5tMJoLQfH5Pze3p8AdBSok95y6kXS"
>> >> file_to_enc
>>    echo "YEWsqFObt1SzQpLSNTsYtkmNrplvJgmIUi8kVWtpVjWMJHEuz4s2mMNNb6hTmDz"
>> >> file_to_enc
>>
>>    c1=1
>>
>>    for pass in ${passowrds[*]}
>>    do
>>        echo "[${c1}/10] Doing pass with \"${pass}\" password"
>>        do_run "$pass"
>>        c1=$((c1+1))
>>    done
>>
>>    rm --force file_to_enc
>>
>>    exit 0
> 
> 
> I would bet on different versions of the other tools used in your script,
> since bash doesn't ask for passwords.
> 
> Put set -x at the top of your script and see what is really executed.
> 
> (btw the correct way to iterate over elements of an array is:  for pass in
> "${passwords[@]}" )
> 
> 
> 
>> --
>> View this message in context:
>> http://www.nabble.com/version-3.2.39-radically-differs-from-3.2.48-tp23529611p23529611.html
>> Sent from the Gnu - Bash mailing list archive at Nabble.com.
>>
>>
>>
>>
> 
> 

Thanks. I have found the bug. I use "-P" and "-e" options at the same time.

By the way, zip provides the "-P" option even in version 3.0
http://hpux.connect.org.uk/hppd/hpux/Misc/zip-3.0/man.html
-- 
View this message in context: 
http://www.nabble.com/version-3.2.39-radically-differs-from-3.2.48-tp23529611p23583284.html
Sent from the Gnu - Bash mailing list archive at Nabble.com.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]