CptDondo <(E-Mail Removed)> writes:
> Unruh wrote:
>> Dave Uhring <(E-Mail Removed)> writes:
>>
>>> On Wed, 01 Aug 2007 21:07:45 +0000, joe t. wrote:
>>
>>>> Yeah, i know, it can't happen in Linux. But it has been happening to our
>>>> work servers for several months.
>>
>>> Sure it can. Most, probably all, Linux distros are shipped with
>>> *root* login enabled in sshd. If you expose such a system to the
>>> Internet you are almost certain to get successfully attacked.
>> Now that is nonesense. You will get attacked, but with a proper
>> password,
>> the guessing can go on forever.
>
> Not forever. I had a "strong password" on a system I installed. The
> sysadmin failed to notice an attack that started on a Friday
> afternoon; by Sunday the system had been compromised. The attack used
> a coordinated approach from compromised machines in Romania and Korea,
> mostly.
Either they got lucky or your password wasn't that strong.
Here's how I calculated it.
A strong password should be immunune to dictionary attacks. In such a
case, the number of possibilities in an exhaustive search assuming an
8-character password is (52+10+10)^8 = 7.2.E14 password guesses,
assuming 10 symbols are available in addition to 52 letters and 10 numbers.
Now let's assume the machine had a 100 Mbit/sec connection to the internet,
and let's assume that it takes 10 bytes to query and 10 bytes to respond
to the sshd server with a username/password. That means you can make
100E6 / (20*8) = 625000 username/password attempts per second.
Assume the password is guessed in 1/100 of the total possible
attempts. Then it would take
(7.22E14 / 100) [password guesses] * 1 sec / (625000 [password guesses])
= 133 days
to guess.
Have I reasoned something incorrectly? If anything, I think I erred
on the side of the hacker.
--
% Randy Yates % "Midnight, on the water...
%% Fuquay-Varina, NC % I saw... the ocean's daughter."
%%% 919-577-9882 % 'Can't Get It Out Of My Head'
%%%% <(E-Mail Removed)> % *El Dorado*, Electric Light Orchestra
http://home.earthlink.net/~yatescr