Skip to content

Commit

Permalink
Merge pull request #5 from Kaiserouo/master
Browse files Browse the repository at this point in the history
Fixed reading "/source" error
  • Loading branch information
splitline authored Feb 8, 2022
2 parents 7b14903 + f8b6659 commit 4dd51a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lab/sql-injection/login-me-again/app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def login():
def source():
import re
source_code = open(__file__).read()
source_code = re.sub(r'FLAG{lab_flag}', source_code, 1)
source_code = re.sub(r'FLAG{.*}', r'FLAG{not_real_flag}', source_code, count=1)
return Response(source_code, mimetype='text/plain')


Expand Down

0 comments on commit 4dd51a3

Please sign in to comment.