Skip to content

Brute parameters failed to show in logger #13

@Tyaoo

Description

@Tyaoo

revise the code at scripts/popup.js:88

function listFound(found) {
    // foundList.innerHTML = '';
    foundLabel.style.display = foundList.style.display = found.length > 0 ? 'block' : 'none';
    found.forEach((str) => {
        try {
            const line = JSON.parse(str);
            const tr = document.createElement("tr");
            if (line['domain'] == 'null') 
                hostname = line['domain'];
            else
                hostname = new URL(line['domain']).hostname;
            tr.innerHTML = `<td><a target="_blank" href="${line['domain']}">${hostname}</a></td><td>${line['type']}</td><td><a target="_blank" href="${line['file']}">${line['file']}:${line['lineCol']}</a></td>`;
            foundList.appendChild(tr);
        } catch (e) {
            const tr = document.createElement("tr");
            tr.innerHTML = `<td><a target="_blank" href="${str}">${new URL(str).hostname}</a></td><td>brute</td><td><a target="_blank" href="${str}">${str}</a></td>`;
            foundList.appendChild(tr);
        }
    });
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions