예제 #1
0
def first():
    title = ("Welcome to IMer V0.1")
    print(title.center(21, ))
    print("----------------------")
    password = str(raw_input("Please Enter The password for encryption -> "))
    #w = IMerEncryption.IMer_Encryption()
    #password = w.IMpassEnc(pass1)
    print("Starting initial OS detection")
    time.sleep(3)  #dramatic pause...
    if detect() == 1:
        print(linux())
        Servip = portfinder.find(readIp())
        if Servip:
            GUIClient.vp_start_gui(Servip, password)
        else:
            print("Server Not Found, generating one..")
            print(
                "Please Leave the window open and start another IMER session")
            print("NOTE--- you are now the sever DONOT close this window")
            time.sleep(2)
            import Imer_Server
            Serve = Imer_Server.IM_Server()
            Serve.listen(ip)

    else:
        Servip = portfinder.find(windows())
        if Servip:
            GUIClient.vp_start_gui(Servip, password)
        else:
            if Servip:
                GUIClient.vp_start_gui(Servip, password)
            else:
                print("Server Not Found, generating one..")
                print(
                    "Please Leave the window open and start another IMER session"
                )
                print("NOTE--- you are now the sever DONOT close this window")
                time.sleep(2)
                import Imer_Server
                Serve = Imer_Server.IM_Server()
                Serve.listen(ip)
예제 #2
0
파일: IMerMain.py 프로젝트: higharc91/IMer
def first():
    title = "Welcome to IMer V0.1"
    print(title.center(21))
    print("----------------------")
    print("Starting initial OS detection")
    time.sleep(3)  # dramatic pause...
    if detect() == 1:
        print(linux())
        Servip = portfinder.find(readIp())
        if Servip:
            IM = Imer_Client.IM_Client()
            IM().login(Servip)
        else:
            print("Server Not Found, generating one..")
            print("Please Leave the window open and start another IMER session")
            print("NOTE--- you are now the sever DONOT close this window")
            time.sleep(2)
            import Imer_Server

            Serve = Imer_Server.IM_Server()
            Serve.listen(ip)

    else:
        Servip = portfinder.find(windows())
        if Servip:
            IM = Imer_Client.IM_Client()
            IM().login(Servip)
        else:
            if Servip:
                IM = Imer_Client.IM_Client()
                IM().login(Servip)
            else:
                print("Server Not Found, generating one..")
                print("Please Leave the window open and start another IMER session")
                print("NOTE--- you are now the sever DONOT close this window")
                time.sleep(2)
                import Imer_Server

                Serve = Imer_Server.IM_Server()
                Serve.listen(ip)
예제 #3
0
def first ():
    title = ("Welcome to IMer V0.1")
    print(title.center(21,))
    print("----------------------")
    password = str(raw_input("Please Enter The password for encryption -> "))
    #w = IMerEncryption.IMer_Encryption()
    #password = w.IMpassEnc(pass1)
    print("Starting initial OS detection")
    time.sleep(3)        #dramatic pause...
    if detect() == 1:
        print(linux())
        Servip = portfinder.find(readIp())
        if Servip:
           GUIClient.vp_start_gui(Servip,password)
        else:
            print("Server Not Found, generating one..")
            print("Please Leave the window open and start another IMER session")
            print("NOTE--- you are now the sever DONOT close this window")
            time.sleep(2)
            import Imer_Server
            Serve = Imer_Server.IM_Server()
            Serve.listen(ip)

    else:
        Servip = portfinder.find(windows())
        if Servip:
            GUIClient.vp_start_gui(Servip,password)
        else:
            if Servip:
                GUIClient.vp_start_gui(Servip,password)
            else:
                print("Server Not Found, generating one..")
                print("Please Leave the window open and start another IMER session")
                print("NOTE--- you are now the sever DONOT close this window")
                time.sleep(2)
                import Imer_Server
                Serve = Imer_Server.IM_Server()
                Serve.listen(ip)