Skip to content

Commit

Permalink
Minor fix for datapath
Browse files Browse the repository at this point in the history
  • Loading branch information
lkarlslund committed Nov 30, 2021
1 parent 45baea8 commit a2483ff
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
13 changes: 9 additions & 4 deletions modules/analyze/html/adalanche.css
Original file line number Diff line number Diff line change
Expand Up @@ -82,18 +82,23 @@ body {
transform: translate(-50%, 0%);
}

#explore {
#commandbuttons {
position: absolute;
left: 10px;
bottom: 10px;
white-space: nowrap;
}

#commandbuttons .btn {
margin-right: 5px;
}

.checkbox-button input[type='checkbox'],
.checkbox-button input[type='radio'] {
display: none;
}

.checkbox-button input[type='checkbox']:checked + label.btn,
.checkbox-button input[type='radio']:checked + label.btn {
.checkbox-button input[type='checkbox']:checked+label.btn,
.checkbox-button input[type='radio']:checked+label.btn {
background-color: var(--primary-color);
}
}
2 changes: 1 addition & 1 deletion modules/analyze/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
<div id="cy" class="fullscreen z-10"></div>

<div id="overlay" class="fullscreen z-40 pointer-events-none">
<button id="explore" class="btn btn-primary pointer-events-auto">Explore</button>
<div id="commandbuttons" class="pointer-events-auto"><button id="explore" class="btn btn-primary">Explore</button></div>
<!-- <div id="infobar" class="float-left">
<div id="infowrap" class="fw-250 h-full pointer-events-auto">
<div id="infocontent" class="fw-250 bg-dark h-full overflow-y-auto">
Expand Down
7 changes: 5 additions & 2 deletions modules/integrations/activedirectory/collect/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func init() {
if runtime.GOOS == "windows" {
defaultmode = "ntlmsspi"
}
authmodeString = Command.Flags().String("authmode", defaultmode, "Bind mode: unauth, simple, md5, ntlm, ntlmpth (password is hash), ntlmsspi (current user, default)")
authmodeString = Command.Flags().String("authmode", defaultmode, "Bind mode: unauth, simple, md5, ntlm, ntlmpth (password is hash), ntlmsspi (integrated Windows)")

clicollect.Collect.AddCommand(Command)
Command.PreRunE = PreRun
Expand Down Expand Up @@ -209,7 +209,10 @@ func Execute(cmd *cobra.Command, args []string) error {
attributes = strings.Split(*attributesparam, ",")
}

datapath := cmd.Flag("datapath").Value.String()
datapath := "data"
if idp := cmd.InheritedFlags().Lookup("datapath"); idp != nil {
datapath = idp.Value.String()
}

log.Info().Msg("Probing RootDSE ...")
rootdse, err := ad.Dump(DumpOptions{
Expand Down

0 comments on commit a2483ff

Please sign in to comment.