mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-07-16 10:03:04 -07:00
Update PAXTON_NET.py
Signed-off-by: Jarek Barwinski <116510448+jareckib@users.noreply.github.com>
This commit is contained in:
parent
989b595119
commit
e8c1ecf1ba
1 changed files with 19 additions and 3 deletions
|
@ -1,5 +1,21 @@
|
||||||
# Author - Jareckib
|
# paxton_net.py - Convert Paxton Net2 to EM4102
|
||||||
# Based on Equipter's tutorial - Downgrade Paxton Net to EM410x
|
# 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
|
import sys
|
||||||
def hex_to_bin(hex_string):
|
def hex_to_bin(hex_string):
|
||||||
return ''.join(format(byte, '08b') for byte in bytearray.fromhex(hex_string))
|
return ''.join(format(byte, '08b') for byte in bytearray.fromhex(hex_string))
|
||||||
|
@ -66,4 +82,4 @@ try:
|
||||||
print('Result (Net2 ID - hex): {}'.format(padded_hex_id))
|
print('Result (Net2 ID - hex): {}'.format(padded_hex_id))
|
||||||
print('Use the following command in Proxmark3: lf em 410x clone --id {}'.format(padded_hex_id))
|
print('Use the following command in Proxmark3: lf em 410x clone --id {}'.format(padded_hex_id))
|
||||||
except ValueError as e:
|
except ValueError as e:
|
||||||
print(e)
|
print(e)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue