예제 #1
0
                se.setOpc(int(t_email))
                se.setEmailAccount(email)
                se.setPassword(password)
                se.setTo(to)
                se.sendEmail(subject, msg)

            else:
                logging.warning("You have to add more parameters")
                print("[!] We need more parameters to send the email")

        elif data.opc == 6:
            sckt = Socket()

            sckt.setIP(data.ip)
            sckt.checkPortSocket(data.port)

        elif data.opc == 7:
            directory = os.getcwd()
            os.system(
                f"powershell -ExecutionPolicy ByPass ./DNS.ps1 -TargetFolder \"{directory}\""
            )

        else:
            logging.warning("You have to add a valid optiion")
            print("[!] Error")
            print("::: Probably you did not add any option or")
            print("::: this one does not exist.")

    else:
        logging.error("This type of cifrying does not exist", str(data.t_cifr))