Raised This Month: $ Target: $400
 0% 

Protect private amxx plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
saintjimmygd
Junior Member
Join Date: Mar 2009
Old 04-27-2011 , 06:52   Protect private amxx plugin
Reply With Quote #1

Hi.
My friend made a private amxx plugin but when i tryed to use a decompiler it shows informations that shouldn't be seen by anybody like SQL_HOST or database password
What can i do to protect the plugin from decompiler programs ?
Here is part of the plugin (example):
Quote:
#include <amxmodx>
#include <amxmisc>
#include <sqlx>

new Handle:g_SqlTuple;
new SQL_HOST[32]="myHost", SQL_USER[32]="theUser", SQL_PASS[32]="thePass", SQL_DB[32]="someDB";
public plugin_init()
{
register_plugin("plugin","1.0","author");
g_SqlTuple = SQL_MakeDbTuple(SQL_HOST,SQL_USER,SQL_PASS,SQ L_DB);
}
And here is what decompiler shows:
Quote:
.DATA
var_000 variable ( 0x0 )
str_000 string "myHost"
arr_000 array 25 fill 0x0
str_001 string "theUser"
arr_001 array 24 fill 0x0
str_002 string "thePass"
arr_002 array 24 fill 0x0
str_003 string "someDB"
arr_003 array 25 fill 0x0
str_004 string "plugin"
str_005 string "1.0"
str_006 string "author"


.CODE
halt 0x0

PROC plugin_init
break
break
push.c 0x230
push.c 0x220
push.c 0x204
push.c 0xC
sysreq.c [BAD SYSREQ]
stack 0x10
break
push.c 0x0
push.c 0x184
push.c 0x104
push.c 0x84
push.c 0x4
push.c 0x14
sysreq.c [BAD SYSREQ]
stack 0x18
stor.pri 0x0
zero.pri
retn
ENDP
I want to hide from decompiler program : string "myHost" , string "theUser" , string "thePass" !

Last edited by saintjimmygd; 05-05-2011 at 05:19.
saintjimmygd is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:25.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode