Контакты (заказать плагин/исправить ошибки/другое) Поиск

[ вход ]
[ последние сообщения ]

  • Страница 1 из 5
  • 1
  • 2
  • 3
  • 4
  • 5
  • »
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 [ +/- ]
Тоже интересно! vshapke
 
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 grust
 
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 grust
please Do It and upload for me plach
thank you klas klas
 
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! plach grust
No one is willed to help me and you might be my last chance of help pleaseee grust
Thanks! klas
 
AdabraIM Дата: Среда, 29.11.2017, 14:24:36 | Сообщение # 9
Сообщений: 32
Репутация: 0 [ +/- ]
Hello
Ive got some other small problems But I cant type and communicate well here plach
I really need some help and no one has helped me like you before ! klas

--------------------------------------
--------------------------------------
Oh thanks !
Thats fine for me klas

Добавлено (29.11.2017, 14:24:36)
---------------------------------------------
Hi again
My first Trouble is this:
I think that the way you offer to block sm commands "such as sm plugins list" is so complicated !
Because I have got a plugin which can do this But It needs dHooks .... Which is not supported by CS:S v.34
The first possiblity seems that I have to update and bring a newer gamedata (Which is not anywhere!) or I need another extension!
Maybe There is another thing wrong I dont really know exactly! grust
Can you please help me with this to do the issue in a more efficient and easy way?
Thanks klas
My game details : MM: 1.10 SM:1.8.0.36 Game : Counter Strike Source
+The plugin that I mentioned seems to work ok with CS:GO vshapke


Сообщение отредактировал AdabraIM - Среда, 29.11.2017, 14:27:33
 
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? klas
Or would it be possible to do this part for me ?(sorry for my rudeness grust )
 
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
 
AdabraIM Дата: Четверг, 30.11.2017, 10:58:43 | Сообщение # 13
Сообщений: 32
Репутация: 0 [ +/- ]
I got the point ... But although it is so dirty it isnt the thing I am after however I am going to use it in my other Servers... tnx klas
PLUS : Now the only editting I have to do on sm master is putting // before those two lines to block command "sm plugins"+"sm plugins list"! Am I right? vshapke
Thank you very much by the way! klas
------------------------------------
------------------------------------
Added:
I cant find the exact commands that you have mentioned ! They are like this:
rootmenu->AddRootConsoleCommand3("plugins", "Manage Plugins", this);
Is it ok with the number 3 ?or do I have to look for other lines?


Сообщение отредактировал AdabraIM - Четверг, 30.11.2017, 11:01:54
 
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
 
  • Страница 1 из 5
  • 1
  • 2
  • 3
  • 4
  • 5
  • »
Поиск: