EvilBytecode / ThunderKitty

🔑 Open source stealer written in Go, all logs will be sent to Telegram bot.
MIT License
72 stars 13 forks source link

Error building executable: exit status 1 #18

Closed ZaddyWaddy closed 2 months ago

ZaddyWaddy commented 2 months ago

main.go:6:2: found packages HideConsole (hideconsole.go) and HideConsoleWindow (hideconsolewindow.go) in C:\Users\urfat\Desktop\ThunderKitty-main\utils\hideconsole Error building executable: exit status 1

also gives this sometimes

modernc.org/sqlite/lib

....\go\pkg\mod\modernc.org\sqlite@v1.30.1\lib\hooks.go:13:7: undefined: libc.X__ccgo_sqlite3_log ....\go\pkg\mod\modernc.org\sqlite@v1.30.1\lib\mutex.go:347:28: tls.ID undefined (type libc.TLS has no field or method ID) ....\go\pkg\mod\modernc.org\sqlite@v1.30.1\lib\mutex.go:356:33: tls.ID undefined (type libc.TLS has no field or method ID) ....\go\pkg\mod\modernc.org\sqlite@v1.30.1\lib\mutex.go:365:28: tls.ID undefined (type libc.TLS has no field or method ID) ....\go\pkg\mod\modernc.org\sqlite@v1.30.1\lib\mutex.go:398:66: tls.ID undefined (type libc.TLS has no field or method ID) ....\go\pkg\mod\modernc.org\sqlite@v1.30.1\lib\mutex.go:407:66: tls.ID undefined (type *libc.TLS has no field or method ID) ....\go\pkg\mod\modernc.org\sqlite@v1.30.1\lib\sqlite_windows.go:26349:12: undefined: libc.X__mingw_vsnwprintf ....\go\pkg\mod\modernc.org\sqlite@v1.30.1\lib\sqlite_windows.go:92826:10: undefined: libc.X_InterlockedCompareExchange ....\go\pkg\mod\modernc.org\sqlite@v1.30.1\lib\sqlite_windows.go:92832:9: undefined: libc.XInitializeCriticalSection ....\go\pkg\mod\modernc.org\sqlite@v1.30.1\lib\sqlite_windows.go:92854:10: undefined: libc.X_InterlockedCompareExchange ....\go\pkg\mod\modernc.org\sqlite@v1.30.1\lib\sqlite_windows.go:92854:10: too many errors main.go:6:2: found packages HideConsole (hideconsole.go) and HideConsoleWindow (hideconsolewindow.go) in C:\Users\urfat\Desktop\ThunderKitty-main\utils\hideconsole

EvilBytecode commented 2 months ago

My friend @SecDbg will look at it, since my english is corrupted💀

SecDbg commented 2 months ago

In order to fix the first issue, redownload the latest version from the repo. You're using an outdated one with two hideconsole packages, and this was fixed.

The second error? No fucking idea. I have no idea what is causing it, it's something to do with the sql parsing library. You're the second person I've seen with this error, and I don't know why it happens. I've tried replicating it but can't. I've built ThunderKitty on two PCs, and in a VM, and it's worked fine for me every time.

ZaddyWaddy commented 2 months ago

ah thanks for the help i was thinking it was to do with the version of mingw i had or something im on the latest one i thought i might have needed to downgrade tho

ZaddyWaddy commented 2 months ago

modernc.org/sqlite/lib

........\go\pkg\mod\modernc.org\sqlite@v1.30.1\lib\hooks.go:13:7: undefined: libc.X__ccgo_sqlite3_log ........\go\pkg\mod\modernc.org\sqlite@v1.30.1\lib\mutex.go:347:28: tls.ID undefined (type libc.TLS has no field or method ID) ........\go\pkg\mod\modernc.org\sqlite@v1.30.1\lib\mutex.go:356:33: tls.ID undefined (type libc.TLS has no field or method ID) ........\go\pkg\mod\modernc.org\sqlite@v1.30.1\lib\mutex.go:365:28: tls.ID undefined (type libc.TLS has no field or method ID) ........\go\pkg\mod\modernc.org\sqlite@v1.30.1\lib\mutex.go:398:66: tls.ID undefined (type libc.TLS has no field or method ID) ........\go\pkg\mod\modernc.org\sqlite@v1.30.1\lib\mutex.go:407:66: tls.ID undefined (type *libc.TLS has no field or method ID) ........\go\pkg\mod\modernc.org\sqlite@v1.30.1\lib\sqlite_windows.go:26349:12: undefined: libc.X__mingw_vsnwprintf ........\go\pkg\mod\modernc.org\sqlite@v1.30.1\lib\sqlite_windows.go:92826:10: undefined: libc.X_InterlockedCompareExchange ........\go\pkg\mod\modernc.org\sqlite@v1.30.1\lib\sqlite_windows.go:92832:9: undefined: libc.XInitializeCriticalSection ........\go\pkg\mod\modernc.org\sqlite@v1.30.1\lib\sqlite_windows.go:92854:10: undefined: libc.X_InterlockedCompareExchange ........\go\pkg\mod\modernc.org\sqlite@v1.30.1\lib\sqlite_windows.go:92854:10: too many errors Error building executable: exit status 1

yeah i downloaded the latest one and it gives me that ill take more of a look into it if i find a fix ill update this

EvilBytecode commented 2 months ago

are you on windows?

SecDbg commented 2 months ago

The issue happens on Windows, both 10 and 11. I still can't reproduce it so not sure why.

EvilBytecode commented 2 months ago

i will reproduce with you

SecDbg commented 2 months ago

Shut the fuck up

ZaddyWaddy commented 2 months ago

windows 11 yeah

ZaddyWaddy commented 2 months ago

im trying with msys64 apparently before i had some other one like cygwin or smth like that i forgot what it said

SecDbg commented 2 months ago

Cygwin is the same thing as Msys or whatever as far as I know, they're both just CLI tools. Did you install MinGW-w64 using Msys like the Microsoft guide stated?

ZaddyWaddy commented 2 months ago

i did just now not before tho im trying it its taking a while for the go run command to work tho

ZaddyWaddy commented 2 months ago

yeah im so cooked might just install linux on a vm

ZaddyWaddy commented 2 months ago

image

SecDbg commented 2 months ago

hmm so gcc is installed also idk if the builder would work for linux, haven't tested compatibility you get the error while trying to actually build the stub right? not when running the builder

ZaddyWaddy commented 2 months ago

yeah when building the stub image

ZaddyWaddy commented 2 months ago

image idk man

SecDbg commented 2 months ago

Damnit. One solution I might suggest is creating a Windows VM and installing the Go toolkit and MinGW-w64 through Mysy2. You won't be able to use the actual builder gui, but you can copy the main.go file from your main pc and build it using the command go build -ldflags "-s -w -H=windowsgui" main.go

SecDbg commented 2 months ago

You have to copy over the other files aswell if you do that. Might work

ZaddyWaddy commented 2 months ago

any specific windows version or nah?

ZaddyWaddy commented 2 months ago

i might try win 10 cuz im on win 11 right now

SecDbg commented 2 months ago

Windows 11 worked for me, but windows 10 is compatible the same as far as i know

ZaddyWaddy commented 2 months ago

is there any specific version of go i need i always just download the latest version

SecDbg commented 2 months ago

latest is fine, same with msys2 and mingw toolchain. latest versions of all

SecDbg commented 2 months ago

At this point I've no idea what actually causes the error. I doubt it's anything hardware related but at the same time I've had someone reinstall everything from scratch to no avail

ZaddyWaddy commented 2 months ago

is the visual studio code extension a requirement or nah

SecDbg commented 2 months ago

Nah vsc isn't required at all

ZaddyWaddy commented 2 months ago

alright the vm is installing right now

ZaddyWaddy commented 2 months ago

vm gave me an error about the graphics driver or something idk what happened

ZaddyWaddy commented 2 months ago

im trying to do it after uninstalling git on my pc now

ZaddyWaddy commented 2 months ago

yeah nah didnt work fuck knows

EvilBytecode commented 2 months ago

@SecDbg maybe we will release a console app? so we can avoid these typa problems?

ZaddyWaddy commented 2 months ago

okay i fixed it by changing all the sqlite ones u used to this one github.com/mattn/go-sqlite3

ZaddyWaddy commented 2 months ago

not sure if it will still send the stuff to telegram but i can see maybe?

ZaddyWaddy commented 2 months ago

it works

SecDbg commented 2 months ago

@SecDbg maybe we will release a console app? so we can avoid these typa problems?

builder isn't the issue. stub is

SecDbg commented 2 months ago

it works

It sent the message to telegram and compiled fine?

ZaddyWaddy commented 2 months ago

yeah

ZaddyWaddy commented 2 months ago

image

ZaddyWaddy commented 2 months ago

just from changing it over to the other sqlite github.com/mattn/go-sqlite3

SecDbg commented 2 months ago

did you change the code at all, for the different sqlite package, or did you keep it the same?

ZaddyWaddy commented 2 months ago

i changed the code in utils/browser for a few of them i think conn cookies downloads history logins all those just changing them to github.com/mattn/go-sqlite3 instead of the modernc

ZaddyWaddy commented 2 months ago

everything still seems to be working with it to such as anti triage vm image and other stuff

ZaddyWaddy commented 2 months ago

should i upload it to virus total or another site?

SecDbg commented 2 months ago

it'll be detected right now anyway, stealer isn't undetected by windows defender atm as far as i know

ZaddyWaddy commented 2 months ago

alr alr

SecDbg commented 2 months ago

something is flagging, no idea if its a string or byte sequence or what

SecDbg commented 2 months ago

idk if we're gonna continue working on thunderkitty, i might start working on my own one that does everything in memory

ZaddyWaddy commented 2 months ago

still 6/74 on virus total thats crazy

ZaddyWaddy commented 2 months ago

not detected by malwarebytes either which is what most ppl use