io12 / pwninit

pwninit - automate starting binary exploit challenges
MIT License
873 stars 58 forks source link

Adds check for existing libc.so.6 #305

Open devx00 opened 4 months ago

devx00 commented 4 months ago

This commit adds a check to see if libc.so.6 already exists in the target directory. If it does it displays a notice but continues without raising an error.

devx00 commented 4 months ago

I have been running into this issue frequently while working on multiple binaries in the same directory which share the same libc and ld. Since I can't think of a good reason to abort when the libc.so.6 symlink already exists I just added a check for it before attempting the symlink creation.