-
Notifications
You must be signed in to change notification settings - Fork 10
/
main.go
45 lines (39 loc) · 992 Bytes
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package main
import (
"github.com/ddkwork/HyperDbg/sdk"
"github.com/ddkwork/HyperDbg/ux"
"github.com/ddkwork/app"
"github.com/ddkwork/unison"
)
// RtlGenRandom
func main() {
// testSdkCommands()
sdk.TargetFilePath = "testdata/asm.exe"
ux.Run()
// testDisassembly()
// testParsePe()
// testScript()
}
func testSdkCommands() {
app.Run("commands", func(w *unison.Window) {
// w.Content().AddChild(sdk.LayoutCommands())
})
}
func testDisassembly() {
app.Run("asm", func(w *unison.Window) {
// w.Content().AddChild(ux.LayoutDisassemblyTable("C:\\Users\\Admin\\Desktop\\tutorial1.exe"))//32 bit not work
ux.TargetExePath = "sdk/bin/hyperdbg-cli.exe"
w.Content().AddChild(ux.LayoutDisassemblyTable())
})
}
func testParsePe() {
app.Run("pe", func(w *unison.Window) {
ux.TargetExePath = "sdk/bin/hyperlog.dll"
w.Content().AddChild(ux.LayoutPeView())
})
}
func testScript() {
app.Run("script", func(w *unison.Window) {
w.Content().AddChild(ux.LayoutScript())
})
}