| closedfilename of plugin himself-check |
| Started by ghzero on 10-19-2007, 07:20 AM |
Threads: 42
Joined: Sep 2007
hello,rnrn-how can I (my plugin) know the filename of it self?!rn(reason is that I want to check the length of plugin-file to detect outdate of plugin version or modifications to plugin.)rnrn-can I do an crc on an file?!
Threads: 57
Joined: Oct 2005
Why don't you just check the version constant?
Threads: 42
Joined: Sep 2007
;7938']Why don't you just check the version constant?rnrnthat is too simple. what I want is to detect if the plugin was modificated and the versionstring is not safe enough.rnrnfor that now I have an md5-checksum on the file but the leak is, the admin can use another filename to load from plugin.ini and leave the originalfilename and file as original and I cant detect changes.
Threads: 57
Joined: Oct 2005
I can't think of a way to check the file name as I've never had to.rnrnWhy not just not release the source and only release the .amxx compiled version? Then no one can alter it..
Threads: 42
Joined: Sep 2007
;7942']I can't think of a way to check the file name as I've never had to.rnrnWhy not just not release the source and only release the .amxx compiled version? Then no one can alter it..rnrnyes , but that offers the leak to decompile, modificate and recompile again.
Threads: 103
Joined: May 2005
well maybe im reading this wrong..nnbut you want to prevent ppl from modifying the plugin code? and you want to put a check in the plugin.. nncouldnt anyone just remove the check while they're changing the plugin code
Threads: 42
Joined: Sep 2007
well maybe im reading this wrong..rnrnbut you want to prevent ppl from modifying the plugin code? and you want to put a check in the plugin.. rnrncouldnt anyone just remove the check while they're changing the plugin codernrnrnyes of course, but any protection is a question how hard/good a hacker will(must) work on it !! so for most hacking a mid range/level of protection will help for(against) 95% of hacking.
Threads: 57
Joined: Oct 2005
I don't mean to beat a dead horse, but decompiling code isn't that easy. If they know how to do that...they definitely know how to read it.rnrnIf you read the tutorial on decompiling the code...you have to know pawn to do it.rnrnAnyway...I guess you could open configs/plugins.ini and search for the name of your plugin. If you don't find it, or there is a semicolon in front of it, activate self-detonation.

