ahmedsadik123 / lazykali

Automatically exported from code.google.com/p/lazykali
0 stars 0 forks source link

Correcting problems in updating exploitdb #8

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Run lazykali as root
2. Choose 4) Exploitdb
3. 1) Update Exploitdb

What is the expected output? What do you see instead?
 I get the following error:
tar xvfj archive.tar.bz2
bzip2: (stdin) is not a bzip2 file.
tar: Child returned status 2
tar: Error is not recoverable: exiting now

What version of the product are you using? On what operating system?

Please provide any additional information below.

 After a few tests i have made, i realized that the command:
wget http://www.exploit-db.com/archive.tar.bz2
is actually downloading the file:
exploit-database-master.zip
root@something /usr/share/exploitdb# ls -l
total 91392
-rw-r--r--  1 root root 44524858 Feb 14 17:31 archive.tar.bz2
-rw-r--r--  1 root root 44524858 Feb 14 17:48 exploit-database-master.zip

 Thus, i run:
wget https://github.com/offensive-security/exploit-database/archive/master.zip
unzip -qq master.zip
rsync -a exploit-database-master/ /usr/share/exploitdb/
rm -rf master.zip exploit-database-master/

So modifying the function updateexploitdb as follows:
### Update Exploitdb
function updateexploitdb {
    echo -e "\033[31mThis script will update your Exploitdb\033[m"
    cd /usr/share/exploitdb
    wget https://github.com/offensive-security/exploit-database/archive/master.zip
    unzip -qq master.zip
    rsync -a exploit-database-master/ /usr/share/exploitdb/
    rm -rf master.zip exploit-database-master/
    echo -e "\e[32m[-] Done Updating Exploitdb!\e[0m"

Works just fine.

Original issue reported on code.google.com by kladisst...@gmail.com on 14 Feb 2015 at 2:24

GoogleCodeExporter commented 8 years ago
Will look into this soon

Original comment by yourgeek...@gmail.com on 26 Feb 2015 at 2:21

GoogleCodeExporter commented 8 years ago
Tried it and it worked flawlessly, though it no longer shows the unzip/install 
of the files, but that's fine as long as it's there...

Original comment by Robert.L...@gmail.com on 12 May 2015 at 3:20