Raised This Month: $ Target: $400
 0% 

Hook Native (file.inc)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Karibeean
Junior Member
Join Date: May 2013
Old 03-30-2017 , 14:48   Hook Native (file.inc)
Reply With Quote #1

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, ...)
Karibeean is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 03-30-2017 , 15:01   Re: Hook Native (file.inc)
Reply With Quote #2

Firstly, update your server and remove dproto.
Secondly, there is no native called list_dir.

You can hook natives from amxx with orpheu module.
__________________
HamletEagle is offline
Karibeean
Junior Member
Join Date: May 2013
Old 03-30-2017 , 15:13   Re: Hook Native (file.inc)
Reply With Quote #3

Im using ReHLDS updated and im not using dproto.

Is there a example to hook the native ?
Karibeean is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 03-30-2017 , 15:30   Re: Hook Native (file.inc)
Reply With Quote #4

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.
klippy is offline
Karibeean
Junior Member
Join Date: May 2013
Old 03-30-2017 , 16:09   Re: Hook Native (file.inc)
Reply With Quote #5

Is 1 user to all Servers... Thanks for the suggest
Karibeean is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 03-30-2017 , 16:49   Re: Hook Native (file.inc)
Reply With Quote #6

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.
klippy is offline
PRoSToTeM@
Veteran Member
Join Date: Jan 2010
Location: Russia, Ivanovo
Old 03-31-2017 , 10:27   Re: Hook Native (file.inc)
Reply With Quote #7

1 user - 1 server.
__________________
PRoSToTeM@ is offline
Send a message via ICQ to PRoSToTeM@ Send a message via Skype™ to PRoSToTeM@
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:19.


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