# data[].attributes.attachment_link.readable_text
#!/usr/bin/python3
from flask import Flask, request, render_template, make_response, redirect, url_for

app = Flask(__name__)

try:
FLAG = open('./flag.txt', 'r').read()
except:
FLAG = '[**FLAG**]'

users = {
'guest': 'guest',
'admin': FLAG
}

@app.route('/')
def index():
username = request.cookies.get('username', None)
if username:
return render_template('index.html', text=f'Hello {username}, {"flag is " + FLAG if username == "admin" else "you are not admin"}')
return render_template('index.html')

@app.route('/login', methods=['GET', 'POST'])
def login():
if request.method == 'GET':
return render_template('login.html')
elif request.method == 'POST':
username = request.form.get('username')
password = request.form.get('password')
try:
pw = users[username]
except:
return ' '
if pw == password:
resp = make_response(redirect(url_for('index')) )
resp.set_cookie('username', username)
return resp
return ' '

app.run(host='0.0.0.0', port=8000)

# data[].attributes.body
https://seokttan.github.io/neis-byte-calculator/

https://github.com/seokttan/neis-byte-calculator/blob/main/index.html

https://dreamhack.io/wargame/challenges/6

set file=.\n1.mp3

( echo Set Sound = CreateObject("WMPlayer.OCX.7"^)

echo Sound.URL = "%file%"

echo Sound.Controls.play

echo do while Sound.currentmedia.duration = 0

echo wscript.sleep 100

echo loop

echo wscript.sleep (int(Sound.currentmedia.duration^)+1^)*1000) >n1.vbs

start /min n1.vbs

@echo off

:A

mode 1000

taskkill /F /im ClassM_Client.exe

taskkill /F /im ClassM_Client_Service.exe

taskkill /F /im SysCtrl.exe

taskkill /F /im mvnc.exe

taskkill /F /im hscagent.exe

taskkill /F /im hscdm.exe

taskkill /F /im hscfm.exe

taskkill /F /im hscrelay.exe

goto A

# data[].attributes.attachment_link.description
나이스 바이트 계산기입니다. Contribute to seokttan/neis-byte-calculator development by creating an account on GitHub.

# data[].attributes.attachment_link.title
파란색 흰색 디지털리즘 기본 단순한 프레젠테이션

# data[].attributes.attachment_link.description
Check out this Presentation designed by 10716오진규.

# data[].attributes.body
https://www.canva.com/design/DAGYCpNBYoA/l2_G7Cpzx6jWtuHShYydSw/edit?utm_content=DAGYCpNBYoA&utm_campaign=designshare&utm_medium=link2&utm_source=sharebutton

# data[].attributes.attachment_link.description
Login to access and create your next design.

# data[].attributes.body
https://www.canva.com/design/DAGX7Fl4Iyo/vXcOZs1rKEqNEeorqIdCYw/edit?utm_content=DAGX7Fl4Iyo&utm_campaign=designshare&utm_medium=link2&utm_source=sharebutton

# data[].attributes.body
https://www.canva.com/design/DAGYEQ9xMSs/etPWlOo-PLl6auOR5AlGsg/edit?utm_content=DAGYEQ9xMSs&utm_campaign=designshare&utm_medium=link2&utm_source=sharebutton

# data[].attributes.attachment_link.title
천연물질을 이용한 만성 염증 질환의 통합적 치료 연구

# data[].attributes.attachment_link.title
학급내 작은 사회 ppt

# data[].attributes.attachment_link.title
(미디어) 다큐멘터리의 역사성과 사실성

# data[].attributes.body
https://www.canva.com/design/DAGYCbObZl4/rffd2haC6DcdTCgUdYVHMw/edit?utm_content=DAGYCbObZl4&utm_campaign=designshare&utm_medium=link2&utm_source=sharebutton

# data[].attributes.attachment_link.title
3D프린팅 기술의 사용

# data[].attributes.attachment_link.title
운동과 학습능력 사이 관계

# data[].attributes.headline
소묘 냐? 수채화 냐?

# data[].attributes.subject
소묘 냐? 수채화 냐?

# data[].attributes.headline
메타버스 '메타클' 발표

# data[].attributes.subject
메타버스 '메타클' 발표

# data[].attributes.attachment_link.title
멸망과-혼돈의-학급-내-작은-사회 아 진짜 마지막이다

# data[].attributes.attachment_link.title
학급 내 작은 사회(신소재)

# data[].attributes.attachment_link.title
제목을-입력해주세요_ (1)

# data[].attributes.attachment_link.title
학급내 작은 사회 계획서

# data[].attributes.body
활동 계획서

# data[].attributes.headline
2. 활동 계획서 PPT 업로드방법

# data[].attributes.subject
2. 활동 계획서 PPT 업로드방법

# data[].attributes.body
1. 덕원고 구글계정으로 접속
2022+자신의 학번+@dukwon.hs.kr
(ex) 2022111xx@dukwon.hs.kr

2. 자신의 팀 칼럼에 자료 업로드!
(PPT, 활동계획, 영상, 사진, 구글문서 모두 가능!)

# data[].attributes.headline
1. 활동계획서(구글문서)

# data[].attributes.subject
1. 활동계획서(구글문서)

# data[].attributes.body
1. 링크클릭

2. 덕원고 구글계정으로 접속

3. 자신의 팀이름에 해당하는 페이지를 완성
(팀장 선정)

# data[].attributes.attachment_link.description
디자인 고민 끝! 템플릿으로 바로 해결하는 웹 디자인 플랫폼 '미리캔버스'

# data[].attributes.attachment_caption
학급 내 작은 사회ppt(교육)

# data[].attributes.body
https://docs.google.com/file/d/1qYhBMcqaqClvJwGVO1YSlumL0KbLKKi8/edit?usp=docslist_api&filetype=mspresentation

# data[].attributes.attachment_link.title
Meet Google Drive - One place for all your files

# data[].attributes.attachment_link.description
Google Drive is a free way to keep your files backed up and easy to reach from any phone, tablet, or computer. Start with 15GB of Google storage - free.