Question: Create a function named magicNumberTests which takes in a filename as an argument ( which can be assumed to be a regular file ) .

Create a function named magicNumberTests which takes in a filename as an argument (which can be assumed to be a regular file). The function should
determine (and return) whether the file is an ELF (relocatable=0, executable=1, shared
object=2, core=3), or an executable script (BASH=4, python=5).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!