SA-MP Forums

SA-MP Forums (http://forum.sa-mp.com/index.php)
-   Plugin Development (http://forum.sa-mp.com/forumdisplay.php?f=18)
-   -   [Plugin] [REL] Execute (http://forum.sa-mp.com/showthread.php?t=100177)

JaTochNietDan 03/10/2009 01:11 PM

[REL] Execute
 
What is Execute?
This is a simple open-source plugin for Windows and Linux operating systems which will allow the user to execute commands from the SA-MP server.

* Not to be confused with an SSH plugin, which would technically allow you to connect remotely to an SSH server.

Functions Included
Code:

native exec(cmd[]); // Sends the command.
Download
Linux: https://github.com/JaTochNietDan/SA-..._Linux_1.0.zip
Windows: https://github.com/JaTochNietDan/SA-...indows_1.0.zip

Source: https://github.com/JaTochNietDan/SA-MP-Exec-Plugin

Westie 03/10/2009 02:26 PM

Re: [REL] Linux Shell
 
Code:

static cell AMX_NATIVE_CALL n_file_log( AMX* amx, cell* params )

{

        Logging = 1;

        if(Logging == 1) logprintf("FileManager logging enabled!");

        return 1;

}

Ahem!

JaTochNietDan 03/10/2009 03:21 PM

Re: [REL] Linux Shell
 
Silly me, thanks Westie :)

shady91 03/10/2009 03:26 PM

Re: [REL] Linux Shell
 
this for Linux only?still ill use this ;)

ill post how i get on with it ;) thanks.

MenaceX^ 03/10/2009 04:10 PM

Re: [REL] Linux Shell
 
Awesome! This was just requested by Ethan.

gijsmin 03/10/2009 04:50 PM

Re: [REL] Linux Shell
 
i got 1 question
what if you are a hoster and you host for anybody who uses this plugin
then he can change stuff in the dedicated/root server, right?

JaTochNietDan 03/10/2009 05:00 PM

Re: [REL] Linux Shell
 
Quote:

Originally Posted by Gijs (TSG-Hosting.de)
i got 1 question
what if you are a hoster and you host for anybody who uses this plugin
then he can change stuff in the dedicated/root server, right?

Yes, if you are running the server as root, you should not be running ANY gaming servers as root EVER. Every gaming server should be run under a seperate Linux user.

Woet 03/10/2009 05:04 PM

Re: [REL] Linux Shell
 
Quote:

Originally Posted by Gijs (TSG-Hosting.de)
i got 1 question
what if you are a hoster and you host for anybody who uses this plugin
then he can change stuff in the dedicated/root server, right?

If your panel is insecure, like most of them (chmods to 777, all servers are running under apache) then yes.
However, this is the problem of the host and not of SA-MP. If you sell servers, you're not supposed to be this stupid.

gijsmin 03/10/2009 05:26 PM

Re: [REL] Linux Shell
 
Quote:

Originally Posted by Woet
Quote:

Originally Posted by Gijs (TSG-Hosting.de)
i got 1 question
what if you are a hoster and you host for anybody who uses this plugin
then he can change stuff in the dedicated/root server, right?

If your panel is insecure, like most of them (chmods to 777, all servers are running under apache) then yes.
However, this is the problem of the host and not of SA-MP. If you sell servers, you're not supposed to be this stupid.

true
thanks this is a Good plugin
maby a idea to let it connect to a server with ssh

Meester Proper 23/10/2009 10:41 PM

Re: [REL] Linux Shell
 
It's possible to move the recordings of the npc from records to npcmodes with this plugin?


All times are GMT. The time now is 02:40 PM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.