Created
November 26, 2018 19:09
-
-
Save hzshang/8ed1ae02ee6e0185c6697a3b45ad7039 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
insert into ctfd.users (id,name,email,password,created) | |
select id,name,email,password,joined from bak.teams; | |
update ctfd.users set type = "user",bracket = NULL,hidden=0,verified=0,banned=0; | |
insert into ctfd.challenges(id,name,description,max_attempts,value,category,type,state) | |
select id,name,description,max_attempts,value,category,"dynamic","visible" from bak.challenges; | |
insert into dynamic_challenge (id,initial,minimum,decay) | |
select id,value,value/10,15 from ctfd.challenges; | |
insert into ctfd.files (id,type,location,challenge_id) | |
select id,"challenge",location,chal from bak.files; | |
insert into ctfd.flags (id,challenge_id,type,content) | |
select id,chal,type,flag from bak.keys; | |
insert into ctfd.hints (id,type,challenge_id,content,cost) | |
select id,"standard",chal,hint,cost from bak.hints; | |
insert into ctfd.sibmissions (id,challenge_id,user_id,ip,date) | |
select id,chalid,teamid,"127.0.0.1",date from bak.solves; | |
insert into ctfd.solves (id,challenge_id,user_id) | |
select id,chalid,teamid from bak.solves; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment