[*] -  SecureInfo.eu, /CTF/intruded-net_leviathan/leviathan

Back



#!/usr/bin/expect -f
set timeout 10

spawn ssh level1@leviathan.intruded.net -p 10101
expect {
 "assword:" {send "leviathan\r"}
 "yes/no" {send "yes\r";exp_continue}
}
expect "$"
send "ssh level2@localhost\r"
expect {
 "assword:" {send "vFPMNdI0\r"}
 "yes/no" {send "yes\r";exp_continue}
}
expect "$"
send "ssh level3@localhost\r"
expect {
 "assword:" {send "oc7vaCOg\r"}
 "yes/no" {send "yes\r";exp_continue}
}
expect "$"
send "ssh level4@localhost\r"
expect {
 "assword:" {send "R0gBtSP5\r"}
 "yes/no" {send "yes\r";exp_continue}
}
expect "$"
send "ssh level5@localhost\r"
expect {
 "assword:" {send "Dx08I4vD\r"}
 "yes/no" {send "yes\r";exp_continue}
}
expect "$"
send "ssh level6@localhost\r"
expect {
 "assword:" {send "6lyvLXCA\r"}
 "yes/no" {send "yes\r";exp_continue}
}
expect "$"
send "ssh level7@localhost\r"
expect {
 "assword:" {send "X98ZdPfp\r"}
 "yes/no" {send "yes\r";exp_continue}
}
expect "$"
send "ssh level8@localhost\r"
expect {
 "assword:" {send "FsnC0xl7\r"}
 "yes/no" {send "yes\r";exp_continue} 
}
expect "$"
send "cat CON*"

interact +++ return

⬆️ Top
admin