Skip to content

djskual/MibExplorer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MibExplorer

MibExplorer Banner

MibExplorer is a powerful WPF tool for exploring and controlling Volkswagen MIB2/MIB2.5 systems over SSH.

Built for advanced users, reverse engineering, and deep MIB system access.

MibExplorer screenshot

It provides:

  • a graphical file explorer
  • a complete SSH lifecycle management system
  • an interactive remote shell console
  • a built-in remote file editor with inline diff
  • an advanced side-by-side file diff viewer
  • a powerful Script Center for remote execution
  • and a full Coding Center for direct MIB long coding management

✨ Key Features

📁 Remote File Explorer

  • Full remote filesystem browsing (TreeView + ListView)
  • Lazy loading for performance
  • Context menu operations (files & folders)
  • Symlink support (navigation + visibility)
  • Hidden files support

🔁 File & Folder Operations

  • Download / upload files

  • Rename / delete files and folders

  • Recursive folder upload

  • Folder extraction

  • Safe folder replace:

    • temporary upload
    • backup
    • atomic swap
    • cleanup

🧠 Smart Filename Mapping

  • Handles Linux filenames incompatible with Windows
  • Generates .mibexplorer-map.json only when required
  • Restores original filenames on re-upload
  • Enables safe extract → edit → re-upload workflows

🖥️ Remote Shell Console

MibExplorer Shell

MibExplorer includes a built-in interactive remote shell console.


Features

  • Real persistent SSH shell session (no command emulation)
  • Interactive command execution
  • Live remote output display
  • Command history navigation (Up / Down)
  • Clear console (Ctrl + L)
  • Copy all output
  • Save console log to file
  • Themed context menu
  • Single console instance management

Console Rendering

  • Terminal-like prompt and command flow
  • Prompt-aware formatting:
    • user/host (cyan)
    • path (light blue)
  • Distinct colors for:
    • commands (white)
    • normal output (light gray)
    • errors (red)
    • warnings (orange)
    • system messages [shell] (blue, italic)
  • Clean spacing and improved readability
  • Output trimming to prevent memory overflow

Behavior

  • Detects SSH connection loss in real time
  • Automatically disables input when disconnected
  • Keeps log available after disconnection
  • Fully integrated with MibExplorer theme and UI

Integration

  • Open folders directly from the file explorer
  • Right-click → Open in Shell
  • Automatically navigates to the selected path

🧩 Script Center

MibExplorer ScripCenter

MibExplorer now includes a built-in Script Center, allowing you to execute custom scripts directly on the MIB over SSH.


Features

  • Execute scripts directly on the MIB over SSH
  • Supports:
    • single scripts
    • full script packages (folder with run.sh)
  • Built-in official script distribution system
  • Automatic workflow:
    • upload to remote /tmp
    • set execution permissions
    • execute script
    • capture output
    • automatic cleanup
  • Script metadata support (Type / Version / Author)

Execution Log

  • Real-time output streaming
  • Clear and structured log display
  • Copy log to clipboard
  • Clear log functionality
  • Displays remote execution workspace

Behavior

  • Scripts are executed in an isolated temporary directory
  • No persistent modification unless explicitly done by the script
  • Automatic cleanup after execution
  • Exit code detection and reporting

🔐 Official Script Integrity

Official scripts are protected by a SHA-256 integrity system.

Behavior

  • Integrity is verified before execution
  • If a script has been modified locally:
    • execution is blocked
    • a prompt allows restoring the official version
  • Only the affected script/package is re-downloaded
  • No full re-sync is required

Notes

  • Ensures Official scripts remain trusted and consistent
  • Prevents accidental or malicious local modifications
  • Custom scripts are not affected

Integration

  • Fully integrated into MibExplorer UI
  • Uses existing SSH connection
  • Designed for advanced workflows:
    • diagnostics
    • reverse engineering
    • system inspection
    • SVM-related operations

Notes

  • Scripts must be compatible with QNX shell environment
  • Limited toolset on MIB (no full GNU environment)
  • Line endings must be LF (\n)
  • Official scripts require internet connection to update
  • Official scripts are versioned and validated using SHA-256
  • Custom scripts remain fully local and unaffected

⚠️ Scripts are executed with root privileges on the MIB.


🌐 Official Script Distribution

MibExplorer includes a built-in system to download and manage official scripts directly from GitHub.

Features

  • One-click update via "Update Official"
  • Scripts are dynamically fetched (no need for new app releases)
  • Separation between:
    • Official/ scripts (managed by MibExplorer)
    • Custom/ scripts (user-defined)

Update Feedback

The update system provides a detailed synchronization log:

  • [ADDED] new scripts
  • [UPDATED] updated scripts with version change
  • [REMOVED] scripts no longer present in repository
  • [UNCHANGED] scripts already up to date

