AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Extensions (https://forums.alliedmods.net/forumdisplay.php?f=134)
-   -   [EXTENSION] System (https://forums.alliedmods.net/showthread.php?t=73285)

raydan 06-26-2008 08:48

[EXTENSION] System
 
3 Attachment(s)
This extension will let you run a system command(create process), encryption , decryption and get a random string.

Support css,dods, tf2

Natives

PHP Code:

native bool:RunSystemCommand(const String:command[],flags=PRI_NORMAL|CREATE_NEW_CONSOLE,SW_flag=SW_SHOW);
native bool:Rc4Encryption(const String:plaintext[], const String:pwd[], String:ciphertext[], maxlength,bool:IsLowerCase=true);
native bool:Rc4Dencryption(const String:ciphertext[], const String:pwd[], String:plaintext[], maxlength);
native Md5Encryption(const String:plaintext[], String:output[], maxlengthbool:IsLowerCase=truebool:UseASM=false);
native bool:GetRandomString(String:output[], maxlengthlength 8bool:IncludeNumber=truebool:IncludeLowerCase=truebool:IncludeUperCase=truebool:IncludeSymbol=true); 

WARNING
RunSystemCommand:
If you install this on your server, you do so at your own risk. All legal responsibility is yours if something bad happens.
Never let this function interact with player-created strings. This opens too many avenues for abuse.

Notes
RunSystemCommand, command will block if include illegal value.
Md5Encryption, use ASM can speed up ~20% encryption.

Changelog
Version 1.0.1
support windows & linux
RunSystemCommand only work on windows

Version 1.0.0
initial release


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

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