Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > C/C++
You last visited: Today at 02:39

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Sql Injection

Discussion on Sql Injection within the C/C++ forum part of the Coders Den category.

Reply
 
Old   #1
 
Terrat's Avatar
 
elite*gold: 130
Join Date: Apr 2012
Posts: 1,173
Received Thanks: 670
Sql Injection

Hallo, ich will Sql Injektionen verhindern.
Ich dachte mir das ich den String parse und verdächte sachen entferne und Befehle unschädlich mache. Es handelt sich bei den Eingaben nur um Texte wo sowas normalerweise nicht vorkommen sollte. (ohne sonderzeichen)
Also sollte ich folgende Zeichen enfternen: ' " und ;
Und Wörter wie DROP durch DR-OP usw ersetzen.
Das mit den zeichen ist ja einfach gemacht aber wie ersetze ich ganze Wörter ?
String ersetzung. Finde dazu aber kein befehl.
Terrat is offline  
Old 05/26/2015, 19:05   #2

 
snow's Avatar
 
elite*gold: 724
Join Date: Mar 2011
Posts: 10,480
Received Thanks: 3,319

snow is offline  
Thanks
1 User
Old 05/27/2015, 15:34   #3
 
Yoshii50000's Avatar
 
elite*gold: 260
Join Date: Apr 2011
Posts: 414
Received Thanks: 478
versuchs lieber mit prepared statements und bind parametern, damit fixt du jede art von sql injection
lg
Yoshii50000 is offline  
Thanks
1 User
Old 05/28/2015, 07:39   #4
 
Terrat's Avatar
 
elite*gold: 130
Join Date: Apr 2012
Posts: 1,173
Received Thanks: 670
Quote:
Originally Posted by Yoshii50000 View Post
versuchs lieber mit prepared statements und bind parametern, damit fixt du jede art von sql injection
lg
Werde ich machen.
Was machst du aus den flyff bereich hier *_*? Lange nichts von dir gesehen.
Terrat is offline  
Old 05/28/2015, 09:13   #5


 
MrSm!th's Avatar
 
elite*gold: 7110
Join Date: Jun 2009
Posts: 28,904
Received Thanks: 25,394
Ich würde hier entweder Prepared Statements oder eine fertige Funktion zum Escapen nutzen. Ersatzlos Zeichen zu entfernen ist eine ziemlich unflexible und unschöne Lösung. Davon abgesehen hast du in deiner Liste den Backslash vergessen - der kann einem auch gefährlich werden. Daher wie gesagt einfach fertige Lösungen nutzen. Eigene Implementierungen sollte man nur versuchen, wenn man genau weiß, worauf man achten muss.
MrSm!th is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
Help me please (Injection)
09/29/2014 - S4 League - 11 Replies
So here's how it started : I looked at this post http://www.elitepvpers.com/forum/s4-league-hacks-b ots-cheats-exploits/3407140-xavision-id-manager.ht ml and wanted to try out the item manager but i didnt know how to bypass (already downloaded the bypass) but it is just frustrating that i dont know how to use the Faith injector. Add me on skype so i can share my screen with you and you can give me help and get a thanks !! Skype: Sasora.OfTheRedSands
Dll injection
06/23/2014 - C/C++ - 1 Replies
How can i create a dll that when injected to notepad it would display a message? :handsdown:
SQL Injection
04/24/2014 - 4Story - 1 Replies
how can i stop sql injection?
SQL injection Help
06/08/2010 - Kal Online - 9 Replies
hi every one im just wanna request i need some one give me link or so to how to do SQL injection On Private Server and Examples on any server because i learned alot but on other sites when i start with kalonline sites XD i got fucked up and i can't do any thing so i hope some one help me to do
SQL injection.
02/12/2008 - Zero - 0 Replies
Hi all, This is a curious topic because i have found numerous occasions where this has happened on the chinese version of the game. Also i was wondering if anyone knows of any occasions where it has been done on the English servers? I've been researching into this and apparently it requires tracing the packets back to the DB server then using a program (once you have the address) to inject your own SQL code into the database indefinitely editing your character to what ever your choosing...



All times are GMT +2. The time now is 02:39.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.