Crypto-Cat / CTF

CTF chall write-ups, files, scripts etc (trying to be more organised LOL)
1.61k stars 345 forks source link

Color scheme used for gdb #12

Closed jstaursky closed 1 year ago

jstaursky commented 1 year ago

What is your .gdbinit color settings? I like them more than the stock pwngdb/peda/gef ones

Crypto-Cat commented 1 year ago

It's not specific to GDB, just my terminal colour settings, here's the screenshot:

image

I recommend keeping a default profile as well, since some tools have colour coded output, e.g. linpeas. You can easily swap between them with right click.

jstaursky commented 1 year ago

Hey thanks! BTW What is your PS1 environment variable set to?

Crypto-Cat commented 1 year ago
if [ "$color_prompt" = yes ]; then
    PS1="\[\033[0;31m\]\342\224\214\342\224\200\$([[ \$? != 0 ]] && echo \"[\[\033[0;31m\]\342\234\227\[\033[0;37m\]]\342\224\200\")[$(if [[ ${EUID} == 0 ]]; then echo '\[\033[01;31m\]root\[\033[01;33m\]@\[\033[01;96m\]\h'; else echo '\[\033[0;39m\]\u\[\033[01;33m\]@\[\033[01;96m\]\h'; fi)\[\033[0;31m\]]\342\224\200[\[\033[0;32m\]\w\[\033[0;31m\]]\n\[\033[0;31m\]\342\224\224\342\224\200\342\224\200\342\225\274 \[\033[0m\]\[\e[01;33m\]\\$\[\e[0m\]"
else
    PS1='┌──[\u@\h]─[\w]\n└──╼ \$ '
fi