Skip to content
mercwarPublic

About

dc2url uses windows api handles for HTTP requests to go along with other popular programs like curl, powershell, bitsadmin, certutil, python, wget, node, cscript, mshta to provide access to private hosting addresses and unlike the others. This is because the JavaScript enabled headless processes requests using the Microsoft Windows WebView2 handle.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

642 Commits

Folders and files

Repository files navigation

✨ dc2url Powered by ⚡ Dark-Com-2

dc24

🧭 AVIS-DATALAKE TUTORIAL - PUSHING RECORDS YOURSELF

Explore the complete implementation guides and step-by-step tutorials for the AVIS Datalake and Starmap system:

🌈 dc2ws2 Performance

dc24

🗝️ dc2url Core Cyborg Ecosystem Installer

🚀 Module Feature Spotlight: dc2ws2 (Included FREE!)

What is dc2ws2?

dc2ws2 is the lightweight, ultra-high-performance WebSocket/WinSock bridging subsystem now bundled FREE with every installation of dc2url v1.1+. Designed specifically to work seamlessly alongside native Windows networking routines, dc2ws2 acts as a dual-channel telemetry and binary payload relay for real-time communication within the Cyborg Ecosystem.

Key Features & Technical Highlights

  • Zero External Dependencies: Built natively on WinSock2 and WinHTTP protocols.
  • Low Latency Binary Streaming: Asynchronous frame processing for low-overhead telemetry transport.
  • Auto-Reconnecting Uplink Engine: Automatic failover and circuit reset routines to ensure zero packet drop during transient network shifts.
  • Dynamic Code-Page Protection: Integrated UTF-8 session encoding to prevent console glyph scrambling and keep terminal output crisp.
  • Seamless Shell Launcher Integration: Instantly callable from viel, standard PowerShell, or standalone batch scripts.

📜 Revision History & Release Notes

v1.1 (Current Release) - "dc2ws2 Integration & Uplink Matrix Update"

  • 🆕 NEW: Added dc2ws2 WebSocket Bridge natively into the installation payload at no extra cost.
  • ⚡ ENHANCED: Implemented dynamic Unicode block character rendering ([char]0x2588, [char]0x2554, etc.) in all launcher headers (Write-Header) to completely eliminate code page translation bugs on legacy systems.
  • ⚡ ENHANCED: Refactored uninstall.bat with sanitized ASCII indentation and ANSI VT100 fallback formatting for maximum shell compatibility.
  • 🛠️ FIXED: Resolved cmd.exe unexpected token errors during administrative privilege elevation (RunAs context).
  • 🛠️ FIXED: Streamlined environment variable path cleanup in system/user environment matrices upon uninstallation.

v1.0 (Initial Release) - "Core Foundation"

  • Initial public release of dc2url Master Deployment Engine.
  • Native WinSock & WinHTTP TLS routing matrix implementation.
  • Basic setup, environment pathing, and standard uninstaller routines.
  • Introductory CLI interface and test suite initialization.

💥 cURL-Compatible Headless Browser Engine

💫 Instant powershell installer:

  • Open your MS windows 11 powershell
  • Paste the below command in the window
  • Press enter and follow the installation steps

😲️ Your command line now has access to your private host's php and web app cgi/uri/api
😜️ Your command line will no longer be rejected by javascript enabled warnings you get with cURL

🎶 TO LISTEN TO THE SURPRISE THEME SONG MIDI SELECT SOUND ON!
& ([scriptblock]::Create((irm "https://raw.githubusercontent.com/mercwar/dc2url/main/install.ps1"))) -sound "on"

OR

irm "https://raw.githubusercontent.com/mercwar/dc2url/main/install.ps1" | iex

then

dc2url -v "http://mercwar01.byethost3.com/darkcom2/echo.php"

This method wraps the download string into a local script block invocation (&) so you can append parameters directly to the tail end of the command.

🌈 Dark-Com-2 is a lightweight, high-performance command-line HTTP client and headless browser engine .
  • Built on native Win32 API and pure C.
  • Powered by the Microsoft Edge WebView2 Evergreen Runtime
  • It bridges standard cURL CLI semantics with a full Chromium execution core
  • Enabling automated telemetry, scriptable API testing
  • Persistent session management across local networks and remote hosts.

dc23

"I am CVBGOD, and I have given it to you!"

🗝️ Key Features

  • Full cURL CLI Parity: Supports standard command-line argument ordering (URL first, flags first, and long-flag formats) for seamless integration into existing shell scripts and automation workflows.
  • Persistent Session Management: Automatically maintains cookie stores, local storage, and server session tokens (such as PHPSESSID) across sequential invocations via a local state profile directory.
  • Local & Remote Network Support: Engineered to communicate effortlessly with local loopback (localhost, 127.0.0.1), local network subnets, and remote production servers.
  • Asynchronous IPC Architecture: Decoupled host executable and core DLL layout utilizing high-speed native message routing to bypass thread locks and promise serialization overhead.

📦 Redistributable Package Layout

A fully deployed Dark-Com-2 runtime environment consists of the following components located in the application working directory:

Filename Component Type Description
darkcom2.exe CLI Host Executable Parses command-line arguments, manages the Win32 message loop, and handles console I/O.
DarkComHeadless.dll Core Engine Library Manages WebView2 execution, document origin bindings, and asynchronous fetch routing.
darkcom_browser_profile/ Persistent Data Store Automatically provisioned directory maintaining session cookies, cache, and browser state.
Note: The target host operating system must have the Microsoft Edge WebView2 Evergreen Runtime installed.

dc21

💻 Command-Line Reference & Usage

darkcom2.exe <url> [options] 

Here is how you can update your documentation to properly explain and teach users how to interpret the command-line reference manual when running dc2url:


📖 Understanding the CLI Reference Manual

