Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Shaiya
You last visited: Today at 10:42

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

Advertisement



Try to secury my scripts a bit more but...

Discussion on Try to secury my scripts a bit more but... within the Shaiya forum part of the MMORPGs category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2012
Posts: 267
Received Thanks: 50
Try to secury my scripts a bit more but...

Hello.

Ive tryd to Secure my Scripts a bit more, but now i got the following error:
Fatal error: Call to undefined function ms_escape()

Maybe any1 know what to do?

Greetings.
cypherxxl is offline  
Old 12/01/2012, 15:59   #2
 
elite*gold: 0
Join Date: May 2012
Posts: 394
Received Thanks: 392
From the little i do know of PHP. I'd guess half that error statement is missing.

I would expect it to continue to read more like

Fatal error: Call to undefined function ms_escape() in /file directory xx / filename.php on line xx

Maybe with more info on your error, someone may be able to help. For example.. you didn't mention which script you have the error with, out of the many available here alone.
Truth1010 is offline  
Old 12/01/2012, 16:12   #3

 
nephren's Avatar
 
elite*gold: 92
Join Date: Aug 2009
Posts: 739
Received Thanks: 975
ms escape() existiert nicht.

Code:
function mssql_escape($data) {
    if(is_numeric($data))
        return $data;
nephren is offline  
Thanks
1 User
Old 12/01/2012, 16:13   #4
 
elite*gold: 0
Join Date: Feb 2012
Posts: 267
Received Thanks: 50
Get it on all of my scripts.
After changing that.

If i set all files back to default it wont work too -.-


Using this //MSSQL Escape Function - SQL Injection Prevention
PHP Code:
function mssql_escape_string($data) {
    if(!isset(
$data) or empty($data)) return '';
    if(
is_numeric($data)) return $data;
    
$non_displayables = array(
        
'/%0[0-8bcef]/',            // url encoded 00-08, 11, 12, 14, 15
        
'/%1[0-9a-f]/',                // url encoded 16-31
        
'/[\x00-\x08]/',            // 00-08
        
'/\x0b/',                    // 11
        
'/\x0c/',                    // 12
        
'/[\x0e-\x1f]/'                // 14-31
    
);
    foreach(
$non_displayables as $regex)
        
$data preg_replace($regex,'',$data);
        
$data str_replace("'","''",$data);
    return 
$data;

Its cause i use this:
PHP Code:
    $userid        ms_escape($_POST['userid']);
    
$password    ms_escape($_POST['password']); 
Edit:
Got it working now. Thank you
cypherxxl is offline  
Reply


Similar Threads Similar Threads
[Scripts] 1-80 Scripts for lazy people.
01/15/2012 - SRO PServer Guides & Releases - 1 Replies
Lazy to record ur own script? use one of these. scan: https://www.virustotal.com/file/e5971fcf48eaede69 a6e0ba6abef2acb0766b7a2922d788c0dc13aa0642dbe94/an alysis/1326409314/
agBot Loop Scripts [ Let's Make alist with Mobs Scripts ]
07/09/2008 - SRO Hacks, Bots, Cheats & Exploits - 228 Replies
Hello Everyone, i saw that everyone is getting stuck to make agBot Loop Script. so i though we should make a topic a mobs scripts. and i will start. :) Now for me i prefer to use notepad to make my scripts. How to install : Just Copy the code and paste in <bot folder>\config\config1\script\default.lst If we got more scripts, i will just make a webpage, where you can select Town, HP and MP Bots you wanna buy then the monster you want to kill. then it auto generate the script for you....



All times are GMT +1. The time now is 10:46.


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