Skip to content

Commit

Permalink
GUI fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lkarlslund committed Mar 29, 2022
1 parent 2ee1f2c commit 5dbf235
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 4 additions & 0 deletions modules/analyze/html/adalanche.css
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ body {
margin-right: 5px;
}

.input-group div {
margin-bottom: 5px;
}

.checkbox-button input[type='checkbox'],
.checkbox-button input[type='radio'] {
display: none;
Expand Down
10 changes: 3 additions & 7 deletions modules/analyze/html/custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function setquery(
}
}
if (mode) {
setquerymode(mode);
set_querymode(mode);
}
if (maxoutgoing) {
$('#maxoutgoing').val(maxoutgoing);
Expand All @@ -69,12 +69,6 @@ function set_querymode(mode) {
$('#querymode_sourcetarget').prop('checked', mode == 'sourcetarget');
}

function setquerymode(mode) {
normal = mode == 'Normal';
$('#querymode_normal').prop('checked', normal);
$('#querymode_reverse').prop('checked', !normal);
}

function window_front(win) {
if (!win.hasClass('window-front')) {
$('#windows div').removeClass('window-front');
Expand Down Expand Up @@ -422,6 +416,7 @@ $(function () {
dataType: 'json',
success: function (data) {
buttons = `<table class="w-full">`;
data.methods.sort((a, b) => (a.name > b.name) ? 1 : -1)
for (i in data.methods) {
method = data.methods[i];

Expand Down Expand Up @@ -476,6 +471,7 @@ $(function () {
buttons += '</table>';
$('#pwnfilter').html(buttons);

data.objecttypes.sort((a, b) => (a.name > b.name) ? 1 : -1)
buttons = `<table class="w-full">`;
for (i in data.objecttypes) {
objecttype = data.objecttypes[i];
Expand Down
6 changes: 3 additions & 3 deletions modules/analyze/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
aria-label="Mode">
<input type="radio" name="mode" id="querymode_normal" value="normal" autocomplete="off" checked />
<label class="btn btn-sm" for="querymode_normal">Normal</label>
<input type="radio" name="mode" id="querymode_reverse" value="inverted" autocomplete="off" />
<input type="radio" name="mode" id="querymode_reverse" value="reverse" autocomplete="off" />
<label class="btn btn-sm" for="querymode_reverse">Reverse</label>
<input type="radio" name="mode" id="querymode_sourcetarget" value="sourcetarget" autocomplete="off" />
<label class="btn btn-sm" for="querymode_sourcetarget">SrcTgt</label>
Expand Down Expand Up @@ -260,8 +260,8 @@
<li class="dropdown-item"
query="(&(objectCategory=PKI-Certificate-Template)(msPKI-Certificate-Name-Flag:and:=1)(|(pKIExtendedKeyUsage=1.3.6.1.5.5.7.3.2)(pKIExtendedKeyUsage=1.3.5.1.5.2.3.4)(pKIExtendedKeyUsage=1.3.6.1.4.1.311.20.2.2)(pKIExtendedKeyUsage=2.5.29.37.0)(pKIExtendedKeyUsage:count:=0)))"
mode="Normal" depth=99 methods="default">Client cert templates with custom SAN (pose as anyone)</li>
<li class="dropdown-item" query="(|(objectSid=S-1-5-21-*-513)(objectSid=S-1-5-11))" mode="Reverse"
depth=99 methods="default">What can Domain Users and Authenticated Users do?</li>
<li class="dropdown-item" query="(|(objectSid=S-1-5-21-*-513)(objectSid=S-1-5-11)(objectSid=S-1-1-0))" mode="Reverse"
depth=99 methods="default">What can Domain Users, Authenticated Users and Everyone do?</li>
<li class="dropdown-item"
query="(&(objectCategory=Group)(|(name=*vcenter*)(name=*vmware*)(name=*esxi*)(name=*vsan*)(name=*simplivity*)))"
mode="Normal" depth=99 methods="default">Who can dump a virtual DC? (hypervisor/SAN sounding groups)</li>
Expand Down

0 comments on commit 5dbf235

Please sign in to comment.