set environment variable in GDB from output of command
问题 I am trying to exploit a buffer overflow in a challenge, the buffer gets it's value from an environment variable. In GDB I know that you can set environment variables using the command: set environment username = test However I need to pass the username variable special characters, so I need to do something like: set environment username= $(echo -e '\xff\x4c......') But that command doesn't get executed and the username variable contains literally what I wrote down, does anybody know a trick