Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/S3cur3Th1sSh1t/Sharp-HackBrowserData
C# binary with embeded golang hack-browser-data
https://github.com/S3cur3Th1sSh1t/Sharp-HackBrowserData
Last synced: 3 months ago
JSON representation
C# binary with embeded golang hack-browser-data
- Host: GitHub
- URL: https://github.com/S3cur3Th1sSh1t/Sharp-HackBrowserData
- Owner: S3cur3Th1sSh1t
- Archived: true
- Created: 2020-12-06T12:28:47.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-09T18:58:27.000Z (almost 3 years ago)
- Last Synced: 2024-05-08T01:31:15.212Z (6 months ago)
- Language: C#
- Size: 3.83 MB
- Stars: 94
- Watchers: 5
- Forks: 17
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-hacking-lists - S3cur3Th1sSh1t/Sharp-HackBrowserData - C# binary with embeded golang hack-browser-data (C# #)
README
# Sharp-HackBrowserData
C# Wrapper of HackBrowserData from https://github.com/moonD4rk/HackBrowserDataI did this mainly to experiment for myself with embedding golang binaries in C#.
The HackBrowserData main.go file was changed the following before compilation:
This technique has one main disadvantage. It writes the dll into appdata on runtime to load it. Therefore it's easy to spot for defenders.
```
package main
import "C"
import "fmt"
import "strings"import (
"hack-browser-data/cmd"
)
//maindel :
//export maindel
func maindel(charargs *C.char) {
var stringargs string
stringargs = C.GoString(charargs)
arrayargs := strings.Fields(stringargs)
fmt.Println(arrayargs)
cmd.Execute()
}func main() {
}```
Credit to [shantanu561993](https://github.com/shantanu561993) for writing the following blog post:
* https://medium.com/@shantanukhande/red-team-how-to-embed-golang-tools-in-c-e269bf33876a