├── test.sql
├── .DS_Store
├── sample.db
├── templates
├── error.html
├── login.html
├── index.html
├── restock.html
└── base.html
├── README.md
├── Commands For Sqlite Hack.txt
├── static
├── style.css
└── script.js
└── main.py
/test.sql:
--------------------------------------------------------------------------------
1 | SELECT ?,?,? FROM ? WHERE name='juice';
2 |
--------------------------------------------------------------------------------
/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JasonHinds13/hackable/HEAD/.DS_Store
--------------------------------------------------------------------------------
/sample.db:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/JasonHinds13/hackable/HEAD/sample.db
--------------------------------------------------------------------------------
/templates/error.html:
--------------------------------------------------------------------------------
1 | {% extends 'base.html' %}
2 |
3 | {% block title %}Error Detected{% endblock %}
4 |
5 | {% block content %}
6 |
7 |
11 |
18 |
19 |
20 |
21 | {% block content %}
22 | {% endblock %}
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/static/style.css:
--------------------------------------------------------------------------------
1 | table, th, td {
2 | border: 1px solid black;
3 | border-collapse: collapse;
4 | }
5 |
6 | .button{
7 | background-color: blue;
8 | color: white;
9 | border: none;
10 | height: 25px;
11 | width: 100px;
12 | font-weight: bold;
13 | }
14 |
15 | #content{
16 | margin: auto;
17 | width: 1000px;
18 | text-align: center;
19 | border: 2px solid blue;
20 | padding-bottom: 30px;
21 | }
22 |
23 | table{
24 | margin-left: center;
25 | margin-right: center;
26 | width: 50%;
27 | }
28 |
29 | #navbar
30 | {
31 | position: relative;
32 | }
33 |
34 | #navbar ul
35 | {
36 | list-style-type: none;
37 | margin: 0;
38 | padding: 0;
39 | overflow: hidden;
40 | background-color: blue;
41 | position: fixed;
42 | top: 0;
43 | width: 100%;
44 | }
45 |
46 | #navbar ul li
47 | {
48 | float: left;
49 | }
50 |
51 | #navbar ul li a
52 | {
53 | display: block;
54 | color: white;
55 | border-radius: 5px 5px;
56 | text-align: center;
57 | padding: 14px 16px;
58 | text-decoration: none;
59 | }
60 |
--------------------------------------------------------------------------------
/static/script.js:
--------------------------------------------------------------------------------
1 | //Using our API
2 |
3 | function login(){
4 | var uname = document.getElementById("uname").value;
5 | var passw = document.getElementById("passw").value;
6 |
7 | var dat = {'username':uname, 'password':passw};
8 |
9 | $.ajax('/api/v1.0/storeLoginAPI/',{
10 | method: 'POST',
11 | data: JSON.stringify(dat),
12 | dataType: "json",
13 | contentType: "application/json",
14 | }).done(function(res){
15 |
16 | if (res['status'] == 'success'){
17 | $("#stat").html('