-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #440 from BishopFox/snitch
Add optional monitoring of implant hashes on Virus Total and IBM X-Force
- Loading branch information
Showing
102 changed files
with
9,415 additions
and
1,412 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package command | ||
|
||
import ( | ||
"context" | ||
"fmt" | ||
|
||
"github.com/bishopfox/sliver/protobuf/commonpb" | ||
"github.com/bishopfox/sliver/protobuf/rpcpb" | ||
"github.com/desertbit/grumble" | ||
) | ||
|
||
func monitorStartCmd(ctx *grumble.Context, rpc rpcpb.SliverRPCClient) { | ||
resp, err := rpc.MonitorStart(context.Background(), &commonpb.Empty{}) | ||
if err != nil { | ||
fmt.Printf(Warn+"%s", err) | ||
return | ||
} | ||
if resp != nil && resp.Err != "" { | ||
fmt.Printf(Warn+"%s", resp.Err) | ||
return | ||
} | ||
fmt.Printf(Info + "Started monitoring threat intel platforms for implants hashes") | ||
} | ||
|
||
func monitorStopCmd(ctx *grumble.Context, rpc rpcpb.SliverRPCClient) { | ||
_, err := rpc.MonitorStop(context.Background(), &commonpb.Empty{}) | ||
if err != nil { | ||
fmt.Printf(Warn+"%s", err) | ||
return | ||
} | ||
fmt.Printf(Info + "Stopped monitoring threat intel platforms for implants hashes") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.