Root Admin Chewett Posted October 28, 2009 Root Admin Report Posted October 28, 2009 (edited) Here is a list of PHP functions avalible in MDScript: Below is the Initial Post Mur made: If anyone spots a possible abuse with any of the functions, let me know, i didnt checked ALL of them so i might have missed some with issues. //math 'abs','acos','acosh','asin','asinh','atan2','atan' ,'atanh','base_convert','bindec','ceil','cos','cosh', 'decbin','dechex','decoct','deg2rad','exp','expm1',' floor','fmod','getrandmax','hexdec','hypot','is_finite', 'is_infinite','is_nan','lcg_value','log10','log1p','log' ,'max','min','mt_getrandmax','mt_rand','mt_srand', 'octdec','pi','pow','rad2deg','rand','round','sin' ,'sinh','sqrt','srand','tan','tanh', //string 'print','echo','count_chars','crc32','crypt','explode' ,'chunk_split','htmlspecialchars','htmlspecialchars_ decode', 'get_ html_ translation_ table','printf','implode','md5','number_format','ord',' chr','chop','lcfirst', 'similar_text','str_pad','str_ireplace','str_repeat','str_replace' ,'str_rot13','str_shuffle','str_split', 'str_word_count','strcasecmp','strchr','strcmp','strip_tags', 'strcspn','stripos','stripslashes','stristr', 'strlen','strnatcasecmp','strnatcmp','strncasecmp','strncmp', 'strpbrk','strpos','strrchr','strrev','strrev', 'strrpos','strspn','strstr','strtok','strtolower','strtoupper' ,'strtr','substr_compare','substr_count', 'substr_replace','substr','trim','ucfirst','ucwords','vfprintf' ,'vprintf','vsprintf','wordwrap', //arrays 'array_change_key_case','array_chunk','array_combine','array_count_values' ,'array_diff_assoc','array_diff_key', 'array_diff','array_fill_keys','array_fill','array_flip', 'array_intersect_assoc','array_intersect_key','array_intersect', 'array_keys','array_merge_recursive','array_merge' ,'array_multisort','array_pad', 'array_pop','array_product','array_push','array_rand','array_replace_recursive' ,'array_replace', 'array_reverse','array_search','array_shift','array_slice','array_splice' ,'array_sum', 'array_unique', 'array_unshift','array_values','array','arsort','asort', 'count','current','each','end','in_array','key',' krsort','ksort','list','natcasesort','natsort','next', 'pos','prev','range','reset','rsort','shuffle','sizeof' ,'sort','uasort', //variables 'is_array','is_binary','is_bool','is_float','is_double',' is_int','is_integer','is_null','is_numeric','is_string', 'is_scalar','isset','serialize','unserialize','unset',//var_dump //date time 'date','time','date_add','date_create','date_diff','date_format' ,'date_interval_format', 'date_modify','date_offset_get','date_parse','date_sub','date_sun_info' ,'date_sunrise','date_sunset', 'date_timestamp_get','date_timezone_get','getdate','gettimeofday', 'gmdate','gmmktime','gmstrftime','idate','localtime','microtime' ,'mktime','strftime','strptime','strtotime', 'timezone_location_get','timezone_name_get','timezone_offset_get','timezone_open' ,'timezone_transitions_get', //encrypt 'mcrypt_ecb','mcrypt_cfb','mcrypt_cbc','mcrypt_ofb','hash', //url 'url','urldecode','urlencode','base64_decode','base64_encode' , //country 'geoip_country_code_by_name','geoip_country_name_by_name','geoip_time_zone_by_country_and_region' , //regular expressions 'preg_filter','preg_last_error','preg_match_all','preg_match','preg_quote' ,'preg_replace_callback','preg_replace','preg_split', ps@awi plenty of time features to play with, some are realy creative too Btw, MD day is given by echo date('z'); Edited November 23, 2009 by Chewett Quote
cutler121 Posted November 23, 2009 Report Posted November 23, 2009 I was trying to test to see if a key exists in an array with the function : array_key_exists() which is listed as a supported PHP function, but it throws an MD error saying key_exists is not allowed. Can this be updated? Cutler Quote
Root Admin Chewett Posted November 23, 2009 Author Root Admin Report Posted November 23, 2009 Hmm thats very intresting, I have removed it from the list. Quote
lightsage Posted May 5, 2010 Report Posted May 5, 2010 (edited) 'geoip_country_code_by_name' , 'geoip_country_name_by_name' and 'geoip_time_zone_by_country_and_region' don't work because they contain "try" EDIT, forgot to copy paste 1 function Edited May 5, 2010 by lightsage Quote
Kaya Posted June 9, 2013 Report Posted June 9, 2013 The following functions don't work because they contain a restricted keyword: [spoiler]Because of 'try'://country 'geoip_country_code_by_name','geoip_country_name_by_name','geoip_time_zone_by_country_and_region' //date timeBecause of 'parse': 'date_parse'Because of 'open': 'timezone_open'Because of 'mod': 'date_modify'Because of 'INF': 'date_sun_info' ,Because of 'val': 'date_interval_format',Because of 'E_PARSE': 'date_parse', //mathBecause of 'mod': 'fmod'Because of 'ini': 'is_finite', 'is_infinite'Because of 'T_SR': 'mt_srand',Because of 'val': 'lcg_value', //stringBecause of 'ext': 'similar_text'Because of 'split': 'chunk_split','str_split',Because of 'sprintf': 'vsprintf',Because of 'fprintf': 'vfprintf' , //arraysBecause of 'ext': 'next',Because of 'T_AS' 'array_intersect_assoc',Because of 'val': 'array_count_values' , 'array_values', //variablesBecause of 'is_a': 'is_array', //regular expressions Because of 'split': 'preg_split',Because of 'error': 'preg_last_error',Because of 'call': 'preg_replace_callback', [/spoiler] That leaves us with the following functions that should work: [spoiler] //math 'abs','acos','acosh','asin','asinh','atan2','atan' ,'atanh','base_convert','bindec','ceil','cos','cosh', 'decbin','dechex','decoct','deg2rad','exp','expm1',' floor','getrandmax','hexdec','hypot','is_nan', 'log10','log1p','log' ,'max','min','mt_getrandmax','mt_rand','octdec','pi','pow','rad2deg','rand', 'round','sin' ,'sinh','sqrt','srand','tan','tanh', //string 'print','echo','count_chars','crc32','crypt','explode' ,'htmlspecialchars','htmlspecialchars_ decode', 'get_ html_ translation_ table','printf','implode','md5','number_format','ord',' chr','chop','lcfirst', 'str_pad','str_ireplace','str_repeat','str_replace' ,'str_rot13','str_shuffle','str_word_count', 'strcasecmp','strchr','strcmp','strip_tags', 'strcspn','stripos','stripslashes','stristr','strlen', 'strnatcasecmp','strnatcmp','strncasecmp','strncmp', 'strpbrk','strpos','strrchr','strrev','strrev', 'strrpos','strspn','strstr','strtok','strtolower','strtoupper' ,'strtr','substr_compare','substr_count', 'substr_replace','substr','trim','ucfirst','ucwords','vprintf','wordwrap', //arrays 'array_change_key_case','array_chunk','array_combine','array_diff_assoc','array_diff_key', 'array_diff','array_fill_keys','array_fill','array_flip','array_intersect_key','array_intersect', 'array_keys','array_merge_recursive','array_merge' ,'array_multisort','array_pad','array_pop', 'array_product','array_push','array_rand','array_replace_recursive' ,'array_replace', 'array_reverse','array_search','array_shift','array_slice','array_splice' ,'array_sum','array_unique', 'array_unshift','array','arsort','asort','count','current','each','end','in_array','key','krsort','ksort','list', 'natcasesort','natsort','pos','prev','range','reset','rsort','shuffle','sizeof' ,'sort','uasort', //variables 'is_binary','is_bool','is_float','is_double',' is_int','is_integer','is_null','is_numeric','is_string','is_scalar', 'isset','serialize','unserialize','unset' //date time 'date','time','date_add','date_create','date_diff','date_format' ,'date_offset_get','date_sub', 'date_sunrise','date_sunset','date_timestamp_get','date_timezone_get','getdate','gettimeofday', 'gmdate','gmmktime','gmstrftime','idate','localtime','microtime' ,'mktime','strftime','strptime','strtotime', 'timezone_location_get','timezone_name_get','timezone_offset_get', ,'timezone_transitions_get', //encrypt 'mcrypt_ecb','mcrypt_cfb','mcrypt_cbc','mcrypt_ofb','hash', //url 'url','urldecode','urlencode','base64_decode','base64_encode' , //regular expressions 'preg_filter','preg_match_all','preg_match','preg_quote' ,'preg_replace', [/spoiler] Quote
I am Bored Posted February 7, 2015 Report Posted February 7, 2015 Well, it would be nice if we could get 'int' as an allowed function, as I don't like implicit conversions. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.