cym13•

Yop.

  • The error message is just that it's too long, so for the moment you have no sign of a possible SQLi. What you have though is information on the DB used and its schema, which is good. You also know that errors are reflected which is good too.

  • The first test you can do to see whether there's an injection possible is to add a single quote after a regular phone number (you don't want your long one since maybe that check is made before any injection point). In case of invalid statement error you know you're onto something. Otherwise, maybe but you don't have any indication.

  • If you don't want to learn just take your raw request (header + data) with a normal phone number, put it in a file, add a * after your phone number and run sqlmap --dbms MySQL -r request.txt essentially.

  • However I wouldn't do that personnaly. First of all it runs a lot of requests so it can get you banned or crash the server if it's unstable. You could control that with sqlmap's settings, RTFM etc. But more importantly having the basics of SQL is definitely something that you'll need again and again in that line of work and if you skip every opportunity to learn you'll never do. Watch https://www.youtube.com/watch?v=rdyQoUNeXSg btw, it's very funny.

3
DrinkJavaSeeSharpOP•

I followed your second point. The single-quote ' was escaped as \\':

`mobile_phone` = '\'11111111111

1
cym13•

Then no injection there it seems. There are SQL injections that don't use the single-quote escape but frankly they're quite rare and harder to exploit so I wouldn't lose my time here.

1