How fast is your computer ^_^

If it doesn't relate to Debian, but you still want to share it, please do it here
Post Reply
Message
Author
User avatar
valerij
Posts: 51
Joined: 2007-06-29 21:05
Location: Kiev, Ukraine

How fast is your computer ^_^

#1 Post by valerij »

Having nothing better to do, here is what I came up with. As a side effect, it show how insignificant 4 letter zip passwords are.

Code: Select all

#!/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
How to use this (example script name: "how_fast")

1.) Save to /home/some_folder
2.) Open a terminal
3.) $ sudo aptitude install zip unzip fcrackzip
3.) $ cd /home/some_folder
4.) $ chmod u+x how_fast
5.) $ time ./how_fast

My results:

Code: Select all

$ time ./how_fast 
[1/10] Doing pass with "3Qv1" password


PASSWORD FOUND!!!!: pw == 3Qv1
[2/10] Doing pass with "d0Va" password


PASSWORD FOUND!!!!: pw == d0Va
[3/10] Doing pass with "94z1" password


PASSWORD FOUND!!!!: pw == 94z1
[4/10] Doing pass with "yH35" password


PASSWORD FOUND!!!!: pw == yH35
[5/10] Doing pass with "elB1" password


PASSWORD FOUND!!!!: pw == elB1
[6/10] Doing pass with "94ZJ" password


PASSWORD FOUND!!!!: pw == 94ZJ
[7/10] Doing pass with "Lzd3" password


PASSWORD FOUND!!!!: pw == Lzd3
[8/10] Doing pass with "U0Yn" password


PASSWORD FOUND!!!!: pw == U0Yn
[9/10] Doing pass with "51Kr" password


PASSWORD FOUND!!!!: pw == 51Kr
[10/10] Doing pass with "F2Q9" password


PASSWORD FOUND!!!!: pw == F2Q9

real    55m48.418s
user    7m25.024s
sys     8m48.913s
Relevant system specs:
-> Intel Core 2 Duo E4400 / 2 GHz processor
-> 1024 mb RAM

Software versions:

Code: Select all

$ uname -a
Linux hurtling-tangle 2.6.26-1-686 #1 SMP Fri Mar 13 18:08:45 UTC 2009 i686 GNU/Linux
$ zip -v
Copyright (c) 1990-2006 Info-ZIP - Type 'zip "-L"' for software license.
This is Zip 2.32 (June 19th 2006), by Info-ZIP.
Currently maintained by Onno van der Linden. Please send bug reports to
the authors using http://www.info-zip.org/zip-bug.html; see README for details.

Latest sources and executables are at ftp://ftp.info-zip.org/pub/infozip,
as of above date; see http://www.info-zip.org/ for other sites.

Compiled with gcc 4.1.2 20060613 (prerelease) (Debian 4.1.1-5) for Unix (Linux ELF) on Jul  6 2006.
...
$ unzip -v
UnZip 5.52 of 28 February 2005, by Debian. Original by Info-ZIP.

Latest sources and executables are at ftp://ftp.info-zip.org/pub/infozip/ ;
see ftp://ftp.info-zip.org/pub/infozip/UnZip.html for other sites.

Compiled with gcc 4.3.1 for Unix (Linux ELF) on Jul 26 2008.
...
$ fcrackzip --version
fcrackzip version 0.3
Have fun ^_^

User avatar
987687
Posts: 2121
Joined: 2007-06-11 10:58
Location: Vacation Land

Re: How fast is your computer ^_^

#2 Post by 987687 »

It asks me for a password for each pass :/
And I'm to lazy to figure out what is wrong with the script.
Desktop - 3.2GHz core2 quad
Laptop - 2.4GHz core2 duo ancient macbook
Bring back the penguin!! http://tinyurl.com/d57jwv

User avatar
mauser1891
Posts: 87
Joined: 2007-07-22 04:45
Location: Western WA, USA

Re: How fast is your computer ^_^

#3 Post by mauser1891 »

Hello,

<humor>
I haven't thrown it accross the room since Windows.
</humor>

I couldn't resist.
Thank You,
Mauser1891

AMD A6-3400M 8G DDR3 Samsung EVO 120 powered Gateway laptop
FX-8350, 7970, 32G DDR3, 8G RamDisk/SSD/SSHD/HD, Win 8.1 Pro desktop

User avatar
valerij
Posts: 51
Joined: 2007-06-29 21:05
Location: Kiev, Ukraine

Re: How fast is your computer ^_^

#4 Post by valerij »

It asks me for a password for each pass :/
Strange. It works fine on my computer. I guess the reason is that we are probably using different versions of zip/unzip ... Or maybe our bash differ ...

Code: Select all

$ bash --version
GNU bash, version 3.2.39(1)-release (i486-pc-linux-gnu)
Copyright (C) 2007 Free Software Foundation, Inc.

User avatar
987687
Posts: 2121
Joined: 2007-06-11 10:58
Location: Vacation Land

Re: How fast is your computer ^_^

#5 Post by 987687 »

Code: Select all

bash --version
GNU bash, version 3.2.48(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2007 Free Software Foundation, Inc.
Desktop - 3.2GHz core2 quad
Laptop - 2.4GHz core2 duo ancient macbook
Bring back the penguin!! http://tinyurl.com/d57jwv

User avatar
valerij
Posts: 51
Joined: 2007-06-29 21:05
Location: Kiev, Ukraine

Re: How fast is your computer ^_^

#6 Post by valerij »

OK. I have checked the version history of Bash, and clearly see that the problem does not lie in some inner mechanism changes. Also, I checked that the "-P" option of ZIP is present in the latest ZIP release - and it is.

Therefore, the problem then lies in my script.
Re: How fast is your computer ^_^

Post by 987687 » 2009-05-13 03:16
It asks me for a password for each pass :/
And I'm to lazy to figure out what is wrong with the script.
987687 please help me solve this problem. I ask that you run a slightly modified version of the script - with "set -x" just below the #!/bin/sh line, AND paste the output here. Please!

Code: Select all

#!/bin/sh
set -x

do_run ()
{
...
set -> Manipulate shell variables and functions.
set -x -> Prints a trace of simple commands and their arguments after they are expanded and before they are executed.

Thanks in advance!

User avatar
valerij
Posts: 51
Joined: 2007-06-29 21:05
Location: Kiev, Ukraine

Re: How fast is your computer ^_^

#7 Post by valerij »

OK. Never mind. Silly me. I have found the error.

Code: Select all

...
    zip -P "$1" -e -q file_to_enc.zip file_to_enc
...
As you can see "-P" provides the password, and "-e" asks for a password on a terminal! I guess different version of zip interpret such parameters differently...

Anyways, if anyone cares, here is the correct-and-updated script:

Code: Select all

#!/bin/sh

do_run ()
{
    zip -P "${1}" -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 -n "[${c1}/10] Doing pass with \"${pass}\" password"
    do_run "${pass}"
    c1=$((${c1}+1))
done

rm --force file_to_enc

exit 0

User avatar
987687
Posts: 2121
Joined: 2007-06-11 10:58
Location: Vacation Land

Re: How fast is your computer ^_^

#8 Post by 987687 »

Code: Select all

time ./how_fast
[1/10] Doing pass with "3Qv1" passwordunable to read image width
no usable files found
[2/10] Doing pass with "d0Va" passwordunable to read image width
no usable files found
[3/10] Doing pass with "94z1" passwordunable to read image width
no usable files found
[4/10] Doing pass with "yH35" passwordunable to read image width
no usable files found
[5/10] Doing pass with "elB1" passwordunable to read image width
no usable files found
[6/10] Doing pass with "94ZJ" passwordunable to read image width
no usable files found
[7/10] Doing pass with "Lzd3" passwordunable to read image width
no usable files found
[8/10] Doing pass with "U0Yn" passwordunable to read image width
no usable files found
[9/10] Doing pass with "51Kr" passwordunable to read image width
no usable files found
[10/10] Doing pass with "F2Q9" passwordunable to read image width
no usable files found

real    0m0.061s
user    0m0.006s
sys     0m0.026s
Desktop - 3.2GHz core2 quad
Laptop - 2.4GHz core2 duo ancient macbook
Bring back the penguin!! http://tinyurl.com/d57jwv

User avatar
BioTube
Posts: 7551
Joined: 2007-06-01 04:34

Re: How fast is your computer ^_^

#9 Post by BioTube »

Code: Select all

time ./speedtest.sh
./speedtest.sh: 10: Syntax error: "(" unexpected
./speedtest.sh  0.00s user 0.00s system 105% cpu 0.002 total
Watch those bashisms. :wink:
Image
Ludwig von Mises wrote:The elite should be supreme by virtue of persuasion, not by the assistance of firing squads.

User avatar
valerij
Posts: 51
Joined: 2007-06-29 21:05
Location: Kiev, Ukraine

Re: How fast is your computer ^_^

#10 Post by valerij »

Alright. I am obviously missing something here. But I refuse to give up, dismissing this as a trivial version incompatibility. Below is a slightly modified script, which will help to "debug" the problem. It will test various things along the way.

Code: Select all

#!/bin/sh

# export PS4='(${BASH_SOURCE}:${LINENO}): ${FUNCNAME[0]}\n'
# set -x

error_exit()
{
    echo "${1}"
    exit 1
}

do_run ()
{
    rm --force file_to_enc.zip
    zip -P "${1}" -q file_to_enc.zip file_to_enc

    echo "######################## file_to_enc.zip sanity checks ########################"
    
    if [[ -e file_to_enc.zip ]];
    then
	echo "file_to_enc.zip exists!"
    else
	error_exit "ERROR: file_to_enc.zip does not exists!"
    fi;
    
    if [[ -r file_to_enc.zip ]];
    then
	echo "file_to_enc.zip is readable!"
    else
	error_exit "ERROR: file_to_enc.zip is not readable!"
    fi;
    
    if [[ -w file_to_enc.zip ]];
    then
	echo "file_to_enc.zip is writable!"
    else
	error_exit "ERROR: file_to_enc.zip is not writable!"
    fi;
    
    echo
    echo

    fcrackzip --brute-force --charset aA1 --length 4 --method zip6 --use-unzip file_to_enc.zip
    rm --force file_to_enc.zip
}

echo "######################## Tools sanity checks ########################"

sh --version | grep -i -q bash || error_exit "ERROR: GNU bash not found!"
zip -v | grep -i -q info || error_exit "ERROR: Info-ZIP not found!"
fcrackzip --version | grep -i -q fcrackzip || error_exit "ERROR: fcrackzip not found!"

echo "All tools (bash, zip, fcrackzip) seem to be OK!"

echo
echo

echo "######################## Directory sanity checks ########################"

if [[ -e `pwd` ]];
then
    echo "`pwd` exists!"
else
    error_exit "ERROR: `pwd` does not exists!"
fi;

if [[ -d `pwd` ]];
then
    echo "`pwd` is a directory!"
else
    error_exit "ERROR: `pwd` is not a directory!"
fi;

if [[ -r `pwd` ]];
then
    echo "`pwd` is readable!"
else
    error_exit "ERROR: `pwd` is not readable!"
fi;

if [[ -w `pwd` ]];
then
    echo "`pwd` is writable!"
else
    error_exit "ERROR: `pwd` is not writable!"
fi;

echo
echo

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

echo "######################## file_to_enc sanity checks ########################"

if [[ -e file_to_enc ]];
then
    echo "file_to_enc exists!"
else
    error_exit "ERROR: file_to_enc does not exists!"
fi;

if [[ -r file_to_enc ]];
then
    echo "file_to_enc is readable!"
else
    error_exit "ERROR: file_to_enc is not readable!"
fi;

if [[ -w file_to_enc ]];
then
    echo "file_to_enc is writable!"
else
    error_exit "ERROR: file_to_enc is not writable!"
fi;

echo
echo

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
Please paste the output of your "error messages" here. You will be very helpful ^_^

User avatar
987687
Posts: 2121
Joined: 2007-06-11 10:58
Location: Vacation Land

Re: How fast is your computer ^_^

#11 Post by 987687 »

Code: Select all

######################## Tools sanity checks ########################
All tools (bash, zip, fcrackzip) seem to be OK!


######################## Directory sanity checks ########################
/home/chris/bin exists!
/home/chris/bin is a directory!
/home/chris/bin is readable!
/home/chris/bin is writable!


######################## file_to_enc sanity checks ########################
file_to_enc exists!
file_to_enc is readable!
file_to_enc is writable!


[1/10] Doing pass with "3Qv1" password
######################## file_to_enc.zip sanity checks ########################
file_to_enc.zip exists!
file_to_enc.zip is readable!
file_to_enc.zip is writable!


unable to read image width
no usable files found
[2/10] Doing pass with "d0Va" password
######################## file_to_enc.zip sanity checks ########################
file_to_enc.zip exists!
file_to_enc.zip is readable!
file_to_enc.zip is writable!


unable to read image width
no usable files found
[3/10] Doing pass with "94z1" password
######################## file_to_enc.zip sanity checks ########################
file_to_enc.zip exists!
file_to_enc.zip is readable!
file_to_enc.zip is writable!


unable to read image width
no usable files found
[4/10] Doing pass with "yH35" password
######################## file_to_enc.zip sanity checks ########################
file_to_enc.zip exists!
file_to_enc.zip is readable!
file_to_enc.zip is writable!


unable to read image width
no usable files found
[5/10] Doing pass with "elB1" password
######################## file_to_enc.zip sanity checks ########################
file_to_enc.zip exists!
file_to_enc.zip is readable!
file_to_enc.zip is writable!


unable to read image width
no usable files found
[6/10] Doing pass with "94ZJ" password
######################## file_to_enc.zip sanity checks ########################
file_to_enc.zip exists!
file_to_enc.zip is readable!
file_to_enc.zip is writable!


unable to read image width
no usable files found
[7/10] Doing pass with "Lzd3" password
######################## file_to_enc.zip sanity checks ########################
file_to_enc.zip exists!
file_to_enc.zip is readable!
file_to_enc.zip is writable!


unable to read image width
no usable files found
[8/10] Doing pass with "U0Yn" password
######################## file_to_enc.zip sanity checks ########################
file_to_enc.zip exists!
file_to_enc.zip is readable!
file_to_enc.zip is writable!


unable to read image width
no usable files found
[9/10] Doing pass with "51Kr" password
######################## file_to_enc.zip sanity checks ########################
file_to_enc.zip exists!
file_to_enc.zip is readable!
file_to_enc.zip is writable!


unable to read image width
no usable files found
[10/10] Doing pass with "F2Q9" password
######################## file_to_enc.zip sanity checks ########################
file_to_enc.zip exists!
file_to_enc.zip is readable!
file_to_enc.zip is writable!


unable to read image width
no usable files found
Desktop - 3.2GHz core2 quad
Laptop - 2.4GHz core2 duo ancient macbook
Bring back the penguin!! http://tinyurl.com/d57jwv

User avatar
BioTube
Posts: 7551
Joined: 2007-06-01 04:34

Re: How fast is your computer ^_^

#12 Post by BioTube »

My computer sucketh:

Code: Select all

real    10m56.549s
user    3m4.871s
sys     6m45.751s
On a side note, I had to insert four characters to get your script to work("ba"x2).
Image
Ludwig von Mises wrote:The elite should be supreme by virtue of persuasion, not by the assistance of firing squads.

User avatar
987687
Posts: 2121
Joined: 2007-06-11 10:58
Location: Vacation Land

Re: How fast is your computer ^_^

#13 Post by 987687 »

BioTube wrote:My computer sucketh:

Code: Select all

real    10m56.549s
user    3m4.871s
sys     6m45.751s
On a side note, I had to insert four characters to get your script to work("ba"x2).
Where did you insert them?

If I ever get it to work on my system... can I divide by 4 because I have a quad core? :P
Desktop - 3.2GHz core2 quad
Laptop - 2.4GHz core2 duo ancient macbook
Bring back the penguin!! http://tinyurl.com/d57jwv

gnudude
Posts: 1712
Joined: 2009-04-05 17:30
Location: gone....

Re: How fast is your computer ^_^

#14 Post by gnudude »

bash

maybe?

User avatar
BioTube
Posts: 7551
Joined: 2007-06-01 04:34

Re: How fast is your computer ^_^

#15 Post by BioTube »

987687 wrote:If I ever get it to work on my system... can I divide by 4 because I have a quad core? :P
Probably more:

Code: Select all

% cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 15
model name      : Intel(R) Pentium(R) Dual  CPU  E2180  @ 2.00GHz
stepping        : 13
cpu MHz         : 1203.000
cache size      : 1024 KB
physical id     : 0
siblings        : 2
core id         : 0
cpu cores       : 2
apicid          : 0
initial apicid  : 0
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 10
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts pni dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm lahf_lm
bogomips        : 4000.07
clflush size    : 64
power management:
Just for reference, I use the ondemand governor.
Image
Ludwig von Mises wrote:The elite should be supreme by virtue of persuasion, not by the assistance of firing squads.

User avatar
987687
Posts: 2121
Joined: 2007-06-11 10:58
Location: Vacation Land

Re: How fast is your computer ^_^

#16 Post by 987687 »

Code: Select all

processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 23
model name      : Intel(R) Core(TM)2 Quad CPU    Q8300  @ 2.50GHz
stepping        : 10
cpu MHz         : 3000.000
cache size      : 2048 KB
physical id     : 0
siblings        : 4
core id         : 0
cpu cores       : 4
apicid          : 0
initial apicid  : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good pni dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm sse4_1 xsave lahf_lm
bogomips        : 6000.10
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:

processor       : 1
vendor_id       : GenuineIntel
cpu family      : 6
model           : 23
model name      : Intel(R) Core(TM)2 Quad CPU    Q8300  @ 2.50GHz
stepping        : 10
cpu MHz         : 3000.000
cache size      : 2048 KB
physical id     : 0
siblings        : 4
core id         : 3
cpu cores       : 4
apicid          : 3
initial apicid  : 3
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good pni dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm sse4_1 xsave lahf_lm
bogomips        : 6000.07
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:

processor       : 2
vendor_id       : GenuineIntel
cpu family      : 6
model           : 23
model name      : Intel(R) Core(TM)2 Quad CPU    Q8300  @ 2.50GHz
stepping        : 10
cpu MHz         : 3000.000
cache size      : 2048 KB
physical id     : 0
siblings        : 4
core id         : 2
cpu cores       : 4
apicid          : 2
initial apicid  : 2
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good pni dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm sse4_1 xsave lahf_lm
bogomips        : 6000.08
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:

processor       : 3
vendor_id       : GenuineIntel
cpu family      : 6
model           : 23
model name      : Intel(R) Core(TM)2 Quad CPU    Q8300  @ 2.50GHz
stepping        : 10
cpu MHz         : 3000.000
cache size      : 2048 KB
physical id     : 0
siblings        : 4
core id         : 1
cpu cores       : 4
apicid          : 1
initial apicid  : 1
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good pni dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm sse4_1 xsave lahf_lm
bogomips        : 6000.05
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:
it is currently encoding video, so it is running at max performance.

and yes, my 2.5 is running at 3000MHz :D
Desktop - 3.2GHz core2 quad
Laptop - 2.4GHz core2 duo ancient macbook
Bring back the penguin!! http://tinyurl.com/d57jwv

User avatar
valerij
Posts: 51
Joined: 2007-06-29 21:05
Location: Kiev, Ukraine

Re: How fast is your computer ^_^

#17 Post by valerij »

Post by gnudude » 2009-05-18 01:51
bash

maybe?
So it turns out the problem lies in the fact that most people have a different shell linked to /bin/sh. And here I thought that bash was the be-all and end-all. I have heard of ksh, ... are they that better than bash? Anyways, thanks for pointing this out to me.
Post by 987687 » 2009-05-18 01:45

If I ever get it to work on my system... can I divide by 4 because I have a quad core? :P
No. It will not be 4 times faster. The reason for this is because zip and fcrackzip are not written to utilize multi core processors. Now if I had written the script to launch 4 fcrackzipz at once, with different passwords, then on your machine it would take 4 times as fast. Maybe a bit slower.

User avatar
edbarx
Posts: 5411
Joined: 2007-07-18 06:19
Location: 35° 50 N, 14 º 35 E

Re: How fast is your computer ^_^

#18 Post by edbarx »

In most tasks usually attributable to computers, it is faster than me! :)
Debian == { > 30, 000 packages }; Debian != systemd
The worst infection of all, is a false sense of security!
It is hard to get away from CLI tools.

User avatar
987687
Posts: 2121
Joined: 2007-06-11 10:58
Location: Vacation Land

Re: How fast is your computer ^_^

#19 Post by 987687 »

valerij wrote:No. It will not be 4 times faster. The reason for this is because zip and fcrackzip are not written to utilize multi core processors. Now if I had written the script to launch 4 fcrackzipz at once, with different passwords, then on your machine it would take 4 times as fast. Maybe a bit slower.
That is my point exactly, if it was written properly it would go 4 times faster, therefor I should be able to divide by 4...
Desktop - 3.2GHz core2 quad
Laptop - 2.4GHz core2 duo ancient macbook
Bring back the penguin!! http://tinyurl.com/d57jwv

Post Reply