Answer: I don’t think it does but maybe because they answered it.
Explanation:What I think is why is up there (Wait I think I forgot how to speak-)
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.
A is your answer.............
1. It is based on scientific and technological advancements.
2. It is more a practical discipline and less a theoretical one.
3. It is a fast growing modern discipline.
4. It makes use of the research findings of psychology, sociology, engineering, sciences and social psychology etc., and applies the same to the field of education.
5. It brings pupils, teachers and technical means together in an effective way.
6. It is the science of techniques and methods. It locates the problems in the field of education, remedies them and ultimately aims at improving the education system.
7. It is bound to improve the teacher, the learner and the teaching learning process.
Answer:
#first section
a= float(input(" enter Numerator: " ))
b= float(input(" enter Divisor: "))
#second section
c = a//b
d = a%b
#third section
print(c, "is the quotient")
print(d, "is the remainder")
print ( c," remainder ",d)
Explanation:
In python (programming language) there are other ways to divide other than using the normal division "/".
we have floor division "// " and % modulo
<h3>floor division "//" gives you just the
QUOTIENT </h3><h3>
modulo gives you the REMAINDER.</h3><h2>
</h2>
now the program is divided into 3 sessions to make it easy for you to understand.
The first session - This is the input session, it prompts you to in put two values respectively, one for the Numerator and one for the divisor.
The second session - this is where the calculation happens, we carry out a floor division first and then a modulo division.
The third session - This is the Output session prints your answer to the screen, firstly it tells you which number is the quotient and which number is the remainder, after that it combines both the quotient and the remainder into one output