This allows full visibility on what changed during an update.

Structure

Scripts/
	Official/
		manifest.json
		ScriptName/
	Custom/
		YourScripts.sh

Benefits

  • Always up-to-date scripts
  • Cleaner application releases
  • Easier script sharing and contribution

🧰 Script Center SDK

MibExplorer provides a lightweight Script Center SDK to help create compatible and safe scripts.

What it includes

  • Script package template
  • Shared shell helper functions
  • Standardized logging and behavior
  • QNX-compatible utilities

Location

The SDK template is available in: Scripts/Examples/TemplatePackage/

Goals

  • Simplify script creation
  • Ensure compatibility with MIB environment
  • Provide consistent logging and structure
  • Reduce errors and unsafe operations

Usage

  1. Copy the template package
  2. Rename it
  3. Implement your logic in run.sh
  4. Use SDK helpers for common operations

Script Header Convention

Each script should start with:

#!/bin/sh
# Type: ReadOnly | Apply | Dangerous
# Version: x.y.z
# Author: YourName
# Description line 1
# Description line 2
# Description line 3

Header Rules

  • The first commented line must define the script type
  • The second commented line must define the script version
  • The third commented line must define the author
  • Up to 3 description lines are supported
  • Official scripts are versioned and validated using SHA-256

Contribution

If you create useful scripts, feel free to submit a PR.


🚗 Coding Center

MibExplorer CodingCenter

MibExplorer now includes a powerful built-in Coding Center for direct 5F long coding management on Volkswagen MIB systems.

Designed to combine the best workflows from ODIS, VCDS and raw engineering tools.


Features

  • Direct read of current 5F coding from the MIB
  • Automatic VIN detection
  • Full decoding through internal feature catalog
  • Safe full-blob coding write with verification
  • Persistent write confirmed after reboot

Editing Modes

ODIS-style Features View

  • Human readable coding parameters
  • Dropdown / checkbox editing
  • Current value vs new value comparison

VCDS-style Raw Coding View

  • Byte-by-byte coding access
  • Bit / multibit decoding
  • Direct HEX byte editing
  • Direct binary byte editing
  • Full synchronization with Features view

Direct Long Coding View

  • Paste or edit full coding string manually
  • Instant decoding of imported coding
  • Auto-generated changes preview

Changes & Safety

  • Dedicated Changes tab with clear diff display
  • Byte old/new comparison
  • Automatic snapshot created before Apply
  • One-click snapshot restore
  • Readback verification after write
  • Safe full 4101 blob write workflow

History

  • Per-vehicle coding history
  • Snapshot labels
  • Restore previous coding versions instantly

Integration

  • Fully integrated into MibExplorer UI
  • Uses existing SSH connection
  • No external coding tools required

🧑‍💻 Remote File Editor

MibExplorer FileEditor

MibExplorer includes a built-in remote file editor for editing files directly on the MIB over SSH.

Features

  • Open files from explorer (double-click / context menu)
  • Full text editing over SSH
  • Explicit save with overwrite
  • Atomic save (temporary file + replace)
  • RW mount handling for writable paths
  • Read-only fallback for protected areas
  • Reload file support
  • Unsaved changes protection (Save / Discard / Cancel)

Inline Diff (New)

The editor now includes a built-in inline diff system, allowing you to visualize changes directly inside the file.

Features

  • Line-level highlighting (added / modified)
  • Inline token-level diff highlighting
  • Dedicated left gutter markers
  • Fully synchronized with the diff viewer
  • Toggle inline diff on/off instantly

Diff Navigation

  • Navigate between changes directly inside the editor
  • Previous / Next controls
  • Live position indicator (n / total)
  • Caret-aware navigation behavior

🔍 Advanced File Diff Viewer

MibExplorer FileDiff

MibExplorer includes a powerful side-by-side diff viewer to validate changes before saving.

Features

  • Side-by-side comparison (Original vs Current)
  • Line-level and token-level diff
  • Accurate detection of:
    • additions
    • deletions
    • modifications
  • Smart alignment using LCS-based algorithm
  • Automatic merging of similar add/remove pairs into modified lines
  • Git-like grouping of repeated change markers
  • Navigation between differences
  • Collapsible unchanged sections

Diff Options

  • Ignore whitespace changes
  • Show invisible characters (spaces, tabs)
  • Collapse unchanged sections

Whitespace Handling

  • Consistent tab rendering (tab size = 4)
  • Unified whitespace handling between editor and diff
  • Accurate alignment for column-based text
  • No mismatch between tabs and spaces rendering

Behavior

  • No false "modified lines" after deletions
  • Stable diff even with complex edits
  • Designed for real-world MIB file structures

