|
how to block "sm plugins" console commands in css v34?
|
|
|
aphrodit
|
Дата: Четверг, 05.10.2017, 08:56:19 | Сообщение # 1 |
 |
Сообщений: 12
Репутация: 0 [ +/- ]
|
|
Hi how to block "sm plugins" console commands in css v34?
my sourcemod 1.4.2
Сообщение отредактировал aphrodit - Воскресенье, 08.10.2017, 09:22:01 |
| |
| |
|
chilla_mytku
|
Дата: Суббота, 07.10.2017, 21:41:09 | Сообщение # 2 |
 |
Сообщений: 94
Репутация: 0 [ +/- ]
|
|
Тоже интересно! 
|
| |
| |
|
tonline_kms65
|
Дата: Среда, 11.10.2017, 02:03:45 | Сообщение # 3 |
 |
Сообщений: 215
Репутация: 3 [ +/- ]
|
|
Цитата aphrodit (  ) how to block "sm plugins" console commands in css v34?
Интересно, для какой цели? Если понять цель - можно наверно найти решение. Опять же если есть смысл.
|
| |
| |
|
aphrodit
|
Дата: Среда, 11.10.2017, 11:36:29 | Сообщение # 4 |
 |
Сообщений: 12
Репутация: 0 [ +/- ]
|
|
for more security my server information please and for dont show list plugins for all please write this plugin for me. tnx 
|
| |
| |
|
Nail
|
Дата: Четверг, 12.10.2017, 17:08:24 | Сообщение # 5 |
 |
Сообщений: 38
Репутация: 8 [ +/- ]
|
|
You'll have to recompile sourcemod to achieve the goal. Edit sourcemod-master/core/logic/PluginSys.cpp this way:
Код rootmenu->AddRootConsoleCommand("plugins", "Manage Plugins", this); Change to:
Код //rootmenu->AddRootConsoleCommand("plugins", "Manage Plugins", this); and
Код rootmenu->RemoveRootConsoleCommand("plugins", this); Change to:
Код //rootmenu->RemoveRootConsoleCommand("plugins", this);
You may block "sm" command as well, to unlock it edit this file sourcemod-master/core/smn_console.cpp. Comment all if-blocks with "sm" and reregister the command via smx script to whatever action you want.
Сообщение отредактировал Nail - Четверг, 12.10.2017, 17:09:02 |
| |
| |
|
aphrodit
|
Дата: Вторник, 17.10.2017, 05:34:45 | Сообщение # 6 |
 |
Сообщений: 12
Репутация: 0 [ +/- ]
|
|
i can not find sourcemod-master 1.4.2 please give me a download link.
|
| |
| |
|
aphrodit
|
Дата: Воскресенье, 12.11.2017, 13:07:10 | Сообщение # 7 |
 |
Сообщений: 12
Репутация: 0 [ +/- ]
|
|
i cant do it please Do It and upload for me thank you 
|
| |
| |
|
AdabraIM
|
Дата: Понедельник, 27.11.2017, 08:18:52 | Сообщение # 8 |
 |
Сообщений: 32
Репутация: 0 [ +/- ]
|
|
Hi I have got the same problem and for my server security I want to do this... I couldnt do it myself please do it for us and upload it if possible! No one is willed to help me and you might be my last chance of help pleaseee Thanks! 
|
| |
| |
|
|
Nail
|
Дата: Среда, 29.11.2017, 20:40:35 | Сообщение # 10 |
 |
