Exploit databaseDownload repository ZIP
GH-7f80045c7cbfbe7346f35ae76d8e8b3e
visdev23/vulnerable-docker--cve-2023-30212-
Sources for CVE-2023-30212
4 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files39
visdev23/vulnerable-docker--cve-2023-30212-Revision ffe1b8511328
- ↑..Parent directory
- api/
- backup/
- class/
- data/
- editor/
- font/
- install/
- ourphp/
- plugs/
- uploadfile/
- userplus/
- index.htm
- ourphp_Tree.class.php
- ourphp_ajax.class.php
- ourphp_code.php
- ourphp_coupon.php
- ourphp_dz.class.php
- ourphp_function.class.php
- ourphp_imagecompress.php
- ourphp_integral.php
- ourphp_list.class.php
- ourphp_mail.class.php
- ourphp_mail.php
- ourphp_navigation.class.php
- ourphp_page.class.php
- ourphp_play.class.php
- ourphp_sae.class.php
- ourphp_search.class.php
- ourphp_shop.class.php
- ourphp_shop_wap.class.php
- ourphp_shopcarajax.class.php
- ourphp_shoppingcart.class.php
- ourphp_shoppingorders.class.php
- ourphp_system.class.php
- ourphp_template.class.php
- ourphp_userreg.class.php
- ourphp_validateCode.class.php
- ourphp_view.class.php
- ourphp_watermark.php
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
data/function/ourphp_Tree.class.php
PHP · 2,318 bytes<?php
/*
* Ourphp - CMS建站系统
* Copyright (C) 2014 ourphp.net
* 开发者:哈尔滨伟成科技有限公司
*-------------------------------
* 模板操作类(2014-10-15)
*-------------------------------
*/
if(!defined('OURPHPNO')){exit('no!');}
class Tree {
private $result;
private $tmp;
private $arr;
private $already = array();
/**
* 构造函数
*
* @param array $result 树型数据表结果集
* @param array $fields 树型数据表字段,array(分类id,父id)
* @param integer $root 顶级分类的父id
*/
public function __construct($result, $fields = array('id', 'uid'), $root = 0) {
$this->result = $result;
$this->fields = $fields;
$this->root = $root;
$this->handler();
}
/**
* 树型数据表结果集处理
*/
private function handler() {
foreach ($this->result as $node) {
$tmp[$node[$this->fields[1]]][] = $node;
}
@krsort($tmp);
for ($i = count($tmp); $i > 0; $i--) {
foreach ($tmp as $k => $v) {
if (!in_array($k, $this->already)) {
if (!$this->tmp) {
$this->tmp = array($k, $v);
$this->already[] = $k;
continue;
} else {
foreach ($v as $key => $value) {
if ($value[$this->fields[0]] == $this->tmp[0]) {
$tmp[$k][$key]['child'] = $this->tmp[1];
$this->tmp = array($k, $tmp[$k]);
}
}
}
}
}
$this->tmp = null;
}
$this->tmp = $tmp;
}
/**
* 递归
*/
private function recur($arr, $id) {
foreach ($arr as $v) {
if ($v[$this->fields[0]] == $id) {
$this->arr[] = $v;
if ($v[$this->fields[1]] != $this->root) $this->recur($arr, $v['uid']);
}
}
}
/**
* 菜单 多维数组
*
* @param integer $id 分类id
* @return array 返回分支,默认返回整个树
*/
public function leaf($id = null) {
$id = ($id == null) ? $this->root : $id;
return $this->tmp[$id];
}
/**
* 导航 一维数组
*
* @param integer $id 分类id
* @return array 返回单线分类直到顶级分类
*/
public function navi($id) {
$this->recur($this->result, $id);
krsort($this->arr);
return $this->arr;
}
}
function array2tree($node,$root=0){
$arr = array();
foreach ($node as $v) {
if ($v['uid'] == $root) {
$v['child']=array2tree($node,$v['id']);
$arr[]=$v;
}
}
return $arr;
}
?>