INNER CODE UNIT · Python

time_

l4wio/CTF-challenges-by-me · 0x3004/250-XYZTemplate/app.py:68

		time_ = int(time())+3600*10
		resp.set_cookie('username',username,path='/',expires=time_)
		resp.set_cookie('password',password,path='/',expires=time_)
		return resp
	else:
		return render_template('index.html',error='Wrong username or password!')

@app.route('/logout')
def logout():
	resp = make_response(redirect('/'));
	resp.set_cookie('username','',expires=0); 
	resp.set_cookie('password','',expires=0); 
	return resp

@app.route('/make_template',methods=['POST'])
def make_template():
	html = request.form['html']
	param = request.form['param']

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…