Audi-1 / sqli-labs

SQLI labs to test error based, Blind boolean based, Time based.
5.28k stars 1.52k forks source link

Should I define sql functions myself? #28

Open liumiao-p opened 4 years ago

liumiao-p commented 4 years ago

sql-connection目录下找不到定义操作sql的一系列函数的php文件,比如mysql_connect(),mysql_query()等等,是不是需要读者自行定义?

psi-cmd commented 4 years ago

No, just follow this pull request https://github.com/Audi-1/sqli-labs/pull/19#issue-220118610 Problem is that mysql_connect is banned from php-7.x, the fork of the pull request did the compatible work.

By the way, you may need to apt install php7.x-mysql and modify the php.ini in /etc/php/7.3/apache2 to enable the mysql extention. Then restart related services.