Forums: Looking For A Sshd Bruteforcer - Forums

Jump to content

  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

Looking For A Sshd Bruteforcer

#1 User is offline   EzMe 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 139
  • Joined: 03-March 04

Posted 03 November 2004 - 02:41 AM

I am looking for a sshd bruteforcer. I found one on http://www.k-otik.com but somehow i can't get it compiled :/

http://www.k-otik.co...brutessh2.c.php

[ezme@anonymous ezme]$ gcc brutessh2.c
brutessh2.c:24:27: libssh/libssh.h: No such file or directory
brutessh2.c:25:25: libssh/sftp.h: No such file or directory
brutessh2.c:41: parse error before '*' token
brutessh2.c: In function `shell':
brutessh2.c:46: `BUFFER' undeclared (first use in this function)
brutessh2.c:46: (Each undeclared identifier is reported only once
brutessh2.c:46: for each function it appears in.)
brutessh2.c:46: `readbuf' undeclared (first use in this function)
brutessh2.c:50: `CHANNEL' undeclared (first use in this function)
brutessh2.c:50: `channel' undeclared (first use in this function)
brutessh2.c:51: `session' undeclared (first use in this function)
brutessh2.c: In function `checkauth':
brutessh2.c:83: `SSH_SESSION' undeclared (first use in this function)
brutessh2.c:83: `session' undeclared (first use in this function)
brutessh2.c:84: `SSH_OPTIONS' undeclared (first use in this function)
brutessh2.c:84: `options' undeclared (first use in this function)
brutessh2.c:103: `AUTH_SUCCESS' undeclared (first use in this function)
[ezme@anonymous ezme]$


I'm pretty new to linux.. so I am willing to learn from it... Does somebody know how to fix it..? Or has somebody got an other scanner...? If so, I would like to take a look @ the source. Maybe there is a scanner that calls in a database of passwords?

Thank in advance..

Greats,

EzMe
0

#2 User is offline   belgther 

  • Master Sergeant
  • Icon
  • Group: Specialist
  • Posts: 650
  • Joined: 06-October 04

Posted 03 November 2004 - 05:24 AM

which linux version are you using?
or are you sure that you have installed ssh libraries?
you can update/reinstall your c libraries (glibc)... but don't forget to search for the missing files given in the error log... because it looks like these files have to be there if not you have to reinstall glibc
"The wisest one is the one who knows himself/herself." Quote of the life
belgther... aka... belgther
0

#3 User is offline   chrystalsky 

  • Private
  • Icon
  • Group: Members
  • Posts: 2
  • Joined: 14-October 04

Posted 03 November 2004 - 12:48 PM

Well, try installing SSH and then try to recompile. It should work then.
0

#4 User is offline   Tuned 

  • Private
  • Icon
  • Group: Members
  • Posts: 10
  • Joined: 26-September 04

Posted 03 November 2004 - 02:42 PM

you can use the passwddump file to get the hashes
0

#5 User is offline   EzMe 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 139
  • Joined: 03-March 04

Posted 03 November 2004 - 07:07 PM

belgther, on Nov 3 2004, 01:24 PM, said:

which linux version are you using?
or are you sure that you have installed ssh libraries?
you can update/reinstall your c libraries (glibc)... but don't forget to search for the missing files given in the error log... because it looks like these files have to be there if not you have to reinstall glibc


I was using RH9.0. Just had a major crash and hat to reinstall. Got Fedora Core 2 running now...

Im gonna try ur tips tnx :)

chrystalsky, on Nov 3 2004, 08:48 PM, said:

Well, try installing SSH and then try to recompile. It should work then.



Allready had sshd running :/
0

#6 User is offline   13055 

  • Private
  • Icon
  • Group: Members
  • Posts: 10
  • Joined: 03-November 04

Posted 04 November 2004 - 05:37 AM

The packet u need is called libssh.

I think u will find it with ur packet management system
0

#7 User is offline   d3rm03p3r 

  • Private
  • Icon
  • Group: Members
  • Posts: 3
  • Joined: 24-September 03

Posted 04 November 2004 - 06:28 AM

i'm not using rh, but it could also show up under ssh-devel... good luck
0

#8 User is offline   EzMe 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 139
  • Joined: 03-March 04

Posted 08 November 2004 - 07:22 AM

OK.. got it allmost sorted..


[ezme@localhost ezme]$ gcc -o brutessh2 brutessh2.c
brutessh2.c: In function `shell':
brutessh2.c:44: error: dereferencing pointer to incomplete type
[ezme@localhost ezme]$



Haven't got any clue.... :/


[edit] Got it compiled with cpp now.. it works.. tnx for the reply's :) [/edit]
0

#9 User is offline   hks-3207 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 106
  • Joined: 14-July 03

Posted 11 November 2004 - 07:51 AM

[quote=EzMe,Nov 3 2004, 03:41 AM]
I am looking for a sshd bruteforcer. I found one on http://www.k-otik.com but somehow i can't get it compiled :/

http://www.k-otik.co...brutessh2.c.php

[ezme@anonymous ezme]$ gcc brutessh2.c
brutessh2.c:24:27: libssh/libssh.h: No such file or directory
brutessh2.c:25:25: libssh/sftp.h: No such file or directory


Well man, first of all is that u need those libraries, then u need to try to compile it again
- WwW.JDMKingz.Com - :)
0

#10 User is offline   [_-ViCiOuS-_] 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 54
  • Joined: 12-October 04

Posted 17 December 2004 - 07:02 AM

?
its easy to compile this :D
download libssh
unpack and install libssh(hope you know how to :D )
then
<updatedb>
locate libssh.so
cp path/libssh.so /usr/lib/
gcc sshblaster2.c -o sshblaster2 -lssh

I dont know why so many guys have troubles to compile that
0

#11 Guest__celso__*

  • Group: Guests

Posted 30 December 2004 - 06:59 PM

libssh is available at http://www.0xbadc0de.be/libssh/ just untar (and ./configure make install) libssh in the same dir (it will create libssh dir) as sshbruteforce and it will compile ok.
0

#12 User is offline   Planquadrat 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 48
  • Joined: 16-December 03

Posted 15 January 2005 - 04:31 AM

last night me was boring and i wanted to test this brutssh on my sshd. i add my root login "checkauth("root","MYPASSWD",buff); " in the source and compile it without any problems. after than i've execute this one to get more infos how todo.

booster:~ >./brut
./bigssh <sship.txt>
by Zorg

now, i've stored my DNS IP , localhost in a sship.txt an exec. it again but nothing happen:

booster:~ >./brut sship.txt
nu pot deschide sship.txt <--- whatz that ???

what i've done wrong ? how must look sship.txt or is this brutssh only a fake and dosent really work.
0

#13 User is offline   thomas2342 

  • Private
  • Icon
  • Group: Members
  • Posts: 6
  • Joined: 17-September 04

Posted 16 January 2005 - 03:57 AM

see the source, luke.
0

#14 User is offline   fulvioo 

  • Staff Sergeant
  • Icon
  • Group: Specialist
  • Posts: 251
  • Joined: 27-March 04

Posted 16 January 2005 - 06:39 AM

Ok, bruteforce is lame.
This is a brazilian made script tested on slackware that blocks IPs that tried to bruteforce your computer using such scripts by iptables.

(I found interesting to put this code on this post) :P

#!/bin/sh
# Desenvolvido por Jos Roberto da Silva
# Testado no slackware 9 e 10.
#
####

tempip="/etc/rc.d/scripts/temp/blocked-ips.tmp";
blockip="/etc/rc.d/scripts/temp/blocked-ips";
script="/etc/rc.d/scripts/temp/fir_blocked";

# take all the IP that tried to bruteforce the users: guest/teste/admin (edit for your needs)

cat -n /var/log/messages | grep -P "(guest|test|admin|user)" | grep -i sshd | awk -F" " '{ print $11}' > $tempip;

# make a backupfaz of the blocked ips
if [ -f $blockip ]; then
  cat $blockip >> $tempip;      
fi

# remove double ips
sort -u $tempip | grep -v ^$ | grep -v user > $blockip;

# generates a script that blocks the IP trhough iptables
ips=$(cat $blockip); 
echo "iptables -F INPUT" > $script;
for ip in $ips; do
 blocked=("iptables -A INPUT -s $ip -j DROP")
 echo $blocked >> $script
done
chmod +x $script
$script

0

#15 User is offline   buzzons 

  • i wish i was admin
  • Icon
  • Group: Second Lieutenant
  • Posts: 1,817
  • Joined: 25-August 03

Posted 16 January 2005 - 10:36 AM

personaly, i think the problem is that hes running Fedora :P and not gentoo.. when will people learn ^_^
0

  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users

  • Share



Our Sponsors:


SwiftLayer Affiliate Web Hosting