apogiatzis / gdb-peda-pwndbg-gef

A script to automatically install Peda+pwndbg+GEF plugins for gdb
391 stars 79 forks source link

Fixed permission error and added an exception handling #1

Closed ghost closed 5 years ago

ghost commented 5 years ago

Hi there :smiley: , Thank you for creating an easy setup script! I love this :heart_eyes: It's all good, but I had a problem while the installation process.

Trouble

[+] Downloading GEF...
[+] Setting .gdbinit...
[+] Creating files...
cp: cannot create regular file '/usr/bin/gdb-peda': Permission denied
cp: cannot create regular file '/usr/bin/gdb-pwndbg': Permission denied
cp: cannot create regular file '/usr/bin/gdb-gef': Permission denied
[+] Setting permissions...
chmod: changing permissions of '/usr/bin/gdb-add-index': Operation not permitted
chmod: changing permissions of '/usr/bin/gdb-gef': Operation not permitted
chmod: changing permissions of '/usr/bin/gdb-peda': Operation not permitted
chmod: changing permissions of '/usr/bin/gdb-pwndbg': Operation not permitted
[+] Done

Troubleshooting

After Applying Solutions

[+] Downloading GEF...
[+] Setting .gdbinit...
[+] Creating files...
[+] Setting permissions...
[+] Done

Thanks :+1: , Andrew

apogiatzis commented 5 years ago

@developer4ndr3w Thanks for spotting that and thanks for submitting a fix! It looks good! Merging it now.