Generate a Payload
masterTo generate a payload, run ./phpggc <gadget-chain> [parameters]. The required parameters depend on the exploitation type:
- RCE (Command): Pass the command directly.
./phpggc <chain> <command> - RCE (PHP code): Pass the PHP code as a string.
./phpggc <chain> '<php_code>' - RCE (Function call): Pass the function name and then the arguments.
./phpggc <chain> <function> <argument> - File Write: Pass the target file path and the content to write.
./phpggc <chain> <file_path> <content>