@@ -2,11 +2,12 @@ package cli
2
2
3
3
import (
4
4
"fmt"
5
- "github.com/spf13/cobra"
6
5
"os"
7
6
"path/filepath"
8
7
"strings"
9
8
9
+ "github.com/spf13/cobra"
10
+
10
11
"github.com/cmepw/221b/loader"
11
12
"github.com/cmepw/221b/logger"
12
13
)
@@ -18,15 +19,46 @@ var (
18
19
method string
19
20
)
20
21
22
+ const ASCII_ART = `
23
+ +.
24
+ %: -==[ 2 2 1 b ]==-
25
+ %: : -
26
+ .+*+===++===-----%: :%- =#:
27
+ #- %- =@: .@@.
28
+ .# %-=%@= -%#.
29
+ .% %#@@* #@#
30
+ %. %@%- .#@%. -
31
+ #: %% =@@* :%*
32
+ -% %- .#@@+ =@=
33
+ =@: %- .%@%= +@@=
34
+ @% %- -@@* *@@*
35
+ :@* %-*@@= :#@%- AV evasion framework
36
+ :@# :---:.. %%@@- -@@%:. -
37
+ @% +%%###*+-: %@+. :=++%@%%*. .+%*
38
+ *@ .*@####%@*- %+ :#%%###%#. %@@.
39
+ :@- .:*%%%%#+: %- .*@%%%*=. :%@*.
40
+ +* ..... %- *@*.. -@@+
41
+ #= %- +%: -@#-
42
+ -%#: %-=%* -#:
43
+ = #*. %*%: =#
44
+ -*= %* .-
45
+ +%. %-
46
+ -=.==-::::.%-
47
+ *- .....%: CMEPW Team
48
+ :. %:
49
+ %:
50
+ `
51
+
21
52
var (
22
53
ErrMissingShellPath = fmt .Errorf ("missing shellPath argument" )
23
54
ErrMissingKey = fmt .Errorf ("missing key argument" )
24
- ErrMethodNotSupported = fmt .Errorf ("provided encryption method isn't supported, please choose: 'aes', 'xor'" )
55
+ ErrMethodNotSupported = fmt .Errorf ("provided encryption method isn't supported, please choose: 'aes', 'xor', 'chacha20' " )
25
56
)
26
57
27
58
var bake = & cobra.Command {
28
59
Use : "bake" ,
29
60
Short : "Build a windows payload with the given shell encrypted in it to bypass AV" ,
61
+ Long : ASCII_ART ,
30
62
Run : func (cmd * cobra.Command , args []string ) {
31
63
if shellPath == "" {
32
64
logger .Fatal (ErrMissingShellPath )
@@ -86,5 +118,5 @@ func init() {
86
118
bake .Flags ().StringVarP (& shellPath , "shellPath" , "s" , "" , "path to the shell scrypt" )
87
119
bake .Flags ().StringVarP (& key , "key" , "k" , "" , "key to use for the xor" )
88
120
bake .Flags ().StringVarP (& output , "output" , "o" , "" , "output path (e.g., /home/bin.exe)" )
89
- bake .Flags ().StringVarP (& method , "method" , "m" , "xor" , "encryption method" )
121
+ bake .Flags ().StringVarP (& method , "method" , "m" , "xor" , "encryption method : chacha20, aes, xor " )
90
122
}
0 commit comments