()
| 46 | |
| 47 | |
| 48 | def main(): |
| 49 | # xor key should be similar to the one in the C++ file(fud-uuid-shc.cpp). Please |
| 50 | # endeavour to change it!! |
| 51 | # Also the "file" opened by default is the file you supply at the command line |
| 52 | |
| 53 | # NOTE: You can port this class( XorCipher ) to your own scripts neatly. |
| 54 | try: |
| 55 | xor_crypt = XorCipher(filename=sys.argv[1], xor_key=KEY) |
| 56 | except IndexError: |
| 57 | print("[-] File argument needed! \n\t%s <file_to_xor_encrypt>" % |
| 58 | sys.argv[0], |
| 59 | file=sys.stderr) |
| 60 | sys.exit(1) |
| 61 | else: |
| 62 | xor_crypt.run() |
| 63 | |
| 64 | |
| 65 | if __name__ == "__main__": |
no test coverage detected