Skip to content

Commit 3a46d5e

Browse files
committed
initial commit
expect script
1 parent 5ae36cb commit 3a46d5e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

solve.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/expect
2+
set cipher [lindex $argv 0]
3+
set password [lindex $argv 1]
4+
spawn openssl $cipher -d -a -in secret -out plaintext
5+
expect "decryption password:"
6+
send -- "$password\r"
7+
spawn "sh cat.sh"
8+
expect eof

0 commit comments

Comments
 (0)