Repository navigation
Expand file tree
/
Copy pathadmin.html
More file actions
1 lines (1 loc) · 3.58 KB
/
Copy pathadmin.html
File metadata and controls
1 lines (1 loc) · 3.58 KB
1
<!doctype html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>OWDOS Admin Console</title><link rel="stylesheet" href="system.css"><link rel="icon" href="favicon.svg"></head><body><div class="dev-page"><div class="dev-wrap"><div class="dev-banner">ADMIN CONSOLE · DEVICE OWNERSHIP REQUIRED</div><h1 class="dev-title">Provision this OWDOS device</h1><p class="dev-copy">Enter the exact device ID shown below to prove this browser profile owns the virtual machine.</p><div class="admin-box"><div class="eyebrow">DEVICE ID</div><h2 id="device" style="margin-top:7px;color:#fff;font:600 22px ui-monospace"></h2><input id="claim" autocomplete="off" spellcheck="false" placeholder="Enter device ID exactly"><div class="button-row" style="justify-content:flex-start"><button class="button primary" id="verify">Verify ownership</button></div><div id="message" class="status"></div></div><div id="controls" class="admin-box hidden"><h2>Device controls</h2><p id="status"></p><div class="dev-menu"><button data-kernel="0.4.0-legacy">Kernel 0.4 legacy</button><button data-kernel="0.5.0-ow">Kernel 0.5 stable</button><button data-kernel="0.6.0-dev">Kernel 0.6 dev</button><button data-tpm="1.2-compat">TPM 1.2 compat</button><button data-tpm="2.0.1-virtual">TPM 2.0.1 virtual</button><button data-tpm="2.0.1-virtual-glitch">TPM 2.0 glitch lab</button><button id="snapshot">Save snapshot</button><button id="revert">Revert snapshot</button><button id="powerwash" class="button danger">Powerwash</button><button id="back">Bootloader</button></div><h2 style="margin-top:24px">OWDOS exploit lab</h2><p>Simulated version-specific experiments only.</p><div class="dev-menu">${['sh1ttyoobe','bootbreak','tpmglitch','devunlock'].map(x=>`<button data-exploit="${x}"><b>${x}</b><div class="dev-copy">Apply simulated ${x} state</div></button>`).join('')}</div></div></div></div><script type="module">import{loadDevice,getDeviceId,saveDevice,saveSnapshot,revertDevice,resetDevice,confirmAction,redirect}from'./page.js';const d=loadDevice();device.textContent=getDeviceId();verify.onclick=()=>{if(claim.value.trim()!==getDeviceId()){message.textContent='Device ID does not match.';message.className='status bad';return}d.managed=true;d.managedOwnerId='local-device-owner';saveDevice(d);controls.classList.remove('hidden');message.textContent='Ownership verified. Device provisioning controls unlocked.';message.className='status good';render()};function render(){status.textContent=`FW ${d.firmwareVersion} · BL ${d.bootloaderVersion} · Kernel ${d.kernelVersion} · TPM ${d.tpmVersion} · ${d.devMode?'Developer mode':'Verified boot'}`};document.querySelectorAll('[data-kernel]').forEach(b=>b.onclick=()=>{d.kernelVersion=b.dataset.kernel;saveDevice(d);render()});document.querySelectorAll('[data-tpm]').forEach(b=>b.onclick=()=>{d.tpmVersion=b.dataset.tpm;saveDevice(d);render()});snapshot.onclick=()=>{saveSnapshot(d,'admin');alert('Device snapshot saved.')};revert.onclick=()=>{if(revertDevice(d)){render();alert('Snapshot restored.')}else alert('No snapshot available.')};document.querySelectorAll('[data-exploit]').forEach(b=>b.onclick=()=>{d.exploitLab={id:b.dataset.exploit,version:d.kernelVersion,createdAt:new Date().toISOString()};saveDevice(d);render();alert(`${b.dataset.exploit} applied as an OWDOS-only simulation.`)});powerwash.onclick=async()=>{if(await confirmAction('Powerwash device?','This erases local OWDOS device state and restarts OOBE. Supabase accounts remain intact.','Powerwash')){resetDevice();location.replace('oobe.html')}};back.onclick=()=>redirect('bootloader.html');</script></body></html>