Raised This Month: $ Target: $400
 0% 

[ANY] Work with memory in SourcePawn


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
2010kohtep
Junior Member
Join Date: Aug 2017
Old 10-18-2017 , 08:22   Re: [ANY] Work with memory in SourcePawn
Reply With Quote #5

Quote:
Originally Posted by Naydef View Post
Looks well, but I'm not sure if you can call functions in buffer for data. Does SDKCall() already call VirtualProtect() with execute flag?
If you look at the SourceMod source code, namely the CallWrapper::Execute method, then you can see that VirtualProtect() is not called. There's just the pointer to the code that will be called. No manipulation of the code memory occurs.

Quote:
Originally Posted by Naydef View Post
What about Linux? Probably we can call kernel with int 80h.
Yes, in Linux, you can use int 80h to call the kernel, but I did not reproduce it myself, because my server uses Windows. In theory this is very much possible.

Quote:
Originally Posted by Naydef View Post
This makes me think you can exploit/hack servers/OS only with embedding shellcode in plugin.
Yes, this will allow you to write a plugin that will have access to the WinAPI/NativeAPI/LinuxKernel functions, with all the consequences, of course, but I think you will not have trouble checking out source code of the plugin before installing it on the server. But if you are developing your own plugin, then this will give you a number of possibilities, as for me.

Last edited by 2010kohtep; 10-19-2017 at 18:04.
2010kohtep is offline
 


Thread Tools
Display Modes

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 23:15.


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