WhitewidowScanner / whitewidow

SQL Vulnerability Scanner
973 stars 234 forks source link

Syntax error enhancement #36

Closed Ekultek closed 7 years ago

Ekultek commented 7 years ago

Before you create an issue please make sure that there are no issues that relate to your issue. if there is an issue that relates to one, please add a comment to that issue and describe your specific problem. If your issue has to do with any sort of installation or syntax errors, please read the self_help under the docs directory. If none of those answer your question, make an issue

Issue/Enhancement (be specific)

Catch the syntax error and specify what version of ruby needs to be run

Exact error message (if enhancement what will this effect and why should it be added?)

ruby 2.0.0p648 (2015-12-16 revision 53162) [x86_64-linux]
root@station1:/tools/sql/whitewidow# ruby whitewidow.rb
whitewidow.rb:61: syntax error, unexpected tIDENTIFIER, expecting keyword_do or '{' or '('
... Hey now my friend, I know you're eager, I am also, but...
... ^
whitewidow.rb:62: syntax error, unexpected tIDENTIFIER, expecting keyword_end
either doesn't exist, or it's not in the di...
^
whitewidow.rb:62: syntax error, unexpected keyword_or
either doesn't exist, or it's not in the directory yo...
^
whitewidow.rb:62: syntax error, unexpected tIDENTIFIER, expecting keyword_end
...t in the directory you say it's in..
... ^
whitewidow.rb:67: syntax error, unexpected tIDENTIFIER, expecting keyword_end
Don't worry I'll wait!
^
whitewidow.rb:69: syntax error, unexpected tIDENTIFIER, expecting keyword_end
.yellow.bold # Error out because the file doesn't exist

Steps to reproduce if applicable or steps on what should be done

Run whitewidow with a ruby version less than 2.3.0

Search query if applicable (please use exact search query)

N/A

User agent (if applicable)

N/A

Whitewidow version number (must have the actual version run ruby whitewidow.rb --version)

1.8.1.3

Ruby version number

Anything other than 2.3.0

Labels

Ekultek commented 7 years ago

done