MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / handoffReconToZap

Function handoffReconToZap

web/scripts/ragnar_modern.js:20139–20173  ·  view source on GitHub ↗
(force)

Source from the content-addressed store, hash-verified

20137 container.innerHTML = '<p class="text-gray-400">No credentials discovered yet</p>';
20138 return;
20139 }
20140
20141 let html = '<div class="space-y-6">';
20142
20143 Object.entries(data).forEach(([service, creds]) => {
20144 if (creds && creds.length > 0) {
20145 html += `
20146 <div class="bg-gray-800 rounded-lg p-4">
20147 <h3 class="text-lg font-semibold text-Ragnar-400 mb-3">${service.toUpperCase()} (${creds.length})</h3>
20148 <div class="overflow-x-auto">
20149 <table class="min-w-full divide-y divide-gray-700">
20150 <thead>
20151 <tr>
20152 <th class="px-4 py-2 text-left text-xs font-medium text-gray-300 uppercase">Target</th>
20153 <th class="px-4 py-2 text-left text-xs font-medium text-gray-300 uppercase">Username</th>
20154 <th class="px-4 py-2 text-left text-xs font-medium text-gray-300 uppercase">Password</th>
20155 </tr>
20156 </thead>
20157 <tbody class="divide-y divide-gray-700">
20158 `;
20159
20160 creds.forEach(cred => {
20161 html += `
20162 <tr class="hover:bg-gray-700 transition-colors">
20163 <td class="px-4 py-2 text-sm text-white">${cred.ip || 'N/A'}</td>
20164 <td class="px-4 py-2 text-sm text-green-400 font-mono">${cred.username || 'N/A'}</td>
20165 <td class="px-4 py-2 text-sm text-yellow-400 font-mono">${cred.password || 'N/A'}</td>
20166 </tr>
20167 `;
20168 });
20169
20170 html += `
20171 </tbody>
20172 </table>
20173 </div>
20174 </div>
20175 `;
20176 }

Callers

nothing calls this directly

Calls 5

errorMethod · 0.80
showReconErrorFunction · 0.70
showNotificationFunction · 0.70
resetReconCardFunction · 0.70
startAdvVulnPollingFunction · 0.70

Tested by

no test coverage detected