Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Silkroad Online > SRO Private Server
You last visited: Today at 15:54

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

Advertisement



[PHP] Share you Anti-SQL injection function.

Discussion on [PHP] Share you Anti-SQL injection function. within the SRO Private Server forum part of the Silkroad Online category.

Reply
 
Old   #1
 
B13.'s Avatar
 
elite*gold: 0
Join Date: Jun 2012
Posts: 239
Received Thanks: 26
Question [PHP] Share you Anti-SQL injection function.

well the title says it all
i want to see how different people handle injection

*educational purposes
B13. is offline  
Old 11/26/2016, 13:18   #2
 
elite*gold: 0
Join Date: Mar 2016
Posts: 9
Received Thanks: 2
situsavais is offline  
Old 11/26/2016, 13:46   #3
 
B13.'s Avatar
 
elite*gold: 0
Join Date: Jun 2012
Posts: 239
Received Thanks: 26
Quote:
Originally Posted by situsavais View Post
i know how it works , i did my search thank you.
i just wanted to see how others do it.
B13. is offline  
Old 11/26/2016, 18:40   #4
 
BranzUK's Avatar
 
elite*gold: 0
Join Date: May 2013
Posts: 23
Received Thanks: 2
Do you want clean db ?!
BranzUK is offline  
Old 11/26/2016, 21:37   #5
 
B13.'s Avatar
 
elite*gold: 0
Join Date: Jun 2012
Posts: 239
Received Thanks: 26
Quote:
Originally Posted by BranzUK View Post
Do you want clean db ?!
B13. is offline  
Old 11/26/2016, 21:43   #6

 
Syc's Avatar
 
elite*gold: 666
Join Date: Apr 2011
Posts: 5,810
Received Thanks: 2,418
Quote:
Originally Posted by B13. View Post
i just wanted to see how others do it.
others do it by using pdo with prepared statements. thats about it
Syc is offline  
Thanks
1 User
Old 11/26/2016, 21:45   #7


 
Sycrog's Avatar
 
elite*gold: 86
Join Date: Feb 2009
Posts: 370
Received Thanks: 84
I usually use the Laravel framework, so I don't have to think that much about that issue. Link here:
Sycrog is offline  
Thanks
1 User
Old 11/26/2016, 21:47   #8
 
WickedNite.'s Avatar
 
elite*gold: 15
Join Date: Jul 2014
Posts: 1,614
Received Thanks: 1,375
"Share with me cause I have no idea how to do it".
WickedNite. is offline  
Old 11/26/2016, 22:04   #9
 
B13.'s Avatar
 
elite*gold: 0
Join Date: Jun 2012
Posts: 239
Received Thanks: 26
Quote:
Originally Posted by WickedNite. View Post
"Share with me cause I have no idea how to do it".
i got a working function
compared them to uploaded websites i know how to do it
don't assume stuff from your head.
don't throw flames in the thread.
as i said
*educational purposes*

Quote:
Originally Posted by Syc View Post
others do it by using pdo with prepared statements. thats about it
i think that is the most common way
then comes the string edits


Quote:
Originally Posted by Sycrog View Post
I usually use the Laravel framework, so I don't have to think that much about that issue. Link here:
doesn't it do the same thing ?
Quote:
Note: The Laravel query builder uses PDO parameter binding throughout to protect your application against SQL injection attacks. There is no need to clean strings being passed as bindings.
B13. is offline  
Old 11/26/2016, 22:18   #10


 
Sycrog's Avatar
 
elite*gold: 86
Join Date: Feb 2009
Posts: 370
Received Thanks: 84
Yes, I assumed that Laravel is using PDO to handle that, but the message was rather to use a proven framework instead of trying to build solutions again and again.
Sycrog is offline  
Thanks
1 User
Old 11/26/2016, 23:22   #11
 
B1Q's Avatar
 
elite*gold: 350
Join Date: Aug 2015
Posts: 1,999
Received Thanks: 1,188
use PDO Prepared statements if you don't want to learn a new framework :3
B1Q is offline  
Thanks
1 User
Old 11/27/2016, 23:16   #12
 
elite*gold: 0
Join Date: Mar 2016
Posts: 9
Received Thanks: 2
Why recreate the wheel when there is something which do the work, and it's called "PDO".

Laravel ORM handle well sro db ? I mean for the relation ect.. The architecture of Joymax db arn't following some rule so.. I doubt that an orm can handle all this **** nah ?
situsavais is offline  
Thanks
1 User
Old 11/28/2016, 17:56   #13
 
sinxtra's Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 1,300
Received Thanks: 952
Quote:
Originally Posted by situsavais View Post
Why recreate the wheel when there is something which do the work, and it's called "PDO".

Laravel ORM handle well sro db ? I mean for the relation ect.. The architecture of Joymax db arn't following some rule so.. I doubt that an orm can handle all this **** nah ?
Yes, you can perfectly use Laravel with sro db, i've done it before and the relationships work well. Laravel is very powerfull, more than people think.
sinxtra is offline  
Thanks
1 User
Old 11/28/2016, 20:22   #14
 
RedWoman's Avatar
 
elite*gold: 80
Join Date: Nov 2015
Posts: 172
Received Thanks: 89
PDO
RedWoman is offline  
Thanks
1 User
Old 12/08/2016, 20:15   #15
 
elite*gold: 0
Join Date: Feb 2008
Posts: 340
Received Thanks: 72
Very good post about PDO -
LSS
Quote:
Prepared statements / parameterized queries are generally sufficient to prevent 1st order injection on that statement*. If you use un-checked dynamic sql anywhere else in your application you are still vulnerable to 2nd order injection.
This why everyone fail, because he think is 100% secure, there is no such things yet.
pushipu is offline  
Reply


Similar Threads Similar Threads
[S] Anti hack dll oder Anti Injection in einer Exe [B] egold & Psc
08/27/2014 - Coders Trading - 0 Replies
Hallo, ich suche für meine Metin2.exe eine Anti hack Methode bzw Dll oder Anti Injection Protection in meiner Exe Weiteres Info auf Anfrage Bezahlung gibt es natürlich auch
[HELP] Website anti DDOS, anti Sql Injection
04/13/2013 - Flyff Private Server - 10 Replies
what is the anti ddos and anti sql injection javascript? thanks in advance :)
[Release] Anti-Cheat DLL - *Lite* (Anti Injection)
04/11/2013 - Metin2 PServer Guides & Strategies - 30 Replies
Heyho, ich habe mir überlegt hier eine Kleinigkeit als einstieg zu releasen! Dann wollen wir mal schauen, was ich anzubieten habe: - Eine anti Injection DLL! Was könnt ihr damit machen? Ganz einfach, das injecten von Hacks verhindern! Lite? Gibt es auch eine andere Version? Die gibt es in der tat, unter Umständen kommt die noch mal dazu.
[tutorial]Injection & Function Hooking
11/06/2010 - Tutorials - 5 Replies
First let me say this: This is not written by me, i found it posted on game deception a while ago and just rediscoverd it on my hd. Thought it might be interesting for some ppl here. Credits go to whoever originally wrote it. This contains a demo project for vc 2003 and a tutorial. You can find the tutorial in the readme folder!!!!!! oh, if you don't trust me, don't download it....



All times are GMT +1. The time now is 15:56.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.