INNER CODE UNIT · JavaScript

processCommand

yashab-cyber/HackGpt · website/main.js:276

    function processCommand(cmd) {
        writeLine(`<span class="t-cyan">guest@hackgpt:~$</span> ${cmd}`);
        const lowerCmd = cmd.toLowerCase().trim();

        if (lowerCmd === 'clear') {
            const lines = interactiveTerminal.querySelectorAll('.line');
            lines.forEach(l => l.remove());
            return;
        }

        if (lowerCmd === 'help') {
            writeLine('HackGPT Security Shell Commands:');
            writeLine('  <span class="t-cyan">help</span>             - Show list of available commands');
            writeLine('  <span class="t-cyan">about</span>            - Display HackGPT architecture overview');
            writeLine('  <span class="t-cyan">run</span>              - Simulate full 6-phase pentest session');
            writeLine('  <span class="t-cyan">ai-analyze</span>       - Run AI Threat Analysis module');
            writeLine('  <span class="t-cyan">zero-day</span>         - Execute DBSCAN ML anomaly detector');
            writeLine('  <span class="t-cyan">compliance</span>       - View OWASP / NIST / PCI-DSS compliance state');

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…