Сообщений: 38
Репутация: 8 [ +/- ]
|
|
Well, you are right but not quite. It's a lot more complicated to write such plugin... but, as you have it written, it is a lot easier to correct the signatures, of course if you have DHook for you version of server. And you don't. I may assure you that it's hardly possible for you to rewrite this extension for old versions of MM and SM, couse it's huge and not well documented. Though you can write an extension.. it wouldn't take much time if you good at C++. So yo need: 1) Write an extenson with all the DETOUR's, VPHooks and whatever else you need... 2) Build it against actual (for you) versions of SM and MM and your engine version 3) Correct the signatures
For the first step try to build this extension: https://forums.alliedmods.net/showthread.php?t=159876 It does exactly what you need, but for other functions, which you will have to replace to the ones from your plugin. Second step is more complicated... not sure if ambuild is competable with v34 and old SDKs.. but you can use the MakeFile from the extension archive, it worked for me just fine a few years ago. And of course you can try to use my instruction for ambuild (previous message) if Makefile doesn't work for you. The last step is quite simple, at least for me :) it's described in "Extra information" in my previous post. You can try to find the signatures by yourself using the youtube instruction or ask somebody to do it for you. You can ask me, but I need server* and engine* binary files for windows and linux v34 (server_srv.so/dll....)
Your game version will never be updated by valve, I would recommend you to rebuild SM once and for all, it's 2 steps easier :). Going this way you don't need signatures and writing C++ code.
Сообщение отредактировал Nail - Среда, 29.11.2017, 20:47:17 |
| |
| |
|
AdabraIM
|
Дата: Четверг, 30.11.2017, 06:25:20 | Сообщение # 11 |
 |
Сообщений: 32
Репутация: 0 [ +/- ]
|
|
Oh thanks for these Info !!! But I cant to this part of your tutorial!: You may block "sm" command as well, to unlock it edit this file sourcemod-master/core/smn_console.cpp. Comment all if-blocks with "sm" and reregister the command via smx script to whatever action you want. can you explain it a little more? Or would it be possible to do this part for me ?(sorry for my rudeness )
|
| |
| |
|
Nail
|
Дата: Четверг, 30.11.2017, 08:42:16 | Сообщение # 12 |
 |
Сообщений: 38
Репутация: 8 [ +/- ]
|
|
Put // in front of the lines as it's shown in my first post.
I've just remembered another way to solve your problem. It's a dirty hack, but takes a few minutes to implement. 1) Open the SM binary file via Winhex or any other hex editor 2) Find all occasions of "plugins" and replace to another set of symbols which only you would know (may be not all, but only one of them, check it out). The result alignment should stay the same. So you can only replace chars, but you can't add or delete them. You can make the word shorter by replacing one of the symbols to a line break '\0' that is 0x00 in hex.
You now have "70 6C 75 67 69 6E 73 00" for "plugins". To make it "plugin" replace 73 to 00: "70 6C 75 67 69 6E 00 00" You may try to clear the whole line by setting it to zeros, but most likely it will get broken for you as well. To make it "plug123" set this: "70 6C 75 67 31 32 33 00" ...you got the point. Yo can check it here: https://hexed.it or in your hex editor.
Сообщение отредактировал Nail - Четверг, 30.11.2017, 09:11:01 |
| |
| |
|
|
Nail
|
Дата: Четверг, 30.11.2017, 13:45:37 | Сообщение # 14 |
 |
Сообщений: 38
Репутация: 8 [ +/- ]
|
|
Well, not so sure, but you can test it anyway. Your version is old and some changes might have been done to the code so it's not a surprise if it's different from recent ones (or may be my version is too old) You might scan the whole sm master directory for "plugins", I use Total commander for it: - Launch Total Commander. - In the active window go to the sm master folder. - Press Alt + F7 on your keyboard. - Enter the query to the "Search For". In your case it's "plugins" (don't forget the quotes) - In "Search In" you can see the location where the search will be performed. - Click on the "Start Search" button, the list of results will be displayed below the search options, you can click on - the file and go to its location directly in the search window.
So, I would try to modify each occasion and test the result.
Сообщение отредактировал Nail - Четверг, 30.11.2017, 15:11:44 |
| |
| |
|
aphrodit
|
Дата: Четверг, 30.11.2017, 19:20:04 | Сообщение # 15 |
 |
Сообщений: 12
Репутация: 0 [ +/- ]
|
|
hi AdabraIM
please upload this for me tnx
|
| |
| |