From f78ab02498e22b520fe54d73cf12aa63db30d5bb Mon Sep 17 00:00:00 2001 From: Jarek Barwinski <116510448+jareckib@users.noreply.github.com> Date: Fri, 31 Jan 2025 14:53:08 +0000 Subject: [PATCH] Update Paxton_switch.py Signed-off-by: Jarek Barwinski <116510448+jareckib@users.noreply.github.com> --- client/pyscripts/Paxton_switch.py | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/client/pyscripts/Paxton_switch.py b/client/pyscripts/Paxton_switch.py index df9ea2955..275e3c33f 100644 --- a/client/pyscripts/Paxton_switch.py +++ b/client/pyscripts/Paxton_switch.py @@ -1,5 +1,20 @@ -# Author - jareckib -# Based on Equipter's tutorial - Downgrade Paxton Switch2 to EM410x +# paxton_switch.py - Convert Paxton Switch2 to EM4102 +# Author jareckib +# Based on Equipter's tutorial - Downgrade Paxton Net to EM410x +# +# This code is copyright (c) jareckib, 2025, All rights reserved. +# For non-commercial use only, the following terms apply - for all other +# uses, please contact the author. +# +# This code is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This code is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. import sys def hex_to_bin(hex_string): return ''.join(format(byte, '08b') for byte in bytearray.fromhex(hex_string)) @@ -54,4 +69,4 @@ try: print('Switch2 ID - hex: {}'.format(padded_hex_id)) print('Use the following command in Proxmark3: lf em 410x clone --id {}'.format(padded_hex_id)) except ValueError as e: - print(e) \ No newline at end of file + print(e)