Results 1 to 4 of 4

Thread: New Script (very simple) Exploit-db Update

  1. #1
    Moderator firebits's Avatar
    Join Date
    Mar 2010
    Location
    Brazil
    Posts
    353

    Lightbulb New Script (very simple) Exploit-db Update

    New script (very simple script) for update exploits-db in /pentest/exploits/exploit-db

    Step1
    # nano exploit-db-firebits.sh

    Step2
    Edit file exploit-db-firebits.sh

    #!/bin/bash
    # Mauro Risonho de Paula Assumpção a.k.a firebits
    # firebits@backtrack.com.br
    # 03-31-2011 11:08 PM Brazil

    echo "================================"
    echo "Updating exploits by Exploit-db"
    echo "by firebits - firebits@backtrack.com.br"
    echo "================================"
    wget http://www.exploit-db.com/archive.tar.bz2
    tar -xvvf archive.tar.bz2
    rm -R archive.tar.bz2
    echo "================================"
    echo "Done. Exploits updated!!!"
    echo "================================"



    echo "

  2. #2
    Good friend of the forums spawn's Avatar
    Join Date
    Jan 2010
    Posts
    280

    Default Re: New Script (very simple) Exploit-db Update

    I have a sugestion to this:

    Code:
    # cat update.sh 
    
    #!/bin/bash
    # spawn 
    # Exploit-db script update - 03/31/2011 - 16:39 
    
    local=$(cat revision)
    remote=$(curl --silent --head http://www.exploit-db.com/archive.tar.bz2 | grep "Last-Modified" | md5sum | cut -f1 -d' ')
    
    echo "Checking http://www.exploit-db.com for newest version"
    
    if [ "$local" == "$remote" ]; then
     echo "No updates available"
     else
      echo "New update available, Downloading . . ." ; mv archive.tar.bz2 archive-old.tar.bz2 ; 
      wget http://www.exploit-db.com/archive.tar.bz2; tar jxf archive.tar.bz2 ; echo "$remote" > revision
      echo "Exploits are updated"
    
    fi
    to initial usage, do:

    Code:
    # touch revision
    "If you aim the gun at your foot and pull the trigger, it's
    UNIX's job to ensure reliable delivery of the bullet to
    where you aimed the gun (in this case, Mr. Foot)."

  3. #3
    Moderator firebits's Avatar
    Join Date
    Mar 2010
    Location
    Brazil
    Posts
    353

    Default Re: New Script (very simple) Exploit-db Update

    spawn, your code is better!

  4. #4
    Senior Member Bhior's Avatar
    Join Date
    Apr 2010
    Posts
    152

    Exclamation Re: New Script (very simple) Exploit-db Update

    Ola senhores,

    #spwan, anda meio sumido mano, saudades de ti hahaha
    #firebits... tu tbm anda meio sumido

    O meu e um pouco diferente.

    Mini tuto:

    cd /pentest/exploits/exploit-db
    nano pentest/exploits/exploit-db/UP-exploitdb

    #!/bin/bash
    # Fabiano Matias aka Bhior
    # http://remote-execution.blogspot.com/
    echo Atualizando os sploit do Exploit-DB
    cd /pentest/exploits/exploit-db/
    wget http://www.exploit-db.com/archive.tar.bz2
    tar -xvjf /pentest/exploits/exploit-db/archive.tar.bz2
    rm /pentest/exploits/exploit-db/archive.tar.bz2
    echo Atualização completa

    chmod +x /pentest/exploits/exploit-db/UP-exploitdb

    Move o arquivo para patas /bin/bash e execute no shell

    voila...
    Last edited by Bhior; 04-30-2011 at 11:56 PM.

Similar Threads

  1. simple update script for key pentest tools
    By brtw2003 in forum Experts Forum
    Replies: 3
    Last Post: 09-04-2010, 10:17 PM
  2. Update Script
    By alienstargate in forum OLD BackTrack 3 Final
    Replies: 0
    Last Post: 02-25-2010, 03:12 PM
  3. Fasttrack update all & exploit-db.com
    By imported_o0hex0o in forum OLD BackTrack 4 Bugs and Fixes
    Replies: 2
    Last Post: 01-05-2010, 03:14 AM
  4. Simple script for wpa_supplicant
    By adri_ht_ in forum OLD BackTrack3 Howtos
    Replies: 7
    Last Post: 08-07-2008, 04:09 PM
  5. Update all script BT2
    By alienstargate in forum OLD BackTrack v2.0 Final
    Replies: 2
    Last Post: 02-13-2008, 12:35 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •