# Yet Another Cisco Type 7 Password Decryptor # c0de - aTxIvG4001 # Main Decrypt Function (One Line) decrypt=lambda x:''.join([chr(int(x[i:i+2],16)^ord('dsfd;kfoA,.iyewrkldJKDHSUBsgvca69834ncxv9873254k;fg87'[(int(x[:2])+i/2-1)%53]))for i in range(2,len(x),2)]) # #### TESTS ###### print decrypt("121A0C041104") #cisco print decrypt("06150E2F4A5C0817") #sanfran print decrypt("1306181D000E0B2520") #cookbook print decrypt("070033494705151C") #oreilly # very long password ("asdf"*57) print decrypt("12181613140A1F002C2A372C353431170117100550584B57520F10" "1C10584B53555346500D5A15035E5617170005480F000E324848080A0111131808022B38202E3226" "261506050707574A5C55551D071E174A5C51524151520A4802015944001507175F0D071C254A4F1A" "1D0316010F0A05392F22292031241214120500455D5E52470A0519055D5E5640565355185F00064B" "53021215005D0A150B274D5D0D1F0404160D0D172E2D253B3733230003100212525F59405008020B" "125F5944575454470F5D07145C51050002025A180209205F4A0F181613140A1F002C2A372C3534311701")