Skip to content

Commit 9fdac3e

Browse files
committed
sql injection demo
1 parent ea648a1 commit 9fdac3e

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎web/sqli/app.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,4 @@ def tbl_post03():
8686

8787

8888
if __name__ == '__main__':
89-
app.run(debug=True)
89+
app.run(port=9000, debug=True)

‎web/sqli/models/tblpost03.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def is_exist_user(self, user):
5757
cursor.close()
5858
if len(rows) > 0:
5959
return True
60-
return False
60+
return False, rows
6161

6262
except Exception as e:
6363
print(e)

‎web/sqli/template/case03.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ <h2>SQL Injection</h2>
1919
<i>author: greyshell</i><br><br>
2020
Objective: set the age of admin user <br><br>
2121
<form method="POST">
22-
Enter your feedback:
22+
Enter your feedback as anonymous user:
2323
<label>
2424
<input type="text" name="comment" size=100/>
2525
</label><br/><br/>

0 commit comments

Comments
 (0)