#!/usr/bin/env python3

from libraries.sshConnector import SSHConnector
import argparse

if __name__ == "__main__":
    try:
        connector = SSHConnector('192.168.0.19', 'lab', 'lab')
        print(
            "[+] Connection Established, type a command or 'close' to finish the operation")
        command = ""
        while command != "close":
            command = input("Command: ")
            try:
                connector.sendCommand(command)
            except Exception as ex:
                print("[-] Error issuing command, try again")
    except Exception as ex:
        print('[-] Paramiko setup/connection failed: {0}'.format(ex))
