FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
pyt/example/vulnerable_code/sql/init_db.py at refactor_cfg · python-security/pyt · GitHub
python-security
pyt
Repository navigation
Code
Issues
26
(26)
Pull requests
2
(2)
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
pyt
/
example
/
vulnerable_code
/
sql
/
init_db.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
15 lines (9 loc) · 209 Bytes
Breadcrumbs
pyt
/
example
/
vulnerable_code
/
sql
/
init_db.py
Copy path
File metadata and controls
15 lines (9 loc) · 209 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from
sqli
import
db
from
sqli
import
User
db
.
create_all
()
def
add_user
(
name
,
email
):
u
=
User
(
name
,
email
)
db
.
session
.
add
(
u
)
add_user
(
'hest'
,
'hest'
)
add_user
(
'føl'
,
'føl'
)
db
.
session
.
commit
()
Back
|
FazBrowse Home
|
New Git URL