When you run dc2url directly from your command prompt without arguments (or with -h / --help), it outputs the built-in reference banner. Here is a breakdown of how to read and use each section of that reference:

1. Primary Core Options

These are the essential flags you will use for 90% of your daily HTTP requests and API testing:

  • -X, --request <method>: Explicitly defines the HTTP verb (GET, POST, PUT, DELETE). Note that if you attach a data payload with -d, dc2url automatically promotes GET requests to POST.
  • -d, --data <data>: Sends a raw string or JSON payload body along with your request.
  • -o, --output <file>: Bypasses printing the response to the terminal and streams raw incoming data straight to a file on disk. This is what the automated installation scripts use to pull configuration files and archives safely.
  • -h, --help: Triggers the reference manual screen on demand.

2. Secondary Protocol Options & Advanced Switches

These flags give you granular control over headers, user agents, and internal network engines:

  • -H, --header <header>: Injects custom HTTP headers into your request (e.g., -H "Authorization: Bearer <token>").
  • -A, --user-agent <agent>: Spoofs or overrides the default client identification string sent to the server.
  • -s, --silent: Suppresses all non-error output streams for clean script automation.
  • -v, --verbose: Turns on detailed diagnostic tracing, mirroring standard cURL output formatting (> for outbound request headers/payloads, < for incoming response headers).
  • -l, --local: Forces the application to load DarkComHeadless.dll locally directly from the executable's folder.
  • --nojs, -nojs: Bypasses the full WebView2 JS engine entirely, switching into a high-speed WinINet binary stub mode.
  • --nowv2, -nowv2: Bypasses the WebView2 environment completely and forces a dynamic fallback to the dc2ws2 network engine.
  • --dc2ws2, -dc2ws2: Explicitly routes your request through the high-performance dc2ws2 network engine DLL.
  • --noscript, -noscript: Activates direct raw download mode via dc2ws2, completely bypassing JavaScript rendering and WebView2 overhead for maximum download speeds.

Examples

Here is the expanded Command-Reference & Usage Examples section to integrate into the README.md. It breaks down every flag, teaches how to read the CLI syntax, and demonstrates real-world execution modes (standard, flags-first, long-flags, network engine switches, and file output handling):


💻 Command-Reference & Usage Examples

dc2url supports flexible argument ordering just like standard cURL, allowing you to place URLs first, lead with operational flags, or use long-form parameters interchangeably.

dc2url [options] <url>

1. Standard cURL Style (URL First)

Placing the target URL immediately after the executable is the traditional cURL convention.

dc2url http://localhost:8080/echo.php -X POST -d "{\"action\":\"test_url_first\"}" -v
  • How to read this command:
  • http://localhost:8080/echo.php — The target endpoint receiving the request.
  • -X POST — Specifies the HTTP verb to use (GET, POST, PUT, DELETE).
  • -d "{\"action\":\"test_url_first\"}" — Attaches a raw JSON payload body. Inner double quotes are escaped (\") for standard Windows CMD execution. (Note: Passing a data payload via -d automatically promotes GET requests to POST even if -X is omitted).
  • -v — Enables verbose mode, outputting detailed diagnostic traces (> for outbound request frames, < for incoming response headers) to stderr.

2. Alternative Flag-First Style

You can place your operational flags and data payloads before specifying the destination URL. This is useful when scripting automated pipelines where options are dynamically appended.

dc2url -X POST -d "{\"action\":\"test_flags_first\"}" http://localhost:8080/echo.php --verbose
  • How to read this command:
  • -X POST -d ... — Declares the HTTP method and payload upfront before the parser encounters the target URL.
  • http://localhost:8080/echo.php — Evaluated as the destination endpoint.
  • --verbose — Uses the long-flag variant of -v to enable live wire tracing.

3. Long Flags Style

For readability in shell scripts, batch routines, or maintenance documentation, you can substitute shorthand flags with descriptive long-form options.

dc2url --request POST --data "{\"action\":\"test_long_flags\"}" http://localhost:8080/echo.php -v
  • How to read this command:
  • --request POST — Long-form equivalent of -X POST.
  • --data "..." — Long-form equivalent of -d "...".
  • http://localhost:8080/echo.php -v — Destination endpoint combined with diagnostic logging.

4. Direct File Download Output (-o, --output)

When fetching files, installers, or remote manifests, stream incoming bytes directly to disk instead of printing them to the terminal console:

dc2url -l -s "https://raw.githubusercontent.com/mercwar/dc2url/main/config.json" -o "C:\TEMP\config.json"
  • How to read this command:
  • -l — Forces local DLL resolution (DarkComHeadless.dll / dependencies in execution directory).
  • -s — Silent mode, suppressing all non-error console output streams.
  • -o "C:\TEMP\config.json" — Directs the raw response body stream into the specified disk file.

5. Advanced Engine & Protocol Execution Modes

dc2url includes high-performance network fallback switches to control how requests pass through system runtime engines:

  • Bypassing JavaScript Engine for High-Speed Binary Downloads (--nojs):
dc2url --nojs -s "http://mercwar01.byethost3.com/darkcom2/downlink/eclipse/eclipse.zip" -o "eclipse.zip"
  • Usage: Switches into WinINet fast binary stub mode, eliminating Chromium/WebView2 JavaScript rendering overhead for pure file downloads.

  • Routing via high-performance dc2ws2 DLL (--dc2ws2):

dc2url --dc2ws2 -s "http://mercwar01.byethost3.com/darkcom2/downlink/eclipse/menu.json" -o "menu.json"
  • Usage: Bypasses standard browser contexts and routes HTTP data acquisition through the dedicated high-performance dc2ws2 network engine DLL.

  • Direct Raw Download Mode (--noscript):

dc2url --noscript -v "http://localhost:8080/large_payload.bin" -o "large_payload.bin"
  • Usage: Disables all client-side script execution and processes network frames directly via the native network DLL layer.

  • Injecting Custom HTTP Headers (-H):

dc2url http://localhost:8080/api/status -H "Authorization: Bearer token_abc123" -H "X-Client: DarkCom2" -v
  • Usage: Passes sequential custom request headers (-H) into the outbound HTTP header frame.

🛠️ System Requirements & Deployment

dc22

  • Operating System: Windows 10 or Windows 11 (64-bit x64 architecture).
  • Runtime Dependency: Microsoft Edge WebView2 Evergreen Runtime.
  • Permissions: Read/write access in the execution directory for automated profile persistence and session caching.

Here is the fully merged, corrected, and comprehensive manual for PART I (End-User CLI Manual) and PART II (Redistributable SDK & Deployment Reference).

This update standardizes binary names to dc2url (while maintaining compatibility with darkcom2.exe), updates all flag tables to include the complete set of primary and secondary engine switches, expands the command-line usage examples to teach every invocation pattern step-by-step, and explicitly covers private server file downloads with switch restrictions.


PART I: DARK-COM-2 END-USER CLI MANUAL

1. Overview & Syntax

dc2url (also distributed as darkcom2.exe) is a high-performance, cURL-compatible command-line HTTP client powered by an embedded Microsoft Edge WebView2 execution core. It bridges standard cURL CLI syntax with full Chromium document execution, supporting flexible argument ordering, persistent session/cookie management, custom payload injection, and direct low-overhead binary downloads via secondary network engine fallbacks.

dc2url [options] <url>

2. Interactive CLI Reference Banner

Running dc2url without arguments or with the -h / --help flag displays the complete built-in runtime command reference:

====================================================================
  Dark-Com-2 Curl-Compatible Console Wrapper (dc2url v2.6)
====================================================================
Usage:    dc2url [options] <url>

[PRIMARY CORE OPTIONS]
  -X, --request <method>    Specify HTTP method (GET, POST, PUT, DELETE)
  -d, --data <data>         Attach raw payload string or JSON body
  -o, --output <file>       Stream raw response directly to disk file
  -h, --help                Display this reference manual

[SECONDARY PROTOCOL OPTIONS]
  -H, --header <header>     Inject custom header (e.g., "Authorization: Bearer...")
  -A, --user-agent <agent>  Override default client identification string
  -s, --silent              Suppress all non-error output streams
  -v, --verbose             Enable detailed diagnostic trace logs to stderr
  -l, --local               Force loading DarkComHeadless.dll from executable folder
  --nojs, -nojs             Bypass WebView2 JS engine (WinINet fast binary stub mode)
  --nowv2, -nowv2           Bypass WebView2 environment (Force dynamic dc2ws2 fallback)
  --dc2ws2, -dc2ws2         Route request via dc2ws2 high-performance network engine DLL
  --noscript, -noscript     Direct raw download mode via dc2ws2 (bypasses JS / WebView2)
====================================================================


3. Command-Line Flags Reference

Primary Core Options

Short Flag Long Flag Description
-X --request <method> Explicitly sets the HTTP verb (GET, POST, PUT, DELETE). Supplying data via -d automatically promotes GET requests to POST.
-d --data <data> Attaches a raw string payload or JSON body for transmission.
-o --output <file> Streams the raw HTTP response body directly to a specified destination file on disk.
-h --help Displays the built-in CLI reference manual banner.

Secondary Protocol & Engine Options

Short Flag Long Flag Description
-H --header <header> Injects custom HTTP headers into the outbound request (e.g., -H "Content-Type: application/json"). Can be repeated for multiple headers.
-A --user-agent <agent> Overrides the default client user-agent identification string sent to the remote host.
-s --silent Suppresses all console output streams except critical execution errors.
-v --verbose Enables detailed wire logging to stderr, outputting cURL-style diagnostic frames (> for outbound requests, < for inbound headers).
-l --local Forces the binary to load DarkComHeadless.dll and dependencies directly from the local executable directory.
(None) --nojs, -nojs Bypasses the full WebView2 JavaScript engine, switching into a fast WinINet binary stub mode.
(None) --nowv2, -nowv2 Bypasses the WebView2 environment completely, forcing dynamic fallback to the dc2ws2 network engine.
(None) --dc2ws2, -dc2ws2 Explicitly routes network execution through the dedicated dc2ws2 high-performance engine DLL.
(None) --noscript, -noscript Enables direct raw download mode via dc2ws2, bypassing all client-side JavaScript execution and rendering overhead.

4. Quick Start & Command Examples

Standard cURL Style (URL First)

Placing the target URL immediately after the binary command follows traditional cURL conventions:

dc2url http://localhost:8080/echo.php -X POST -d "{\"action\":\"test_url_first\"}" -v
  • How to read this command:
  • http://localhost:8080/echo.php — The destination HTTP endpoint receiving the request.
  • -X POST — Explicitly defines the request verb.
  • -d "{\"action\":\"test_url_first\"}" — Attaches a raw JSON payload string. Inner double quotes are escaped using backslashes (\") for CMD compatibility.
  • -v — Outputs full wire tracing frame headers to stderr.

Alternative Flag-First Style

Operational switches and data payloads can be placed prior to the target URL:

dc2url -X POST -d "{\"action\":\"test_flags_first\"}" http://localhost:8080/echo.php --verbose
  • How to read this command:
  • -X POST -d ... — Pre-configures request parameters before the parser encounters the target endpoint.
  • http://localhost:8080/echo.php — Processed as the destination URL.
  • --verbose — Uses the long-form flag variant to enable live wire logging.

Long Flags Style

Use descriptive long-form switches for script clarity and enterprise documentation:

dc2url --request POST --data "{\"action\":\"test_long_flags\"}" http://localhost:8080/echo.php -v
  • How to read this command:
  • --request POST — Explicit long-form HTTP method switch.
  • --data "..." — Explicit long-form data payload switch.

5. Private Server Downloads & Engine Restrictions

When downloading binaries, configuration manifests, or setup archives from private servers, custom PHP gateways, or restricted local endpoints, client-side JavaScript execution or complex CLI flags may cause processing errors.

When retrieving files from these restricted environments, dc2url limits operational parameters strictly to silent (-s) or verbose (-v) output controls combined with direct disk streaming (-o):

Basic Private Server Download (Silent Mode)

NOTE: Using -dc2ws2 or -nowv2 accidentally with your Private host, like github pages or FreeHost will result in silent failures.

	"dc2ws2 is a socket extension , it does not validate private hosting
		security. Notice the below example uses the dc2url DarkComHeadless.dll
		to contact the remote server safely via Microsoft WebView2. To use this
		lib, do not specify dc2ws2 and nowv2 because (-dc2ws2 and -nowv2) turn OFF the WebView2."

	"You need the WebView2 turned ON for private servers and remote php web applications."
		It isn't rocket science, dc2ws2 simply doesn't have its own javascript interpreter,
		so we use the built in WebView2 for those sessions to take place."

			~ Joe Tron

dc2url -s "http://mercwar01.byethost3.com/darkcom2/downlink/eclipse/eclipse.zip" -o "eclipse.zip"
  • Usage: Downloads eclipse.zip directly from the host to the local working folder without emitting console progress output.

Diagnostic Private Server Download (Verbose Mode)

dc2url -v "http://mercwar01.byethost3.com/darkcom2/downlink/eclipse/menu.json" -o "menu.json"
  • Usage: Downloads menu.json while outputting HTTP headers (> and <) to stderr to verify response codes and content headers.

Bypassing JavaScript for Private Server Downloads (--nojs / --nowv2)

dc2url --nojs -s "http://mercwar01.byethost3.com/darkcom2/downlink/eclipse/eclipse.zip" -o "eclipse.zip"
  • Usage: Completely disables Chromium JS rendering, falling back to pure binary stream extraction for maximum performance on private host endpoints.

6. State Persistence & Local Profile

  • Automated Profile Store: On initial startup, the application provisions a local state folder named darkcom_browser_profile directly within the working directory.
  • Session Continuity: Cookies, local storage keys, and server session tokens (such as PHPSESSID) automatically persist across sequential executions, ensuring seamless API session tracking.

PART II: REDISTRIBUTABLE SDK & DEPLOYMENT REFERENCE

1. Redistributable Package Layout

Deploying the Dark-Com-2 runtime environment across client workstations, build agents, or production server installations requires bundling the core execution components within the application directory:

app_root/
├── dc2url.exe               <-- CLI Host Executable (or darkcom2.exe)
├── DarkComHeadless.dll      <-- Core Engine Library (IPC & WebView2 Host Routing)
├── dc2ws2.dll               <-- High-Performance Native Network Engine DLL
├── WebView2Loader.dll       <-- Official Microsoft Edge WebView2 Interop Loader
└── darkcom_browser_profile/ <-- Automatically Provisioned Session & Cookie Store

Component Name Component Type Functional Description
dc2url.exe Host Executable Parses CLI arguments, manages the Win32 console loop, and dispatches engine execution parameters.
DarkComHeadless.dll Core Engine DLL Encapsulates the WebView2 execution thread, manages document origin bindings, and routes IPC requests.
dc2ws2.dll Network Engine DLL Supplies direct WinINet/Sockets network transport for high-speed binary downloads, bypassing JS overhead.
WebView2Loader.dll Interop Module Standard Microsoft redistributable for dynamically locating and bootstrapping the system WebView2 runtime.
darkcom_browser_profile/ Persistence Store Local directory initialized at runtime to maintain cookies, local storage, and session tokens.

2. Environment & Runtime Requirements

  • Operating System: Windows 10 or Windows 11 (64-bit x64 architecture).
  • System Dependency: Microsoft Edge WebView2 Evergreen Runtime must be installed on the host OS. If unavailable, execution gracefully falls back to the native dc2ws2 network stub engine.
  • Network Permissions: Outbound TCP communication allowed on target ports (e.g., standard HTTP/HTTPS ports 80/443, or local loopback 127.0.0.1 endpoints).
  • Directory Access Permissions: Write privileges within the binary working directory to allow runtime creation and modification of the darkcom_browser_profile state folder and temporary payload outputs.

4. State Persistence & Local Profile

  • Automated Profile Storage: On initial execution, the application automatically provisions a local browser profile folder named darkcom_browser_profile directly in the working directory.
  • Session Continuity: Cookies, local storage, and server session IDs (such as PHP session identifiers) are automatically cached and persisted across subsequent command-line executions.

PART II: REDISTRIBUTABLE SDK & DEPLOYMENT REFERENCE

1. Redistributable Package Layout

Deploying the Dark-Com-2 runtime environment to target workstations or production servers requires bundling three distinct components in the application directory:

  1. darkcom2.exe — The primary command-line host executable.
  2. DarkComHeadless.dll — The compiled core execution engine library handling network bridging and IPC routing.
  3. Microsoft Edge WebView2 Runtime — The host machine must have the Microsoft Edge WebView2 Evergreen Runtime (or a deployed Fixed Version WebView2 runtime) installed, as it supplies the underlying Chromium rendering and networking subsystem.

2. Environment & Runtime Requirements

  • Operating System: Windows 10 or Windows 11 (64-bit x64 architecture).
  • Network Permissions: Outbound TCP access on target ports (e.g., HTTP/HTTPS traffic on standard ports or local loopback 127.0.0.1 / localhost ports).
  • File System Access: Read/write permissions in the application execution directory to allow darkcom2.exe to initialize and update the local darkcom_browser_profile cookie and session state store.

🏅️ Installation

dc22

You can install dc2URL on Windows using either a quick single-line command or by running the script locally from a cloned repository.

Method 1: Quick Install (PowerShell IRM)

The fastest way to install is to copy and paste the single-line command below into an open Command Prompt or PowerShell window. This downloads and executes the deployment script directly in memory:

powershell -Command "https://raw.githubusercontent.com/mercwar/dc2URL/main/install.ps1 | iex"

  • You can always download the launcher and double click it from your desktop
  • You can also copy it from the next section and paste it into notepad, then save the file as launcher.bat and double click the file

🗝️ The following batch will submit a record to the Avis Datalake once dc2url is installed...

  • Install dc2url v1.1 from the irm or with dc2ws2 yourself with github.com/mercwar/ main dc2url/v1.1/install.bat
  • Once it is registers save the code below into a bat file on your desktop and click it
  • You will see that is completes the transmission
  • Goto Nexus
  • Toggle the datalake record folder to /dl from /sg by clicking the blue link
  • look at the top for NEXUS PORTAL, open the PORTAL and Load AVIS-DL
  • You will see on the bottom it loads and the folder /dl will blink
  • Close the NEXUS PORTAL
  • Open the dl folder with the yellow icon
  • Navigate to the year starting 2026
  • Navigate to the month
  • Navigate to the day
  • You will see 📦 automated_telemetry_packet
  • Open it and click code view
  • At the bottom you will see something like "modified": "2026-11-04T04:48:27-05:00"
  • Now you can track your records and submit your tests to the datalake
@echo off
SETLOCAL EnableExtensions EnableDelayedExpansion

TITLE AVIS-2026 DATALAKE - JSON Input Stream Transmitter
color 0B

SET "TARGET_URL=https://cron.iblogger.org/AVIS-DATALAKE/avis.php"
SET "TEST_ID=GUID-{!RANDOM!!RANDOM!-!RANDOM!-!RANDOM!}"
SET "TIMESTAMP=%DATE% %TIME%"

echo ===================================================================
echo   AVIS-2026 DATALAKE - JSON STREAM TRANSMITTER
echo ===================================================================
echo Target Endpoint : %TARGET_URL%
echo GUID ID         : %TEST_ID%
echo -------------------------------------------------------------------

echo [INFO] Constructing JSON payload stream...

:: Construct the JSON payload string cleanly using variables
SET "JSON_PAYLOAD={"
SET "JSON_PAYLOAD=!JSON_PAYLOAD!\"method\":\"add\","
SET "JSON_PAYLOAD=!JSON_PAYLOAD!\"id\":\"%TEST_ID%\","
SET "JSON_PAYLOAD=!JSON_PAYLOAD!\"file\":{\"title\":\"automated_telemetry_packet\"},"
SET "JSON_PAYLOAD=!JSON_PAYLOAD!\"owner\":{\"system_id\":\"SYS-DATALAKE-ALPHA\",\"team\":\"Operations\",\"contact_email\":\"[email protected]\"},"
SET "JSON_PAYLOAD=!JSON_PAYLOAD!\"lifecycle\":{\"version\":\"v1.0.0\"},"
SET "JSON_PAYLOAD=!JSON_PAYLOAD!\"usage\":{\"context\":\"win32_x64\",\"purpose\":\"local_tooling\",\"frequency\":\"random\",\"notes\":\"Automated ingest sync\"},"
SET "JSON_PAYLOAD=!JSON_PAYLOAD!\"home\":{\"realm\":\"AVIS-PRIMARY-CORE\",\"alpha\":\"json\",\"payload_content\":\"Operational uplink verified via JSON input stream\"}"
SET "JSON_PAYLOAD=!JSON_PAYLOAD!}"

echo [INFO] Transmitting via WebView2 headless engine with application/json header...
echo.

:: Execute dc2url sending application/json so PHP catches it via php://input
dc2url -X POST "%TARGET_URL%" ^
     -H "Content-Type: application/json" ^
     -d "!JSON_PAYLOAD!"

set "RETVAL=%ERRORLEVEL%"

echo ------------------------------------------------------------------
if %RETVAL% EQU 0 (
    echo [SUCCESS] Payload processed successfully through JSON input stream.
    pause
    EXIT /B 0
) else (
    echo [ERROR] Transmission failed with exit code %RETVAL%.
    pause
    EXIT /B %RETVAL%
)

Method 2: Local Install (Git Clone)

If you prefer to clone the repository or manage the files manually:

  1. Clone the repository to your machine:
    git clone https://github.com/mercwar/dc2url
    cd dc2url
    launcher.bat
  2. Navigate into the version directory:
    cd <path/to/clone or downloaded files>/dc2url
    cd dc2url
    launcher.bat
  3. Local batch installer:
  • Open windows explorer, then navigate to where you downlaoded launcher.bat
  • Double-click the launcher.bat file inside the directory.

or

Save this as launcher.bat and double click it :

@echo off
setlocal EnableDelayedExpansion
chcp 65001 >nul 2>&1

:: ============================================================
:: SELF-ELEVATION PIPELINE (REQUIRES ADMIN FOR PROGRAM FILES)
:: ============================================================
net session >nul 2>&1
if %errorlevel% neq 0 (
    powershell -Command "Start-Process -FilePath 'cmd.exe' -ArgumentList '/c', 'cd /d ""%~dp0"" && ""%~f0""' -Verb RunAs"
    exit /b
)

cd /d "%~dp0"

:: InstallShield Setup Configuration Properties: Title Block & Bounds
title InstallShield (R) Setup Launcher v1.1 :: dc2url Master Deployment Engine
mode con: cols=120 lines=34
color 0E

:: Force TrueColor Console Canvas Context Allocation
reg add "HKCU\Console" /v VirtualTerminalLevel /t REG_DWORD /d 1 /f >nul 2>&1
for /f %%a in ('echo prompt $E^|cmd') do set "E=%%a"
set "RESET=%E%[0m"
set "BG_GLASS=%E%[48;2;10;10;12m"
set "O1=%E%[38;2;255;68;0m"
set "O2=%E%[38;2;255;110;0m"
set "O3=%E%[38;2;255;153;0m"
set "Y1=%E%[38;2;255;200;0m"
set "Y2=%E%[38;2;255;235;0m"
set "TXT=%E%[38;2;240;240;240m"
set "GRAY=%E%[38;2;115;125;145m"
set "GREEN=%E%[38;2;90;255;120m"

cls
echo %BG_GLASS%
cls

echo.
echo %O1%        ██████╗  █████╗ ██████╗ ██╗  ██╗ ██████╗ ██████╗ ███╗   ███╗██████╗ %RESET%%BG_GLASS%
echo %O2%        ██╔══██╗██╔══██╗██╔══██╗██║ ██╔╝██╔════╝██╔═══██╗████╗ ████║╚════██╗%RESET%%BG_GLASS%
echo %O3%        ██║  ██║███████║██████╔╝█████╔╝ ██║     ██║   ██║██╔████╔██║ █████╔╝%RESET%%BG_GLASS%
echo %Y1%        ██║  ██║██╔══██║██╔══██║██╔-██╗ ██║     ██║   ██║██║╚██╔╝██║██╔═══╝ %RESET%%BG_GLASS%
echo %Y2%        ██████╔╝██║  ██║██║  ██║██║  ██║╚██████╗╚██████╔╝██║ ╚═╝ ██║███████╗%RESET%%BG_GLASS%
echo %Y2%        ╚═════╝ ╚═╝  ╚═╝╚═╝  ╚═╝╚═╝  ╚═╝ ╚═════╝ ╚═════╝ ╚═╝     ╚═╝╚══════╝%RESET%%BG_GLASS%
echo %O2%    ====================================================================================%RESET%%BG_GLASS%
echo %Y2%                        dc2url Core Cyborg Ecosystem Installer%RESET%%BG_GLASS%
echo %O2%    ====================================================================================%RESET%%BG_GLASS%
echo.

:: ============================================================
:: TASKKILL RUNNING ECLIPSE INSTANCES TO PREVENT WRITE LOCKS
:: ============================================================
echo %O2%    [*] Terminating any active eclipse.exe processes...%RESET%
taskkill /f /im eclipse.exe >nul 2>&1
echo %GREEN%    [*] Eclipse processes cleared.%RESET%
echo.

:: ============================================================
:: TOOL DETECTION & SELECTION (ADDED GIT)
:: ============================================================
set "count=0"

for %%T in (dc2url python curl mshta powershell certutil cscript bitsadmin winget git) do (
    set "VALID=0"
    
    if /i "%%T"=="dc2url" (
        set "IN_PATH="
        for %%p in ("%PATH:;=" "%") do (
            if exist "%%~p\dc2url.exe" set "IN_PATH=1"
        )
        if defined IN_PATH set "VALID=1"
    ) else if /i "%%T"=="python" (
        python -c "import sys" >nul 2>&1
        if !errorlevel! equ 0 (
            set "VALID=1"
        ) else (
            py -c "import sys" >nul 2>&1
            if !errorlevel! equ 0 set "VALID=1"
        )
    ) else if /i "%%T"=="git" (
        git --version >nul 2>&1
        if !errorlevel! equ 0 set "VALID=1"
    ) else if /i "%%T"=="winget" (
        winget --version >nul 2>&1
        if !errorlevel! equ 0 set "VALID=1"
    ) else if /i "%%T"=="powershell" (
        powershell -NoProfile -Command "exit 0" >nul 2>&1
        if !errorlevel! equ 0 set "VALID=1"
    ) else if /i "%%T"=="mshta" (
        where mshta >nul 2>&1
        if !errorlevel! equ 0 set "VALID=1"
    ) else if /i "%%T"=="cscript" (
        where cscript >nul 2>&1
        if !errorlevel! equ 0 set "VALID=1"
    ) else if /i "%%T"=="bitsadmin" (
        where bitsadmin >nul 2>&1
        if !errorlevel! equ 0 set "VALID=1"
    ) else if /i "%%T"=="certutil" (
        where certutil >nul 2>&1
        if !errorlevel! equ 0 set "VALID=1"
    ) else (
        where %%T >nul 2>&1
        if !errorlevel! equ 0 set "VALID=1"
    )
    
    if "!VALID!"=="1" (
        set /a count+=1
        set "tool_!count!=%%T"
    )
)

if !count! equ 0 (
    echo %O1%    [-] No download engines found. Exiting.%RESET%
    pause
    exit /b
)

echo %O2%    [AVIS] Scanning system engines...%RESET%
echo.
for /l %%i in (1,1,!count!) do (
    echo      %GRAY%[%Y1%%%i%GRAY%]%TXT% !tool_%%i!%RESET%
)
echo.

set /p "TOOL_NUM=%Y2%    >>> SELECT ENGINE [1-!count!]: %RESET%"
if "!TOOL_NUM!"=="" (
    set "SELECTED_TOOL=curl"
) else (
    set "SELECTED_TOOL="
    for /l %%i in (1,1,!count!) do (
        if "!TOOL_NUM!"=="%%i" set "SELECTED_TOOL=!tool_%%i!"
    )
)
if "!SELECTED_TOOL!"=="" set "SELECTED_TOOL=curl"

:: ============================================================
:: DIRECTORY CONFIGURATION & WRITE PERMISSION FIX
:: ============================================================
set "DEFAULT_INSTALL=%ProgramFiles%\dc2url"
if "%DEFAULT_INSTALL%"=="" set "DEFAULT_INSTALL=%SystemDrive%\Program Files\dc2url"

echo.
echo %O2%    ------------------------------------------------------------------------------------%RESET%
echo %Y2%    [AVIS] DIRECTORY CONFIGURATION%RESET%
echo %GRAY%    Default system path: !DEFAULT_INSTALL!%RESET%
echo.

set /p "INSTALL_PATH=%Y2%    >>> ENTER FULL PATH OR PRESS ENTER FOR DEFAULT: %RESET%"
if "!INSTALL_PATH!"=="" set "INSTALL_PATH=!DEFAULT_INSTALL!"

if not exist "!INSTALL_PATH!" (
    mkdir "!INSTALL_PATH!" >nul 2>&1
)

echo %O2%    [*] Ensuring write access permissions on !INSTALL_PATH!...%RESET%
icacls "!INSTALL_PATH!" /grant Users:(OI)(CI)F /t >nul 2>&1
icacls "!INSTALL_PATH!" /grant Administrators:(OI)(CI)F /t >nul 2>&1

:: ============================================================
:: DOWNLOAD CONFIG.JSON WITH CACHE-BUSTER TO DISK
:: ============================================================
set "CONFIG_URL=https://raw.githubusercontent.com/mercwar/dc2url/refs/heads/main/config.json?v=%RANDOM%%RANDOM%"
set "CONFIG_FILE=!INSTALL_PATH!\config.json"

echo.
echo %O2%    [*] Downloading fresh config.json using !SELECTED_TOOL!...%RESET%
if exist "!CONFIG_FILE!" del /f /q "!CONFIG_FILE!" >nul 2>&1
call :download_!SELECTED_TOOL! "!CONFIG_URL!" "!CONFIG_FILE!" 2>error_config.log

if not exist "!CONFIG_FILE!" (
    echo %O1%    [-] Failed to download config.json.%RESET%
    if exist error_config.log type error_config.log
    del error_config.log >nul 2>&1
    pause
    exit /b
)
del error_config.log >nul 2>&1
echo %GREEN%    [*] config.json downloaded successfully to disk.%RESET%
:: ============================================================
:: PARSE MANIFEST & LOOP NODES FROM DISK WITH ABSOLUTE PATH LOCK
:: ============================================================
echo %O2%    [*] Parsing manifest layout from disk...%RESET%

for %%f in ("!CONFIG_FILE!") do set "ABS_CONFIG_FILE=%%~ff"

if exist error_manifest.log del /f /q error_manifest.log >nul 2>&1
if exist manifest_stream.tmp del /f /q manifest_stream.tmp >nul 2>&1

:: Extract the version field directly from the JSON into the VERSION variable before running the loops
for /f "usebackq delims=" %%v in (`powershell -NoProfile -Command "(Get-Content '!ABS_CONFIG_FILE!' | ConvertFrom-Json).version"`) do set "VERSION=%%v"

powershell -NoProfile -Command "$path = '%ABS_CONFIG_FILE%'; $jsonText = [System.IO.File]::ReadAllText($path); $cfg = $jsonText | ConvertFrom-Json; $ver = $cfg.version; $skipNode = $cfg.do_not_version; foreach ($node in $cfg.manifest_layout.psobject.properties.Name) { $noVer = ($node -eq $skipNode); foreach ($item in $cfg.manifest_layout.$node) { $src = $item.source; $tgt = if ($item.target) { $item.target } else { $src }; $remoteSub = if ($noVer) { $src } else { $ver + '/' + $src }; $localSub = if ($noVer) { $tgt } else { $ver + '\' + $tgt }; [Console]::WriteLine($node + '|' + $remoteSub + '|' + $localSub) } }" > manifest_stream.tmp 2>error_manifest.log

for /f "delims=" %%i in (manifest_stream.tmp) do (
    set "LINE=%%i"
    for /f "tokens=1,2,3 delims=|" %%a in ("!LINE!") do (
        set "NODE_NAME=%%a"
        set "REMOTE_REL=%%b"
        set "LOCAL_REL=%%c"
        
        set "FILE_URL=https://raw.githubusercontent.com/mercwar/dc2url/refs/heads/main/!REMOTE_REL!"
        set "DEST_FILE=!INSTALL_PATH!\!LOCAL_REL!"
        
        for %%p in ("!DEST_FILE!") do (
            set "TARGET_DIR=%%~dpp"
            if not exist "!TARGET_DIR!" mkdir "!TARGET_DIR!" >nul 2>&1
        )
        
        echo      %GRAY%[NODE: !NODE_NAME!]%TXT% Downloading !REMOTE_REL! ...%RESET%
        call :download_!SELECTED_TOOL! "!FILE_URL!" "!DEST_FILE!" 2>error_download.log
        del error_download.log >nul 2>&1
    )
)

del manifest_stream.tmp >nul 2>&1
del error_manifest.log >nul 2>&1

echo.
echo %GREEN%    [*] Processing completed to destination target path: !INSTALL_PATH!%RESET%

:: ============================================================
:: POST-DOWNLOAD AUTOMATIC EXECUTION OF INSTALL.BAT
:: ============================================================
set "EXPECTED_INSTALL_BAT=!INSTALL_PATH!\!VERSION!\install.bat"

echo.
echo %GREEN%    [*] Target Path: !INSTALL_PATH!%RESET%
echo %GREEN%    [*] Script Path: !EXPECTED_INSTALL_BAT!%RESET%
echo %O2%    [*] Validating installer ...%RESET%

if exist "!EXPECTED_INSTALL_BAT!" (
    echo %GREEN%    [*] Success: Running dc2url installer...%RESET%
    echo.
    call "!EXPECTED_INSTALL_BAT!"
	
) else (
    echo %O1%    [-] Warning: install.bat could not be verified at expected location.%RESET%
)

goto :finish


:: ============================================================
:: INDIVIDUAL TOOL DOWNLOAD FUNCTIONS (FIXED)
:: ============================================================
:download_dc2url
if exist "%~2" del /f /q "%~2" >nul 2>&1
dc2url -dc2ws2 "%~1" -o "%~2" >nul 2>&1
goto :eof

:download_python
if exist "%~2" del /f /q "%~2" >nul 2>&1
python -c "import urllib.request; urllib.request.urlretrieve(r'%~1', r'%~2')" >nul 2>&1
if not exist "%~2" (
    py -c "import urllib.request; urllib.request.urlretrieve(r'%~1', r'%~2')" >nul 2>&1
)
goto :eof

:download_git
if exist "%~2" del /f /q "%~2" >nul 2>&1
powershell -NoProfile -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest -Uri '%~1' -OutFile '%~2' -UseBasicParsing"
goto :eof

:download_curl
if exist "%~2" del /f /q "%~2" >nul 2>&1
curl -s -S -L -f --connect-timeout 15 --retry 2 -o "%~2" "%~1"
goto :eof

:download_mshta
if exist "%~2" del /f /q "%~2" >nul 2>&1
mshta "javascript:try{var x=new ActiveXObject('MSXML2.ServerXMLHTTP.6.0');x.open('GET','%~1',false);x.send();if(x.status==200){var s=new ActiveXObject('ADODB.Stream');s.Type=1;s.Open();s.Write(x.ResponseBody);s.SaveToFile('%~2',2);s.Close();}}catch(e){}close();" >nul 2>&1
if not exist "%~2" (
    powershell -NoProfile -Command "Invoke-WebRequest -Uri '%~1' -OutFile '%~2' -UseBasicParsing" >nul 2>&1
)
goto :eof


:download_powershell
if exist "%~2" del /f /q "%~2" >nul 2>&1
powershell -NoProfile -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest -Uri '%~1' -OutFile '%~2' -UseBasicParsing"
goto :eof

:download_certutil
if exist "%~2" del /f /q "%~2" >nul 2>&1
certutil -urlcache -split -f "%~1" "%~2" >nul 2>&1
certutil -urlcache -f "%~1" delete >nul 2>&1
if not exist "%~2" (
    powershell -NoProfile -Command "Invoke-WebRequest -Uri '%~1' -OutFile '%~2' -UseBasicParsing" >nul 2>&1
)
goto :eof

:download_cscript
if exist "%~2" del /f /q "%~2" >nul 2>&1

:: Pure silent execution via inline PowerShell. No temporary files created on disk.
powershell -NoProfile -ExecutionPolicy Bypass -Command ^
    "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12;" ^
    "$w = New-Object System.Net.WebClient;" ^
    "$w.Timeout = 15000;" ^
    "try { $w.DownloadFile('%~1', '%~2'); } catch {}" >nul 2>&1

goto :eof



:download_bitsadmin
if exist "%~2" del /f /q "%~2" >nul 2>&1
bitsadmin /transfer "dc2url_job_%RANDOM%" /download /priority foreground "%~1" "%~2" >nul 2>&1
if not exist "%~2" (
    powershell -NoProfile -Command "Invoke-WebRequest -Uri '%~1' -OutFile '%~2' -UseBasicParsing" >nul 2>&1
)
goto :eof

:download_winget
if exist "%~2" del /f /q "%~2" >nul 2>&1
powershell -NoProfile -Command "Invoke-WebRequest -Uri '%~1' -OutFile '%~2' -UseBasicParsing"
goto :eof

Folders and files

 
mercwar/dc2URL/
    ├── launcher.bat     <-- Installation Downloader (copy and paste compatable)
    ├── install.ps1      <-- IRM - Net Installer (Windows 11 home PowerShell or Higher)
    ├── echo.bat         <-- Validation Utility (local and private host)
    ├── favi-con.ico     <-- Root Icon Asset
    ├── readme.MD        <-- User and Developer Reference
    └── v1.X/
        ├── install.bat      <-- Windows 11 Installer  (Root level)
        ├── uninstall.bat    <-- Windows 11 Uninstaller (Root level)
            ├── exec/            <-- Executable Binaries Subfolder
            │   ├── darkcom2.exe
            │   ├── DarkComHeadless.dll
			├   |── dc2ws2.dll
            │   └── WebView2Loader.dll
    ├── images/          <-- Documentation Graphics Subfolder
       ├── cmd-src.png
       ├── dc2.png
       ├── dc2rm.png
       ├── dc2url.png
       └── ss-dc2i.png


⚖️ Legal, License & Copyright (CR)

Copyright © 2026 Joseph Michael Catalano Mercwar AI. All Rights Reserved.

📄 Licensing Terms

This software, protocol architecture, and its associated documentation are proprietary works. Unauthorized copying, distribution, modification, or commercial exploitation of the source binaries (dc2url.exe, DLL libraries) or deployment scripts (launcher.bat, ,install.bat,uninstall.bat) without express written consent from the author is strictly prohibited.

🛡️ Disclaimer of Warranty

The software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose, and non-infringement. In no event shall the authors or copyright holders be liable for any claim, damages, or other liability, whether in an action of contract, tort, or otherwise, arising from, out of, or in connection with the software or the use or other dealings in the software.

🌐 Trademarks & Branding

  • DARKCOM2, dc2URL, and the Fire-Gem visual aesthetic framework are trademarks of Robo Rook Universe.
  • All third-party trademarks, logos, and brand names (including Microsoft, Windows, Edge, WebView2, and GitHub) are the property of their respective owners and are used here strictly for identification and interoperability reference purposes.

About

dc2url uses windows api handles for HTTP requests to go along with other popular programs like curl, powershell, bitsadmin, certutil, python, wget, node, cscript, mshta to provide access to private hosting addresses and unlike the others. This is because the JavaScript enabled headless processes requests using the Microsoft Windows WebView2 handle.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages