12 lines
293 B
Plaintext
Executable File
12 lines
293 B
Plaintext
Executable File
#!/usr/bin/expect -f
|
|
set timeout 30
|
|
spawn ssh root@124.221.67.199
|
|
expect "password:"
|
|
send "Szgt888.\r"
|
|
expect "\\$"
|
|
set payload [exec base64 -i scripts/fix-nginx-final.sh]
|
|
send "echo '$payload' | base64 -d > /tmp/fix-final.sh && bash /tmp/fix-final.sh\r"
|
|
expect "\\$"
|
|
send "exit\r"
|
|
expect eof
|