Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong code in sqli & sqli_blind causes parse error #129

Closed
wushangwei opened this issue Jan 14, 2017 · 5 comments
Closed

Wrong code in sqli & sqli_blind causes parse error #129

wushangwei opened this issue Jan 14, 2017 · 5 comments

Comments

@wushangwei
Copy link

I set up the newest version of DVWA (Version 1.10 Development) using XMAPP successfully. And when I clicked into SQL Injection or SQL Injection (Blind), it returns a error:

Parse error: syntax error, unexpected '[' in D:\xampp\htdocs\DVWA\vulnerabilities\sqli\index.php on line 65

Parse error: syntax error, unexpected '[' in D:\xampp\htdocs\DVWA\vulnerabilities\sqli_blind\index.php on line 65

And I looked into the index.php mentioned, I noticed this at line 65:
$num = mysqli_fetch_row( $result )[0];

And I edited it into:
$num = mysqli_fetch_row( $result );

And all went correct.

@hcw5014
Copy link

hcw5014 commented May 10, 2017

You can switch php version to PHP 5.6

@mike-bailey
Copy link
Collaborator

@hcw5014 Though ideally you'd want to support the latest version of PHP, so this is an appropriate issue.

@digininja
Copy link
Owner

Can anyone confirm if this is working in Windows?

@digininja
Copy link
Owner

@mike-bailey Suggest you give this another couple of days then close it. If it didn't work in Windows I'm sure we'd have a few more people complaining about it.

@SnowJF
Copy link

SnowJF commented Dec 11, 2020

I test this in windows 2008, it works ^-^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants