Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alvin-tosh/Kenyatta-Ransomware
/ functions
Functions
65 in github.com/alvin-tosh/Kenyatta-Ransomware
⨍
Functions
65
◇
Types & classes
7
↓ 17 callers
Function
handleErr
(err error, t *testing.T)
Kenyatta ransomware/cryptofs/file_test.go:99
↓ 13 callers
Function
handleErr
(err error, t *testing.T)
Kenyatta ransomware/repository/repository_test.go:129
↓ 8 callers
Method
CreateOrUpdate
Create or update a value
Kenyatta ransomware/repository/repository.go:64
↓ 8 callers
Function
Open
Open or create a BoltDB database
Kenyatta ransomware/repository/repository.go:19
↓ 6 callers
Method
IsAvailable
Check if a key is available
Kenyatta ransomware/repository/repository.go:77
↓ 3 callers
Method
Decrypt
Decrypt the file content with AES-CTR with the given key sending then to dst
Kenyatta ransomware/cryptofs/file.go:61
↓ 3 callers
Method
Encrypt
Encrypt the file content with AES-CTR with the given key sending then to dst
Kenyatta ransomware/cryptofs/file.go:21
↓ 3 callers
Method
Find
Find by key
Kenyatta ransomware/repository/repository.go:28
↓ 3 callers
Method
GetExecutable
GetExecutable returns the path to tor.exe
Kenyatta ransomware/tor/tor_windows.go:136
↓ 2 callers
Function
Decrypt
Decrypt content using a Private Key
Kenyatta ransomware/rsa/rsa.go:28
↓ 2 callers
Function
Encrypt
Encrypt content with a public key
Kenyatta ransomware/rsa/rsa.go:13
↓ 2 callers
Method
Read
Read 'overrides' the underlying io.Reader's Read method. This is the one that will be called by io.Copy(). We simply use it to keep track of byte coun
Kenyatta ransomware/utils/download_progress.go:23
↓ 2 callers
Method
ReplaceBy
(filename string)
Kenyatta ransomware/cryptofs/file.go:93
↓ 1 callers
Method
AddNewKeyPair
AddNewKeyPair persist a new keypair on server
Kenyatta ransomware/client/client.go:90
↓ 1 callers
Method
Clean
Clean delete the tor folder
Kenyatta ransomware/tor/tor_windows.go:151
↓ 1 callers
Method
Delete
Delete a key from the bucket
Kenyatta ransomware/repository/repository.go:44
↓ 1 callers
Method
DeleteBucket
Delete a bucket
Kenyatta ransomware/repository/repository.go:56
↓ 1 callers
Method
Do
Do make an http request
Kenyatta ransomware/client/client.go:51
↓ 1 callers
Method
Download
Download downloads the tor zip distribution
Kenyatta ransomware/tor/tor_windows.go:40
↓ 1 callers
Method
DownloadAndExtract
DownloadAndExtract download the tor bundle and extract to a given path It also returns the last known error
Kenyatta ransomware/tor/tor_windows.go:57
↓ 1 callers
Function
GenerateRandomANString
Generate a random alphanumeric string with the given size
Kenyatta ransomware/utils/utils.go:13
↓ 1 callers
Function
GetCurrentUser
Return an *os.User instance representing the current user
Kenyatta ransomware/utils/utils.go:55
↓ 1 callers
Method
Kill
Kill kill the tor process
Kenyatta ransomware/tor/tor_windows.go:141
↓ 1 callers
Method
SendEncryptedPayload
SendEncryptedPayload send an encrypted payload to server
Kenyatta ransomware/client/client.go:70
↓ 1 callers
Method
Start
Start starts the tor proxy. Start blocks until an error occur or tor bootstraping is done
Kenyatta ransomware/tor/tor_windows.go:110
↓ 1 callers
Function
StringInSlice
Check if a value exists on slice
Kenyatta ransomware/utils/utils.go:24
↓ 1 callers
Method
UseTorTransport
UseTorTransport upgrades the http transport to use the tor proxy
Kenyatta ransomware/client/client.go:37
↓ 1 callers
Function
decryptFiles
(key string)
Kenyatta ransomware/cmd/unlocker/unlocker.go:49
↓ 1 callers
Function
encryptFiles
()
Kenyatta ransomware/cmd/ransomware/ransomware.go:101
↓ 1 callers
Method
extractFile
(file *zip.File)
Kenyatta ransomware/tor/tor_windows.go:83
Method
AddKeys
AddKeys persists a new key pair
Kenyatta ransomware/web/handlers.go:28
Function
BenchmarkEncryptDecryptRSA
(b *testing.B)
Kenyatta ransomware/rsa/rsa_test.go:68
Function
CheckOS
Execute only on windows
Kenyatta ransomware/cmd/common.go:112
Function
CustomHTTPErrorHandler
(err error, c echo.Context)
Kenyatta ransomware/web/response.go:27
Method
DecryptPayloadMiddleware
DecryptPayloadMiddleware try to decrypt the payload from request
Kenyatta ransomware/web/middlewares.go:11
Function
FileExists
FileExists returns whether the given file or directory exists or not
Kenyatta ransomware/utils/utils.go:93
Function
GetDrives
Return a list containing the letters used by the current drives
Kenyatta ransomware/utils/utils.go:44
Method
GetEncryptionKey
GetEncryptionKey retrieves a encryption key for a given id
Kenyatta ransomware/web/handlers.go:60
Method
Index
Index simply returns a OK
Kenyatta ransomware/web/handlers.go:76
Function
New
New returns a new client instance
Kenyatta ransomware/client/client.go:26
Function
New
New returns a new Tor instance
Kenyatta ransomware/tor/tor_windows.go:35
Function
NewEngine
NewEngine return a new echo.Echo instance
Kenyatta ransomware/web/handlers.go:19
Function
PrintBanner
Print banner
Kenyatta ransomware/cmd/banner.go:24
Function
RenameFile
RenameFile move the file from src to the file on dst This is a workaround to os.Rename across drives on windows
Kenyatta ransomware/utils/utils.go:65
Function
SliceContainsSubstring
SliceContainsSubstring check if a substring exists on a slice item
Kenyatta ransomware/utils/utils.go:34
Function
TestEncryptDecrypt
(t *testing.T)
Kenyatta ransomware/cryptofs/file_test.go:10
Function
TestEncryptDecryptRSA
(t *testing.T)
Kenyatta ransomware/rsa/rsa_test.go:51
Function
TestGenerateANString
(t *testing.T)
Kenyatta ransomware/utils/utils_test.go:9
Function
TestGetCurrentUser
(t *testing.T)
Kenyatta ransomware/utils/utils_test.go:46
Function
TestReplaceBy
(t *testing.T)
Kenyatta ransomware/cryptofs/file_test.go:66
Function
TestRepositoryCreateOrUpdate
(t *testing.T)
Kenyatta ransomware/repository/repository_test.go:19
Function
TestRepositoryDelete
(t *testing.T)
Kenyatta ransomware/repository/repository_test.go:94
Function
TestRepositoryDeleteBucket
(t *testing.T)
Kenyatta ransomware/repository/repository_test.go:112
Function
TestRepositoryFind
(t *testing.T)
Kenyatta ransomware/repository/repository_test.go:28
Function
TestRepositoryFindOnNotExistentBucket
(t *testing.T)
Kenyatta ransomware/repository/repository_test.go:44
Function
TestRepositoryIsAvailable
(t *testing.T)
Kenyatta ransomware/repository/repository_test.go:59
Function
TestRepositoryIsAvailableOnNotExistentBucket
(t *testing.T)
Kenyatta ransomware/repository/repository_test.go:80
Function
TestRepositoryOpen
(t *testing.T)
Kenyatta ransomware/repository/repository_test.go:9
Function
TestStringInSlice
(t *testing.T)
Kenyatta ransomware/utils/utils_test.go:28
Function
Usage
Print script usage
Kenyatta ransomware/cmd/banner.go:31
Function
init
()
Kenyatta ransomware/cmd/unlocker/unlocker.go:18
Function
init
()
Kenyatta ransomware/cmd/ransomware/ransomware.go:45
Function
main
()
Kenyatta ransomware/cmd/unlocker/unlocker.go:26
Function
main
()
Kenyatta ransomware/cmd/ransomware/ransomware.go:58
Function
main
()
Kenyatta ransomware/cmd/server/server.go:26