gen0cide / gscript

framework to rapidly implement custom droppers for all three major operating systems
https://github.com/gen0cide/gscript
GNU Affero General Public License v3.0
680 stars 105 forks source link

docker: terminal_check_windows.go:10:2: cannot find package #117

Open khast3x opened 4 years ago

khast3x commented 4 years ago

Hello,

The error happens when generating for a windows binary:

[gscript/docker version:master ~]# gscript compile --enable-logging --os windows --obfuscation-level 3 /myvol/test1.gs
[gscript:cli]  INFO *** COMPILER OPTIONS ***
[gscript:cli]  INFO 
[gscript:cli]  INFO                        OS: windows                                                                 
[gscript:cli]  INFO                      Arch: amd64                                                                   
[gscript:cli]  INFO               Output File: /tmp/1575166006_gscript.bin                                             
[gscript:cli]  INFO      Keep Build Directory: [DISABLED]                                                              
[gscript:cli]  INFO           UPX Compression: [DISABLED]                                                              
[gscript:cli]  INFO           Logging Support: [ENABLED]                                                               
[gscript:cli]  INFO          Debugger Support: [DISABLED]                                                              
[gscript:cli]  INFO       Human Redable Names: [DISABLED]                                                              
[gscript:cli]  INFO   Import All Native Funcs: [DISABLED]                                                              
[gscript:cli]  INFO          Skip Compilation: [DISABLED]                                                              
[gscript:cli]  INFO         Obfuscation Level: ALL OBFUSCATION DISABLED                                                
[gscript:cli]  INFO 
[gscript:cli]  INFO ***  SOURCE SCRIPTS  ***
[gscript:cli]  INFO 
[gscript:cli]  INFO     Script : /myvol/test1.gs                                                         
[gscript:cli]  INFO 
[gscript:cli]  INFO ************************
[gscript:cli]  INFO 
/root/go/src/github.com/sirupsen/logrus/terminal_check_windows.go:10:2: cannot find package "github.com/konsorten/go-windows-terminal-sequences" in any of:
    /opt/go/src/github.com/konsorten/go-windows-terminal-sequences (from $GOROOT)

Solved by running go get github.com/konsorten/go-windows-terminal-sequences .

Similar issue that this one

Cheers!