Initial commit

This commit is contained in:
Random936
2024-07-07 16:10:34 -07:00
commit 041360fef1
6 changed files with 730539 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
#!/usr/bin/expect -f
set user [lindex $argv 0]
set pass [lindex $argv 1]
set ip_addr [lindex $argv 2]
set new_pass [lindex $argv 3]
spawn ssh -o "StrictHostKeyChecking no" $user@$ip_addr passwd
expect "assword:"
send "$pass\r"
expect "Current password:"
send "$pass\r"
expect "password:"
send "$new_pass\r"
expect "password:"
send "$new_pass\r"
expect eof