mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 02:27:26 -07:00
Update Paxton_switch.py
Signed-off-by: Jarek Barwinski <116510448+jareckib@users.noreply.github.com>
This commit is contained in:
parent
f1354e5715
commit
f78ab02498
1 changed files with 18 additions and 3 deletions
|
@ -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 <jareckib@hotmail.com>
|
||||
# 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)
|
||||
print(e)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue