mirror of
https://github.com/BishopFox/sliver
synced 2026-06-08 10:29:05 +00:00
40 lines
1.3 KiB
Go
40 lines
1.3 KiB
Go
package settings
|
|
|
|
/*
|
|
Sliver Implant Framework
|
|
Copyright (C) 2021 Bishop Fox
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
import (
|
|
"github.com/bishopfox/sliver/client/assets"
|
|
"github.com/bishopfox/sliver/client/console"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
// SettingsBeaconsAutoResultCmd - The client settings command.
|
|
func SettingsBeaconsAutoResultCmd(cmd *cobra.Command, con *console.SliverClient, args []string) {
|
|
var err error
|
|
if con.Settings == nil {
|
|
con.Settings, err = assets.LoadSettings()
|
|
if err != nil {
|
|
con.PrintErrorf("%s\n", err)
|
|
return
|
|
}
|
|
}
|
|
con.Settings.BeaconAutoResults = !con.Settings.BeaconAutoResults
|
|
con.PrintInfof("Beacon Auto Result = %v\n", con.Settings.BeaconAutoResults)
|
|
}
|