Raised This Month: $12 Target: $400
 3% 

[EXTENSION] System


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
raydan
Senior Member
Join Date: Aug 2006
Old 06-26-2008 , 08:48   [EXTENSION] System
Reply With Quote #1

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
Attached Files
File Type: sp Get Plugin or Get Source (sample.sp - 429 views - 3.7 KB)
File Type: zip system_1_0_1_0.zip (117.5 KB, 285 views)
File Type: zip system_source.zip (24.6 KB, 260 views)

Last edited by raydan; 06-27-2008 at 00:34.
raydan is offline
Reply


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 04:36.


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