Crack the punch-card system via http post.
-
Install
Python 3
(andGit
). -
Clone this repository, or download the source code.
-
Install
requests==2.28.1
andurllib3==1.26.13
. Here is a possible way:
pip install -r requirements.txt
Use your phone's NFC function to get your cardId
.
When you get your real card ID, you can calculate your cardId
(in system) by the following method:
- Divide each 2 hex digits into a group, and reverse the order of each group.
- Change it into Decimal.
- CardId:
07D72B1C
- Reverse each group:
1C2BD707
- Change it into Decimal:
472635143
So, cardId (in system) is 472635143
.
Definition: punchCard(CardId: str | int, DeviceId: str | int)
.
Create a example.py
like this:
from punch_crack import *
CardId = ""
DeviceId = ""
punchCard(CardId, DeviceId)
-
The
cardId
get it with the above. -
The
DeviceId
is the MAC address of your class computer. You can find it by callcheckRecord()
method. Notice that the MAC address letters are capitalized.
Definition: exportRecordCSV(CardId: str | int, exportFileName: str)
.
Create a example.py
like this:
from punch_crack import *
CardId = ""
exportRecordCSV(CardId, "record.csv")
-
The
cardId
get it with the above. -
The
exportFileName
is the csv file name to generate. After proceed this method, you can find your recentDeviceId
.