mirror of
https://github.com/videoman/proxmark3-web.git
synced 2024-11-10 09:02:57 +08:00
adding stuff
This commit is contained in:
parent
56929e4892
commit
4dca4a3174
2 changed files with 8 additions and 7 deletions
1
app.py
Symbolic link
1
app.py
Symbolic link
|
@ -0,0 +1 @@
|
|||
proxmark3-web.py
|
|
@ -9,7 +9,7 @@ from flask import Flask, flash, redirect, render_template, \
|
|||
|
||||
from datetime import datetime
|
||||
|
||||
debug=1
|
||||
debug=0
|
||||
proxmark3_rdv4_dir='/home/pi/proxmark3'
|
||||
proxmark3_rdv4_client=proxmark3_rdv4_dir + '/client/proxmark3'
|
||||
logfile = "/home/pi/card-reads.log"
|
||||
|
@ -21,7 +21,7 @@ def get_card_data(data):
|
|||
for line in data.split("\n"):
|
||||
if("TAG ID:" in line):
|
||||
print(str(line.strip()))
|
||||
line.split()
|
||||
if debug: line.split()
|
||||
cardsplit = line.split()
|
||||
card_data = {}
|
||||
card_data['raw_cardnumber'] = str(cardsplit[5])
|
||||
|
@ -57,11 +57,11 @@ if(True):
|
|||
app = Flask(__name__, instance_relative_config=True)
|
||||
|
||||
# create and configure the app
|
||||
app = Flask(__name__, instance_relative_config=True)
|
||||
app.config.from_mapping(
|
||||
SECRET_KEY='abc123',
|
||||
DATABASE=os.path.join(app.instance_path, 'flaskr.sqlite'),
|
||||
)
|
||||
# app = Flask(__name__, instance_relative_config=True)
|
||||
# app.config.from_mapping(
|
||||
# SECRET_KEY='abc123',
|
||||
# DATABASE=os.path.join(app.instance_path, 'flaskr.sqlite'),
|
||||
# )
|
||||
|
||||
# if test_config is None:
|
||||
# # load the instance config, if it exists, when not testing
|
||||
|
|
Loading…
Reference in a new issue