`
blogfeifei
  • 浏览: 1196232 次
文章分类
社区版块
存档分类
最新评论

Cpanel PHP Restriction Bypass Vulnerability 0day

 
阅读更多
''' __ __ ____ _ _ ____ | // |/ __ / // | | | | _ / | / / | | | | / / | | | | |_) | | |//| | | | |/ // /| | | | _ $Directory = $Home_Directory . '.fantasticodata/' . $Script . '/' ; $Files = Get_Files ( $Directory ) ; if ( !empty ( $Files ) AND is_array ( $Files ) ) { $Temporary = natcasesort ( $Files ) ; } foreach ( $Files As $File ) { $Name = '' ; $Path = '' ; if ( strstr ( $File , "|" ) ) { $Name = explode ( "|" , $File ) ; $Name = $Name[1] ; } else { $Name = $File ; } /* Debugging */ // echo $Directory . $File . '
' ; if ( is_file ( $Directory . $File ) ) { include $Directory . $File ; if ( !empty ( $thisscriptpath ) ) { $Path = $thisscriptpath ; } else { $Path = $Home_Directory . 'public_html/' . $Name . '/' ; } if ( substr ( $Path , -1 ) != '/' ) { $Path = $Path . '/' ; } /* Debugging */ // echo $Path . 'fantversion.php

' ; if ( is_file ( $Path . 'fantversion.php' ) ) { include $Path . 'fantversion.php' ; if ( !empty ( $version ) ) { if ( in_array ( $version , $Version_Numbers ) ) { return 'Yes' ; } } } } } return 'No' ; }
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics