コード例 #1
0
 def main(self):
     if self.a.install:
         i = Install()
         i.install()
     if self.a.uninstall:
         i = Install()
         i.uninstall()
         exit("Uninstall Complete")
     if not self.a.filename:
         self.a.filename = "passwords.txt"
     if self.a.ssid or self.a.password:
         self.add_to_list(self.a.filename, self.a.ssid, self.a.password)
     w = Wifi()
コード例 #2
0
# -------------------------------- Procedural --------------------------------

args = processArguments()

if args.version:  # prints program legal / dev / version info
    print("Current Version: " + VERSION)
    print("Author: K4YT3X")
    print("License: GNU GPL v3")
    print("Github Page: https://github.com/K4YT3X/DefenseMatrix")
    print("Contact: [email protected]")
    print()
    exit(0)

if os.getuid() != 0:
    avalon.error("This app requires root privilege to run!")
    exit(0)


try:
    if args.install:
        installer = Install()
        installer.install()
    elif args.uninstall:
        uninstaller = Install()
        uninstaller.uninstall()
    elif args.audit:
        securityAudit.audit()
except KeyboardInterrupt:
    avalon.warning("Aborting")