-
[FIX] SSHatter
This fix is for SSHatter-0.6
It may not be the best way but it works ( I will show why in a bit)
OK first sshatter is located here
/Backtrack/Privilege Escalation/All/SSHatter
Or through the command line @
root@bt:/pentest/password/SSHatter-0.6/src#
First thing we need to do in order to get it to work is
install two perl modules
the first one is Parallel-ForkManager-0.7.5.tar.gz
I used wget
Code:
wget http://search.cpan.org/CPAN/authors/id/D/DL/DLUX/Parallel-ForkMa
nager-0.7.5.tar.gz
then
Code:
# tar -xvzf Parallel-ForkManager-0.7.5.tar.gz
Code:
# cd Parallel-ForkManager-0.7.5
At this point you should see something like this
Code:
Checking if your kit is complete...
Looks good
Writing Makefile for Parallel::ForkManager
Then do a
and
At this point you are done with ForkManager
The next part has more variables to it as noted above I followed the simplest route to get the program (sshatter) up and going.
The next module is Net::SSH::Perl
Now for this one I could not use wget for some reason it would not resolve properly but that doesn't matter.
Just download the link and save it to your system
I chose to save it under root (Linux purists I know that this is not the best place).
Next do
Code:
# tar xvzf Net-SSH-Perl-1.34.tar.gz
Next "cd" into the directory were ever you download to.
Then since you are in the directory it might be a good time to read the readme (nano README) there is a lot of good info about the different choices you can make. Again I took the path of least resistance ( after a previous failure)
At this point the makefile will start asking a bunch of questions
you have to decide what you want but I took
3 Both SSH1 and SSH2
Then 1 IDEA
Then no to BubbleBabble, no to Crypt::RSA.
At this point you should see the following
Code:
Writing Makefile for Net::SSH::Perl
Again if you choose the other options other dep's will be installed as well.
At this point you need to do a
Code:
# make && make test
Look for
Code:
All tests successful, 7
at the end and then
once the prompt returns you are finished with Net::SSH::Perl
EDIT: I did forget to add one thing in my fix above and for that I apologize.
You also need to add the perl module Time::HiRes modules.
This needs to be installed as well before using sshatter.
Just use perl Makefile.PL and follow the directions to install it once you have it downloaded.
That should totally fix the problems as I redid my steps and everything works fine now for me. Again I apologize for leaving this step out.
At this point we need to fix the menu link so that it will work
Right click on the icon and select edit item from the menu
then in the Work Path field enter
Code:
/pentest/password/SSHatter-0.6/src
Then in the command field add the following
Code:
echo;perl SSHatter.pl;sudo -s
Save and exit and you are finished.
-
apt-get / aptitude
Parallel-ForkManager can be found in the ubuntu package : libparallel-forkmanager-perl
$ aptitude install libparallel-forkmanager-perl
Ubuntu version of the package is 0.7.5-2
After trying out the fix you posted archangel.amael, I can execute 'perl SSHatter.pl' and things look OK. But when I try to fire it, it fails. Needing more perl modules from cpan... This was a rabbit hole, and I almost left it :)
I installed this from ubuntu repo:
$ aptitude install libcrypt-dh-perl libcrypt-des-perl
And got this from cpan:
wget search.cpan.org/CPAN/authors/id/T/TU/TURNSTEP/Net-SSH-Perl-1.34.tar.gz
I also installed Math-Pari-2.010801.tar.gz from cpan...
But ended no where... It still spits out :
root@bt:/pentest/password/SSHatter-0.6/src# perl SSHatter.pl 1 servers usernames passwords 1 1
[sshatter] trying root@remote-exploit.biz:22/1234
Math::BigInt: couldn't load specified math lib(s), fallback to Math::BigInt::FastCalc at /usr/share/perl5/Crypt/DH.pm line 6
[sshatter] root@remote-exploit.biz:22:8.3061 seconds elapsed
Net::SSH::Perl->cmd() failed: Key class 'Net::SSH::Perl::Key::DSA' is unsupported: Can't locate Crypt/DSA.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /usr/local/share/perl/5.10.0/Net/SSH/Perl/Key/DSA.pm line 14, <GEN0> line 1.
BEGIN failed--compilation aborted at /usr/local/share/perl/5.10.0/Net/SSH/Perl/Key/DSA.pm line 14, <GEN0> line 1.
Compilation failed in require at (eval 23) line 1, <GEN0> line 1.
BEGIN failed--compilation aborted at (eval 23) line 1, <GEN0> line 1.
Needs Crypt/DSA.pm...
$ wget search.cpan.org/CPAN/authors/id/B/BT/BTROTT/Crypt-DSA-0.14.tar.gz
$ perl Makefile.PL
And then it works... just with alot of :
Math::BigInt: couldn't load specified math lib(s), fallback to Math::BigInt::FastCalc at /usr/share/perl5/Crypt/DH.pm line 6
messages...
[sshatter] root@remote-exploit.biz:22:20.0879 seconds elapsed
[sshatter] root@remote-exploit.biz:22/Back|Track4:success
Just need to get Math::BigInt properly installed....
And I hate installing cpan modules.. to hard to keep them up todate :)
-
I am not sure what you did there but I did forget to add one thing in my fix above and for that I apologize.
You also need to add the perl module Time::HiRes modules.
This needs to be installed as well before using sshatter.
See 1st post again for info.
-
am stuck
i did everything as i see it on the post but i was not able to run this SSHatter.pl successfully then i run this
Code:
$ echo root > users
$ echo 127.0.0.1 > targets
That is how i stuck.. I just wanted to test with my own root password. But even when i try to test some servers saved in a file i still am not able to redirect it from my localhost. i keep this
Code:
[sshatter] trying alora@127.0.0.1:1080/1234
I direction will be appreciated.
-
SSHatter-1.0 do not work
hi all,
After install packages, creating files and etc, I got some messages I can fix:
perl SSHatter.pl -x 10 -t target_file -u users_file -p pass_file
I: 192.168.0.2:22
SSHatter::Exception::Host::Check::Net::SSH::Perl:: New at SSHatter.pl line 102.
I: 192.168.0.2:22 finished
any one have some idea to help me ?
well, I need explain that this is a lab environment ...