Skip to content

Path to copy files don´t exist #2

@sultanovich

Description

@sultanovich

Hi Chan,

I tried to use your script on my centos 7 (or Debian 8) and it´s doesn't work. The error is this:

[*] The base directory is /usr/share/exploitdb/platforms [*] Copying /usr/share/exploitdb/platforms/linux/local/31347.c to /root/AutoLocalPrivilegeEscalation-master/linux_3.10//linux/local/31347.c cp: cannot stat ‘/usr/share/exploit [auto_priv_exploit.zip](https://github.com/ngalongc/AutoLocalPrivilegeEscalation/files/730922/auto_priv_exploit.zip) db/platforms/\033[01;31m\033[Klinux\033[m\033[K/local/31347.c’: No such file or directory [*] Do you wish to compile all the exploit script written in C?

So when I tried to fix it I changed more than a few lines. The attached file is my

new auto_priv_exploit.sh.

Now this script take the kernel version and the os type from the system or you can put the kernel version you will check.

If you need some information of this change please tell me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions