@@ -143,6 +143,20 @@ func GetParser(opts *Options) *cobra.Command {
143
143
os .Exit (1 )
144
144
}
145
145
146
+ if opts .UseAPIHashing {
147
+ fmt .Printf ("[+] Retrieving dependencies to use API Hashing...\n " )
148
+
149
+ execGoGetCmd := exec .Command ("go" , "get" , "github.com/Binject/debug/pe" )
150
+ execGoGetCmd .Dir = MYPH_TMP_DIR
151
+ _ , _ = execGoGetCmd .Output ()
152
+
153
+ // this should stay to cmepw addr
154
+ execGoGetCmd = exec .Command ("go" , "get" , "github.com/cmepw/myph/internals" )
155
+ execGoGetCmd .Dir = MYPH_TMP_DIR
156
+ _ , _ = execGoGetCmd .Output ()
157
+
158
+ }
159
+
146
160
/* reading the shellcode as a series of bytes */
147
161
shellcode , err := tools .ReadFile (opts .ShellcodePath )
148
162
if err != nil {
@@ -274,11 +288,6 @@ func GetParser(opts *Options) *cobra.Command {
274
288
275
289
fmt .Printf ("\n [+] Template (%s) written to tmp directory. Compiling...\n " , opts .Technique )
276
290
277
- if opts .UseAPIHashing {
278
- execGoGetCmd := exec .Command ("go" , "get" , "github.com/Binject/debug/pe" )
279
- execGoGetCmd .Dir = MYPH_TMP_DIR
280
- _ , _ = execGoGetCmd .Output ()
281
- }
282
291
283
292
execCmd := BuildLoader (opts )
284
293
execCmd .Dir = MYPH_TMP_DIR
0 commit comments