I would say go with
D. winzip
Answer:
Answer explained below
Explanation:
Yes, you can let Set-uid program that is owned by root to run your code instead of /bin/ls but it has it's own drawbacks and is actually not safe.
As you can not rely on that since some of the shells if different from the ruid drop an euid which is actually not safe.
execl("/bin/ls", "ls",(char *)0);
run this under your main program.
Since it can have a root previlege,
-$ cd /tmp/
/tmp$ sudo su
:/tmp# gcc -o system system.c
:/tmp# chmod u+s system // changing file permissions
:/tmp# exit
exit
:/tmp$ cp /bin/sh /tmp/ls
:/tmp$ ./system
<u>Steps:
</u>
1. The first thing you need to do is copy /bin/sh to /tmp.
2. After copying /bin/sh to /tmp set a new name ls but make sure your sh ->.zsh.
3. Set PATH to current directory. /tmp.
4. Compile
5. Run the program system and you can get your root previledge.
Now, with the above exmaple if you change /bin/sh soo that it points back to /bin/bash and repeat all the previous steps, you will not be able to get your root previledges.
Answer:
Bill is building a project network that involves testing a prototype. he must design the prototype (activity 1), build the prototype (activity 2), and test the prototype (activity 3). activity 1 is the predecessor for activity 2 and activity 2 is the predecessor for activity 3. if the prototype fails testing, bill must redesign the prototype; therefore, activity 3 is a predecessor for activity 1. this is an example of
b. looping
Explanation:
- The given example is of looping because each activity is leading to another activity on the completion of some conditions.
- The answer a is not valid as it is not just an example of conditional statements rather it is a loop which will keep moving until unless reached a situation to end it.
- The option c, d an e are not right options for the given example.
Answer:
A. mopped his brow, exhaled sharply, and picked up his phone.
Explanation:
Predicate in a sentence talks about the actions relating to the subject of the sentence, Here, The complete predicate is option A.mopped his brow, exhaled sharply, and picked up his phone. because they were the actions performed by the subject (John) the subject in a sentence usually refers to the person, place, thing, etc (Noun).