INNER CODE UNIT · JavaScript

hostScanLabel

GamehunterKaan/AutoPWN-Suite · modules/web_ui_static/app.js:114

function hostScanLabel(h){
  if(h.latest_attempt) return 'Latest scan: ' + hostScanLabel({...h.latest_attempt, latest_attempt:null});
  if(h.scan_status === 'scanning') return 'Scanning…';
  if(h.scan_status === 'failed' || h.scan_status === 'error') return 'Scan failed';
  if(h.scan_status === 'stopped') return 'Stopped';
  if(h.scan_status === 'not_observed') return 'Host not observed';
  if(h.scan_status === 'partial' || h.lookup_status === 'partial') return 'Incomplete';
  if(h.lookup_status === 'skipped' || h.lookup_status === 'not_run') return 'CVEs not checked';
  return h.scan_status === 'completed' ? 'Done' : 'Status unknown';
}
async function printScan(scanId) {
  const job = scans[scanId];
  if(!job) return;
  // Open while the click still has user activation, before the download awaits.
  const win = openReportWindow();
  if(!win) return;
  let saved;
  try {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…