AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Hook Native (file.inc) (https://forums.alliedmods.net/showthread.php?t=295601)

Karibeean 03-30-2017 14:48

Hook Native (file.inc)
 
Hi everyone.

I want to know if exists a way to hook a native (open_dir in this case) and block it

The reason is the people can access Linux User Home with this native (and list_dir, ...)

HamletEagle 03-30-2017 15:01

Re: Hook Native (file.inc)
 
Firstly, update your server and remove dproto.
Secondly, there is no native called list_dir.

You can hook natives from amxx with orpheu module.

Karibeean 03-30-2017 15:13

Re: Hook Native (file.inc)
 
Im using ReHLDS updated and im not using dproto.

Is there a example to hook the native ?

klippy 03-30-2017 15:30

Re: Hook Native (file.inc)
 
AMXX is open source, you can edit it to suit your needs.

However, you should set permissions properly for users to not let them do that. That's the correct thing to do.

Karibeean 03-30-2017 16:09

Re: Hook Native (file.inc)
 
Is 1 user to all Servers... Thanks for the suggest

klippy 03-30-2017 16:49

Re: Hook Native (file.inc)
 
I'm not into hosting and all that stuff, but I am sure that 1 user for all servers, especially with elevated privileges, is a huge security risk.

PRoSToTeM@ 03-31-2017 10:27

Re: Hook Native (file.inc)
 
1 user - 1 server.


All times are GMT -4. The time now is 17:53.

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