Skip to content
This repository has been archived by the owner on Dec 10, 2021. It is now read-only.

S3cur3Th1sSh1t/Sharp-HackBrowserData

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sharp-HackBrowserData

C# Wrapper of HackBrowserData from https://github.com/moonD4rk/HackBrowserData

I 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 for writing the following blog post:

About

C# binary with embeded golang hack-browser-data

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages