Hostile 100% windows Download

ads_windows_test.go

Test code for malware evasion techniques

Go reserved-name undeletable file hidingGo alternate data stream hiding tests
SHA-2569f25af5cb4801fad596068e24fd82e0f7ce61ae2b4820596b7008fe834cd155b
MaleculeO(Er)H(F)

Evidence

Delete file (os.Remove) lines 13–21
13func tempFile(t *testing.T) string {
14 t.Helper()
15 f, err := os.CreateTemp("", "ads_test_*.txt")
16 require.NoError(t, err)
17 f.Write([]byte("main stream content"))
18 f.Close()
19 t.Cleanup(func() { os.Remove(f.Name()) })
20 return f.Name()
21}
Go alternate data stream hidden payload lines 23–25
23func TestWriteAndRead(t *testing.T) {
24 path := tempFile(t)
25 payload := []byte("secret ADS payload")
Go alternate data stream hiding tests lines 27–28
27 err := Write(path, "hidden", payload)
28 require.NoError(t, err)
func Test prefix lines 35–36
35func TestList(t *testing.T) {
36 path := tempFile(t)
Go reserved-name undeletable file hiding lines 115–117
115 path, err := CreateUndeletable(dir, []byte("hidden payload"))
116 require.NoError(t, err)
117 t.Logf("Created undeletable file: %s", path)

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.