-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compilation errors ! #3
Comments
Hi, This seems to be just a warning. Have you tried adding these two parameters? |
Hi WinMin, on ubuntu i replaced the line 17
Thanks. |
Would you like to try using my makefile directly?
|
Yes the following output is from the "make command"
|
Sorry, this exploit was written and tested on Ubuntu. I haven't tried it on CentOS yet. If I have time tomorrow, I will give it a try. |
Thank you WinMin, If you have time please give it a try. |
I tried compiling on CentOS 8 and it worked. CentOS Linux release 8.5.2111, First, install dependencies: yum makecache --refresh
yum install dbus-glib-devel dbus-devel glib2-devel Try to compile. [root@iZ8vbehx37i2ttr1qqynnzZ CVE-2021-3560]# make
gcc exploit.c -o exploit agent.c agent.h -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -lgio-2.0 -lgobject-2.0 -lglib-2.0 -g -Wall -Werror -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -ldbus-1 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -ldbus-glib-1 -ldbus-1 -lgobject-2.0 -lglib-2.0
[root@iZ8vbehx37i2ttr1qqynnzZ CVE-2021-3560]# ls
agent.c agent.h exploit exploit.c Makefile README.md
[root@iZ8vbehx37i2ttr1qqynnzZ CVE-2021-3560]#
I have no problem. Would you like to try again? |
On centos 6.9 it still throw compilation erros : root@localhost CVE-2021-3560]# ls
[root@localhost CVE-2021-3560]# make
|
Can you send over the compiled file so i can try it on my centos 6.9 ? |
[xhat@localhost CVE-2021-3560]$ ls [xhat@localhost CVE-2021-3560]$ ldd --version | grep libc It seem that the exploit was compiled using GLIBC_2.14 which is not found on centos 6.9 ? the installed version is 2.12 ? |
Sorry, I couldn't find 6.9 for testing. I guess it's because the corresponding function or global variable definition is missing in the header file? |
remove |
Hi, RicterZ, I tried to remove the compiler flags [xhat@localhost CVE-2021-3560]$ make
|
I managed to make the compilation succeed on centos 6.9 by editing some header in both exploit.c
Removed the header agent.c
Compiled with :
but exploit failed
|
Hi,
Tried to compile the exploit on diffrent machine including centos 6.9 and ubuntu 20 i get these errors :
Thank You.
The text was updated successfully, but these errors were encountered: