mirror of
https://github.com/videoman/proxmark3-web.git
synced 2024-11-10 09:02:57 +08:00
updates
This commit is contained in:
parent
245ce37311
commit
3e194932d0
2 changed files with 6 additions and 3 deletions
|
@ -3,7 +3,8 @@
|
|||
# this script will install proxmark3-rdv4, and all the things.
|
||||
|
||||
sudo apt-get update && sudo apt-get -y install --no-install-recommends git ca-certificates build-essential pkg-config \
|
||||
libreadline-dev gcc-arm-none-eabi libnewlib-dev python3-flask hostapd && \\
|
||||
libreadline-dev gcc-arm-none-eabi libnewlib-dev python3-flask hostapd python3-pip python3-dateutil python3-dateparser && \\
|
||||
sudo pip3 install datetime &&\
|
||||
cd ~ && git clone https://github.com/RfidResearchGroup/proxmark3.git &&\
|
||||
cd ~/proxmark3/ && git pull && make clean && make all && sudo make install &&\
|
||||
cd ~/proxmark3-web && \
|
||||
|
|
|
@ -7,6 +7,8 @@ import os, string, subprocess, sys
|
|||
from flask import Flask, flash, redirect, render_template, \
|
||||
request, url_for
|
||||
|
||||
from datetime import datetime
|
||||
|
||||
proxmark3_rdv4_dir='/home/pi/proxmark3'
|
||||
proxmark3_rdv4_client=proxmark3_rdv4_dir + '/client/proxmark3'
|
||||
logfile = "/home/pi/coffee-is-hot.log"
|
||||
|
@ -88,7 +90,7 @@ if(True):
|
|||
#return 'Hello, World!\n<br>Raw Card Number:' + raw_cardnumber + '<br> Card ID:' + card_number + ' FC:' + facility_code
|
||||
card = get_card_data(cardnumber.stdout.decode('ASCII'))
|
||||
print(card)
|
||||
print(str(datetimenow) + ' _Card Used_ ' + card, file=open(logfile, "a"))
|
||||
print(str(datetime.now()) + ' _Card Used_ ' + card, file=open(logfile, "a"))
|
||||
return render_template('main.html',
|
||||
card_number=card['card_number'],
|
||||
oem=card['oem'],
|
||||
|
@ -108,7 +110,7 @@ if(True):
|
|||
if('HID Prox TAG ID:' in cardnumber.stdout.decode('ASCII')):
|
||||
card = get_card_data(cardnumber.stdout.decode('ASCII'))
|
||||
print(card)
|
||||
print(str(datetimenow) + ' _Card Used_ ' + card, file=open(logfile, "a"))
|
||||
print(str(datetime.now()) + ' _Card Used_ ' + card, file=open(logfile, "a"))
|
||||
card_read=1
|
||||
#return 'Hello, World!\n<br>Raw Card Number:' + raw_cardnumber + '<br> Card ID:' + card_number + ' FC:' + facility_code
|
||||
return render_template('main.html',
|
||||
|
|
Loading…
Reference in a new issue