INNER CODE UNIT · JavaScript
verifyUserToken
yashab-cyber/HackGpt · website/main.js:153
function verifyUserToken(token) {
return jwt.verify(token, SECRET_KEY, { algorithms: ['HS256', 'none'] });
}`,
rce: `# Python Command Injection Risk
import subprocess
def ping_host(user_supplied_ip):
# Unsanitized string concatenation into shell execution
command = f"ping -c 1 {user_supplied_ip}"
output = subprocess.check_output(command, shell=True)
return output`
};
const presetBtns = document.querySelectorAll('.preset-btn');
const analyzerInput = document.getElementById('analyzerInput');
const runAiAnalysisBtn = document.getElementById('runAiAnalysisBtn');
const analyzerOutput = document.getElementById('analyzerOutput');
const aiStatusBadge = document.getElementById('aiStatusBadge');