@@ -0,0 +1,626 @@
+import subprocess%0A%0Afactoid = 'firmware_password_status'%0A%0Adef fact():%0A    '''Returns whether or not a firmware password is set'''%0A%0A    result = 'None'%0A%0A    try:%0A        proc = subprocess.Popen(%0A                %5B'/usr/sbin/firmwarepasswd', '-check'%5D,%0A                stdout=subprocess.PIPE,%0A                stderr=subprocess.PIPE%0A                )%0A        stdout, _ = proc.communicate()%0A    except (IOError, OSError):%0A        stdout = None%0A%0A    if stdout:%0A        result = True if stdout.split()%5B-1%5D == 'Yes' else False%0A%0A    return %7Bfactoid: result%7D%0A%0Aif __name__ == '__main__':%0A    print '%3Cresult%3E%25s%3C/result%3E' %25 fact()%5Bfactoid%5D%0A

Add firmware password status artifact