def category(category):
 return {'0': '0', '1': 'phishing', '2': 'webattack', '3': 'infectious', '4': 'payloads', '5': 'mailer', '6': 'arduino', '7': 'sms', '8': 'wireless', '9': 'modules', '10': 'cloner', '11': 'harvester', '12': 'tabnapping', '13': 'teensy', '14': 'binary2teensy', '15': 'dll_hijacking', '16': 'multiattack', '17': 'java_applet', '18': 'encoding', '19': 'fasttrack', '20': 'autopwn', '21': 'mssql', '22': 'scan', '23': 'direct', '24': 'exploits', '25': 'active_target', '26': 'shell', '27': 'set', '28': 'teensy2powershell', '29': 'powershell', '30': 'delldrac', '31': 'ridenum', '32': 'psexec', '33': 'fsattack'}.get(category, 'ERROR')

def category ( category ) : return { '0' : '0' , '1' : 'phishing' , '2' : 'webattack' , '3' : 'infectious' , '4' : 'payloads' , '5' : 'mailer' , '6' : 'arduino' , '7' : 'sms' , '8' : 'wireless' , '9' : 'modules' , '10' : 'cloner' , '11' : 'harvester' , '12' : 'tabnapping' , '13' : 'teensy' , '14' : 'binary2teensy' , '15' : 'dll_hijacking' , '16' : 'multiattack' , '17' : 'java_applet' , '18' : 'encoding' , '19' : 'fasttrack' , '20' : 'autopwn' , '21' : 'mssql' , '22' : 'scan' , '23' : 'direct' , '24' : 'exploits' , '25' : 'active_target' , '26' : 'shell' , '27' : 'set' , '28' : 'teensy2powershell' , '29' : 'powershell' , '30' : 'delldrac' , '31' : 'ridenum' , '32' : 'psexec' , '33' : 'fsattack' } . get ( category , 'ERROR' )
takes the value sent from the user encoding menu and returns the actual value to be used .