Day of Defeat Plugins Community
This site is an archive — everything is readable and downloadable, nothing can be posted. Admin
Archive › Old Forum Threads › Help › Scripting Help › filename of plugin himself-check
8 posts, 3 people · 762 views Thread Rating: ★★★★★
closedfilename of plugin himself-check
Started by ghzero on 10-19-2007, 07:20 AM
ghzero
started this thread
Posts: 160
Threads: 42
Joined: Sep 2007
10-19-2007, 07:20 AM #1

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?!

Wilson [29th ID]
posted here
Posts: 623
Threads: 57
Joined: Oct 2005
10-20-2007, 04:57 PM #2

Why don't you just check the version constant?

ghzero
started this thread
Posts: 160
Threads: 42
Joined: Sep 2007
10-20-2007, 06:39 PM #3
;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.

Wilson [29th ID]
posted here
Posts: 623
Threads: 57
Joined: Oct 2005
10-20-2007, 11:24 PM #4

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..

ghzero
started this thread
Posts: 160
Threads: 42
Joined: Sep 2007
10-23-2007, 07:51 AM #5
;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.

diamond-optic
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
10-25-2007, 06:06 AM #6

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

ghzero
started this thread
Posts: 160
Threads: 42
Joined: Sep 2007
10-26-2007, 05:36 AM #7
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 code
rnrnrnyes 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.

Wilson [29th ID]
posted here
Posts: 623
Threads: 57
Joined: Oct 2005
10-26-2007, 06:09 AM #8

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.

Archive › Old Forum Threads › Help › Scripting Help › filename of plugin himself-check
DoD Plugins Archive · Repository · Old Forum Threads · Maps · Admin · built 14 Sep 2026 00:34 UTC