Jump to content

Php Functions Availble In Mdscript


Chewett

Recommended Posts

  • Root Admin

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 by Chewett
Link to comment
Share on other sites

  • 4 weeks later...
  • 5 months later...
  • 3 years later...

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 time
Because 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',
 
//math
Because of 'mod':
'fmod'
Because of 'ini':
'is_finite',
'is_infinite'
Because of 'T_SR':
'mt_srand',
Because of 'val':
'lcg_value',
 
//string
Because of 'ext':
'similar_text'
Because of 'split':
'chunk_split','str_split',
Because of 'sprintf':
'vsprintf',
Because of 'fprintf':
'vfprintf' ,
 
//arrays
Because of 'ext':
'next',
Because of 'T_AS'
'array_intersect_assoc',
Because of 'val':
'array_count_values' ,
'array_values',
 
//variables
Because 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]
Link to comment
Share on other sites

  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Forum Statistics

    17.5k
    Total Topics
    182.5k
    Total Posts
  • Recently Browsing

    • No registered users viewing this page.
  • Upcoming Events

    No upcoming events found
  • Recent Event Reviews

×
×
  • Create New...