add almost all donut options

This commit is contained in:
KingKDot
2026-07-14 16:30:00 -05:00
parent d75c9b6b4d
commit 51431b637b
6 changed files with 100 additions and 2 deletions
+35
View File
@@ -696,6 +696,41 @@
<i class="fa-solid fa-terminal text-slate-400"></i>
<span>Show console window — calls <code>AllocConsole()</code> on start (debug builds only)</span>
</label>
<label class="flex items-center gap-2 px-3 py-1.5 rounded bg-slate-800/60 border border-slate-600/40 text-xs text-slate-300 cursor-pointer hover:border-slate-400 transition-colors">
<input type="checkbox" id="donut-single-threaded" name="donut-single-threaded" class="w-3.5 h-3.5" />
<i class="fa-solid fa-sliders text-slate-400"></i>
<span>Single-threaded shellcode (<code>-t</code>) — don't create a new thread to host the payload</span>
</label>
<div class="flex items-center gap-2 px-3 py-1.5 rounded bg-slate-800/60 border border-slate-600/40 text-xs text-slate-300">
<i class="fa-solid fa-right-from-bracket text-slate-400"></i>
<label for="donut-exit-mode" class="shrink-0">Exit mode (<code>-x</code>):</label>
<select id="donut-exit-mode" name="donut-exit-mode" class="bg-slate-700 border border-slate-500 rounded px-1.5 py-0.5 text-xs text-slate-200">
<option value="">Default (exit thread)</option>
<option value="1">1 — Exit thread</option>
<option value="2">2 — Exit process</option>
<option value="3">3 — Don't exit</option>
</select>
</div>
<div class="flex items-center gap-2 px-3 py-1.5 rounded bg-slate-800/60 border border-slate-600/40 text-xs text-slate-300">
<i class="fa-solid fa-dice-d6 text-slate-400"></i>
<label for="donut-entropy" class="shrink-0">Entropy (<code>-e</code>):</label>
<select id="donut-entropy" name="donut-entropy" class="bg-slate-700 border border-slate-500 rounded px-1.5 py-0.5 text-xs text-slate-200">
<option value="">Default (encrypt + randomize)</option>
<option value="1">1 — None</option>
<option value="2">2 — Random names only</option>
<option value="3">3 — Random names + encrypt</option>
</select>
</div>
<label class="flex items-center gap-2 px-3 py-1.5 rounded bg-slate-800/60 border border-slate-600/40 text-xs text-slate-300 cursor-pointer hover:border-slate-400 transition-colors">
<input type="checkbox" id="donut-preserve-headers" name="donut-preserve-headers" class="w-3.5 h-3.5" />
<i class="fa-solid fa-heading text-slate-400"></i>
<span>Preserve PE headers (<code>-k 2</code>) — keep original PE headers instead of overwriting them</span>
</label>
<div class="flex items-center gap-2 px-3 py-1.5 rounded bg-slate-800/60 border border-slate-600/40 text-xs text-slate-300">
<i class="fa-solid fa-rotate-left text-slate-400"></i>
<label for="donut-resume-offset" class="shrink-0">Resume host offset (<code>-y</code>):</label>
<input type="number" id="donut-resume-offset" name="donut-resume-offset" placeholder="file offset" min="1" class="bg-slate-700 border border-slate-500 rounded px-1.5 py-0.5 text-xs text-slate-200 w-24" />
</div>
<div id="donut-nonwin-warn" class="hidden flex items-center gap-2 px-3 py-1.5 rounded bg-yellow-900/30 border border-yellow-600/40 text-xs text-yellow-300">
<i class="fa-solid fa-triangle-exclamation"></i>
<span>Non-Windows targets selected — Donut only applies to Windows builds; other platforms build normally</span>