So I'm still new to disassembling and I've got a couple of problems that would help being taken care of.
I'm following along the book "Art of Exploitation". The author prefers using Intel syntax in 32bit mode when he objdumps and since I want to follow along I want to configure my syntax the same. Since my Ubuntu uses AT&T 64bit mode by default, I have to input optional arguments each time I objdump like:
$ objdump -M i386,intel -D a.out
Is there a way to change the default settings for objdump?
I also want to change the gdb syntax to intel so I looked for .gdbinit but couldn't find it. Instead I made a new one in the home directory by doing this:
$ echo "set disassembly-flavor intel" > ~/.gdbinit
but didn't seem to work. Can anyone tell me where the environment variables (or environment variable config files) for objdump and gdbinit are?