🔐 SSH Management (Core Feature)

MibExplorer provides a complete SSH lifecycle system for MIB devices.


📦 SSH Installation (via SD SWDL)

  • Generates a full SWDL-compatible SD package

  • No external tools required

  • Includes:

    • SSH payload (sshd)
    • public key (GEM)
    • scripts and checksums

Install process:

  • Deploys SSH to MIB filesystem

  • Patches startup.sh safely (with backup)

  • Configures:

    • inetd (SSH service)
    • firewall (pf*.conf)
  • Uses boot-time finalizer (finish_ssh_boot.sh)

  • Generates host keys on first boot

  • Logs execution to SD card

Cleanup:

  • Removes SWDL temporary files
  • Removes MibExplorer.info (FileCopyInfo)

🔁 SSH Key Update (No reinstall)

  • Replaces only authorized_keys
  • No payload reinstall
  • No system modification
  • Fast and safe

🧹 SSH Uninstall (via SD)

  • Full uninstall using SWDL package

  • Safe post-reboot cleanup

  • Removes:

    • SSH payload
    • /root/.ssh
    • authorized_keys
    • /root/scp
    • /root/.profile
  • Restores:

    • inetd.conf
    • firewall rules
  • Removes:

    • SWDL artifacts
    • MibExplorer.info
  • Keeps startup.sh hook intentionally


⚡ Direct SSH Uninstall (No SD Required)

  • Uninstall SSH directly from MibExplorer
  • Requires active SSH connection

Behavior:

  • Removes:

    • SSH payload
    • /root/.ssh
    • defensive cleanup of /root/.sshd
    • authorized_keys
    • scp
    • .profile
  • Restores:

    • inetd.conf (backup or fallback)
    • firewall rules
  • Cleans:

    • SWDL artifacts
    • MibExplorer.info

Notes:

  • SSH session may remain active until reboot
  • Reboot is recommended after uninstall
  • startup.sh hook is preserved

🌐 Automatic MIB IP Detection

  • Detects active Wi-Fi interface (MIB hotspot)

  • Works without internet access

  • Uses:

    • default gateway
    • or DHCP fallback
  • Validates IP via SSH (port 22)

👉 Eliminates false detections and improves reliability


🛡️ Safety & Design

MibExplorer is built with a strong focus on safety and reversibility:

  • Controlled RW/RO remount handling
  • Atomic file operations
  • Backup-based restore logic
  • Defensive cleanup mechanisms
  • No automatic destructive actions
  • Full user control over operations

🧪 Script Examples

Example scripts are available in the Scripts/Examples/ folder.

These demonstrate how to:

  • execute a single script with Script Center
  • execute a full script package (run.sh)
  • interact with MIB filesystem
  • extract diagnostic data
  • build more advanced workflows

Production-ready Script Center packages are available via the Official Script system and can be downloaded directly from Script Center.

Scripts are designed for use with Script Center.


🔌 Requirements

  • Windows 10 / 11
  • .NET 8 Runtime
  • Volkswagen MIB2 / MIB2.5 with SSH capability

🔑 SSH Setup

New setup

  1. Tools → Generate SSH Keys
  2. Install SSH via SD package
  3. Connect using generated private key

Existing setup

  • Use your existing private key
  • No reinstall required

🔗 Connecting to MIB

  1. Connect PC to MIB Wi-Fi hotspot
  2. Use auto-detect (recommended) or enter IP manually
  3. Select private key
  4. Connect

📦 Current Capabilities

  • SSH install / update / uninstall (SD + direct)
  • Remote filesystem explorer
  • File & folder operations
  • Safe replace system
  • Smart filename mapping
  • Remote shell console
  • Script Center (script execution on MIB)
  • Official script distribution with versioning and SHA-based updates
  • Remote file editor
  • Inline diff editor (line + token level)
  • Diff navigation inside editor
  • Advanced file diff viewer
  • Full Coding Center (read / edit / apply / restore)
  • IP auto-detection with validation

🙏 Acknowledgements

Inspired by the MIB modding ecosystem:

  • MIB2Toolbox
  • MoreIncredibleBash

📄 License

This project is licensed under the MIT License.

⚠️ Disclaimer

This software is provided for free. If you paid for it, you have been scammed.

This tool is intended for advanced users.

Scripts executed via Script Center run with root privileges. Always review scripts before executing them.

Modifying a MIB system always carries risk. You are responsible for any changes made to your device. Use at your own risk. No warranty is provided.

About

Advanced WPF tool for Volkswagen MIB2/MIB2.5 systems — SSH lifecycle, file explorer, remote shell, powerful Script Center, and full Coding Center.

Topics

Resources

Stars

Watchers

Forks

Contributors