File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,12 @@ func ErrorInvalidCommandLength(msg string) error {
1515 return fmt .Errorf ("%w: %s" , errInvalidCommandLength , msg )
1616}
1717
18- // to this function with <shell> -c or anything of the like.
18+ // This payload was generated using ysoserial-modified with the CommonsCollections6 gadget and the bash shell arg
19+ // The benefit of this payload over one generated from the unmodified ysoserial is the you do not need to
20+ // prepend it with a bash -c, and the spaces do not need to be replaced with $IFS.
21+ // It also solves redirection issues that are present in unmodified ysoserial payloads.
22+ // This payload will always run the provided command using bash, hence the name.
23+ // That said you should not need, nor should you prepend a <shell> -c to commandStr parameter passed here.
1924func Commons6ModifiedBashCommandBytecode (commandStr string ) (string , error ) {
2025 if len (commandStr ) > 255 || len (commandStr ) < 1 {
2126 return "" , ErrorInvalidCommandLength ("command must be between 1 and 255 characters" )
You can’t perform that action at this time.
0 commit comments