Results 1 to 9 of 9

Thread: MSF Update Error

  1. #1
    Junior Member
    Join Date
    May 2007
    Posts
    40

    Default MSF Update Error

    Hi after a

    apt-get update
    apt-get upgrade

    will msf be updated...
    But after this the normal
    svn update
    fails with a error:

    svn: Failed to add directory 'external/source/meterpreter/source/common/polarssl': a versioned directory of the same name already exists


    Maybe you should not offer msf updates through apt-get maybe you add in the final BT a update script like this:


    Code:
    apt-get update
    apt-get upgrade -y
    apt-get dist-upgrade -y
    cd /pentest/exploits/fasttrack
    ./fast-track.py -c 1 1
    ./fast-track.py -c 1 2
    cd ..
    cd framework2
    svn update
    cd ..
    cd framework3
    svn update
    cd /root

  2. #2
    Super Moderator Archangel-Amael's Avatar
    Join Date
    Jan 2010
    Location
    Somewhere
    Posts
    8,012

    Default

    Quote Originally Posted by *YAPP* View Post
    Hi after a

    apt-get update
    apt-get upgrade

    will msf be updated...
    But after this the normal
    svn update
    fails with a error:

    svn: Failed to add directory 'external/source/meterpreter/source/common/polarssl': a versioned directory of the same name already exists


    Maybe you should not offer msf updates through apt-get maybe you add in the final BT a update script like this:


    Code:
    apt-get update
    apt-get upgrade -y
    apt-get dist-upgrade -y
    cd /pentest/exploits/fasttrack
    ./fast-track.py -c 1 1
    ./fast-track.py -c 1 2
    cd ..
    cd framework2
    svn update
    cd ..
    cd framework3
    svn update
    cd /root

    There is already an update script for metasploit and anyone who has looked into the msf3 directories will see it is there.
    Not to mention there is also a menu item for it. There is also a updater as you have pointed out for fast track. Again these are three separate entities.

    Your choosing to upgrade/update the entire system, which in turn breaks something is not a bug nor a fix.
    To be successful here you should read all of the following.
    ForumRules
    ForumFAQ
    If you are new to Back|Track
    Back|Track Wiki
    Failure to do so will probably get your threads deleted or worse.

  3. #3
    Junior Member
    Join Date
    May 2007
    Posts
    40

    Default

    My Problem is after using apt-get by hand to update the system base msf update fail with the error:

    svn: Failed to add directory 'external/source/meterpreter/source/common/polarssl': a versioned directory of the same name already exists

  4. #4
    Developer
    Join Date
    Mar 2007
    Posts
    6,126

    Default

    Well I'm not sure what your issue is but I can not recreate it which makes it very hard to fix. We are constantly updating metasploit in apt so the best thing to do is let us handle the updates. I will keep trying to recreate this.

  5. #5
    Developer
    Join Date
    Mar 2007
    Posts
    6,126

    Default

    r00t@infected ~ $ ssh root@192.168.1.195
    root@192.168.1.195's password:

    BackTrack 4 (PwnSauce) Penetration Testing and Auditing Distribution

    Last login: Mon Jul 6 20:40:02 2009 from 192.168.1.193
    root@backtrack4:~# apt-get update && apt-get upgrade
    Hit http://archive.offensive-security.com pwnsauce Release.gpg
    Hit http://archive.offensive-security.com pwnsauce Release
    Hit http://archive.offensive-security.com pwnsauce/main Packages
    Hit http://archive.offensive-security.com pwnsauce/microverse Packages
    Hit http://archive.offensive-security.com pwnsauce/macroverse Packages
    Hit http://archive.offensive-security.com pwnsauce/restricted Packages
    Hit http://archive.offensive-security.com pwnsauce/universe Packages
    Hit http://archive.offensive-security.com pwnsauce/multiverse Packages
    Reading package lists... Done
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following packages have been kept back:
    backtrack-web backtrack-wireless backtrack-world
    0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
    root@backtrack4:~# apt-get dist-upgrade
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Calculating upgrade... Done
    The following NEW packages will be installed:
    buc gerix-wifi-cracker rar unrar unrar-free waffit zenity
    The following packages will be upgraded:
    backtrack-web backtrack-wireless backtrack-world
    3 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
    Need to get 7257kB of archives.
    After this operation, 12.5MB of additional disk space will be used.
    Do you want to continue [Y/n]?
    Get:1 http://archive.offensive-security.com pwnsauce/macroverse buc 0.5.2 [4624kB]
    Get:2 http://archive.offensive-security.com pwnsauce/main zenity 2.24.0-0ubuntu1 [1885kB]
    Get:3 http://archive.offensive-security.com pwnsauce/microverse gerix-wifi-cracker 1.0-bt12 [55.6kB]
    Get:4 http://archive.offensive-security.com pwnsauce/multiverse rar 1:3.8b2-2 [521kB]
    Get:5 http://archive.offensive-security.com pwnsauce/multiverse unrar 1:3.8.2-1 [99.0kB]
    Get:6 http://archive.offensive-security.com pwnsauce/universe unrar-free 1:0.0.1+cvs20071127-1 [22.0kB]
    Get:7 http://archive.offensive-security.com pwnsauce/microverse waffit r11-bt0 [46.5kB]
    Get:8 http://archive.offensive-security.com pwnsauce/microverse backtrack-web 1.0-bt5 [1388B]
    Get:9 http://archive.offensive-security.com pwnsauce/microverse backtrack-wireless 1.0-bt8 [1416B]
    Get:10 http://archive.offensive-security.com pwnsauce/microverse backtrack-world 1.0-bt6 [1348B]
    Fetched 7257kB in 12s (593kB/s)
    Selecting previously deselected package buc.
    (Reading database ... 186337 files and directories currently installed.)
    Unpacking buc (from .../apt/archives/buc_0.5.2_all.deb) ...
    Selecting previously deselected package zenity.
    Unpacking zenity (from .../zenity_2.24.0-0ubuntu1_i386.deb) ...
    Selecting previously deselected package gerix-wifi-cracker.
    Unpacking gerix-wifi-cracker (from .../gerix-wifi-cracker_1.0-bt12_i386.deb) ...
    Selecting previously deselected package rar.
    Unpacking rar (from .../rar_1%3a3.8b2-2_i386.deb) ...
    Selecting previously deselected package unrar.
    Unpacking unrar (from .../unrar_1%3a3.8.2-1_i386.deb) ...
    Selecting previously deselected package unrar-free.
    Unpacking unrar-free (from .../unrar-free_1%3a0.0.1+cvs20071127-1_i386.deb) ...
    Selecting previously deselected package waffit.
    Unpacking waffit (from .../waffit_r11-bt0_all.deb) ...
    Preparing to replace backtrack-web 1.0-bt4 (using .../backtrack-web_1.0-bt5_all.deb) ...
    Unpacking replacement backtrack-web ...
    Preparing to replace backtrack-wireless 1.0-bt7 (using .../backtrack-wireless_1.0-bt8_all.deb) ...
    Unpacking replacement backtrack-wireless ...
    Preparing to replace backtrack-world 1.0-bt5 (using .../backtrack-world_1.0-bt6_all.deb) ...
    Unpacking replacement backtrack-world ...
    Processing triggers for man-db ...
    Setting up buc (0.5.2) ...
    Warning: This program is an suid-root program or is being run by the root user.
    The full text of the error or warning message cannot be safely formatted
    in this environment. You may get a more descriptive message by running the
    program as a non-root user or by removing the suid bit on the executable.
    xterm Xt error: Can't open display: %s
    xterm: DISPLAY is not set

    Setting up zenity (2.24.0-0ubuntu1) ...

    Setting up gerix-wifi-cracker (1.0-bt12) ...
    Setting up rar (1:3.8b2-2) ...
    Setting up unrar (1:3.8.2-1) ...

    Setting up unrar-free (1:0.0.1+cvs20071127-1) ...

    Setting up waffit (r11-bt0) ...
    Setting up backtrack-web (1.0-bt5) ...
    Setting up backtrack-wireless (1.0-bt8) ...
    Setting up backtrack-world (1.0-bt6) ...

  6. #6
    Developer
    Join Date
    Mar 2007
    Posts
    6,126

    Default

    root@backtrack4:~# cd /pentest/exploits/framework3/
    root@backtrack4:/pentest/exploits/framework3# ls
    README documentation lib msfcli msfd msfencode msfmachscan msfpayload msfrpc msfweb scripts tools
    data external modules msfconsole msfelfscan msfgui msfopcode msfpescan msfrpcd plugins svn-update.sh
    root@backtrack4:/pentest/exploits/framework3# svn up
    U external/source/shellcode/windows/stager_bind_ipv6_tcp_nx.asm
    U external/source/shellcode/windows/midstager.asm
    U external/source/shellcode/windows/build.sh
    U external/source/shellcode/windows/stager_reverse_tcp_nx.asm
    U external/source/shellcode/windows/stager_bind_tcp_nx.asm
    U external/source/shellcode/windows/stager_reverse_ipv6_tcp_nx.asm
    A external/source/meterpreter/output
    U external/source/meterpreter/source/extensions/espia/audio.c
    U external/source/meterpreter/source/server/metsrv.c
    U external/source/meterpreter/source/ReflectiveDLLInjection/ReflectiveLoader.c
    U external/source/meterpreter/source/ReflectiveDLLInjection/ReflectiveLoader.h
    U external/source/meterpreter/source/common/remote.h
    A external/source/meterpreter/source/common/polarssl
    A external/source/meterpreter/source/common/polarssl/arc4.h
    A external/source/meterpreter/source/common/polarssl/sha1.h
    A external/source/meterpreter/source/common/polarssl/sha2.h
    A external/source/meterpreter/source/common/polarssl/sha4.h
    A external/source/meterpreter/source/common/polarssl/havege.h
    A external/source/meterpreter/source/common/polarssl/xtea.h
    A external/source/meterpreter/source/common/polarssl/ssl.h
    A external/source/meterpreter/source/common/polarssl/x509.h
    A external/source/meterpreter/source/common/polarssl/config.h
    A external/source/meterpreter/source/common/polarssl/camellia.h
    A external/source/meterpreter/source/common/polarssl/aes.h
    A external/source/meterpreter/source/common/polarssl/dhm.h
    A external/source/meterpreter/source/common/polarssl/des.h
    A external/source/meterpreter/source/common/polarssl/bn_mul.h
    A external/source/meterpreter/source/common/polarssl/padlock.h
    A external/source/meterpreter/source/common/polarssl/certs.h
    A external/source/meterpreter/source/common/polarssl/bignum.h
    A external/source/meterpreter/source/common/polarssl/md2.h
    A external/source/meterpreter/source/common/polarssl/openssl.h
    A external/source/meterpreter/source/common/polarssl/md4.h
    A external/source/meterpreter/source/common/polarssl/base64.h
    A external/source/meterpreter/source/common/polarssl/md5.h
    A external/source/meterpreter/source/common/polarssl/rsa.h
    A external/source/meterpreter/source/common/polarssl/net.h
    A external/source/meterpreter/source/common/polarssl/debug.h
    A external/source/meterpreter/source/common/polarssl/timing.h
    U external/source/meterpreter/source/common/core.c
    U external/source/meterpreter/source/common/common.h
    U external/source/meterpreter/workspace/ext_server_incognito/ext_server_incognito.vcproj
    U external/source/meterpreter/workspace/metsrv/metsrv.vcproj
    U external/source/meterpreter/workspace/ext_server_priv/ext_server_priv.vcproj
    A external/source/meterpreter/workspace/common/Release
    A external/source/meterpreter/workspace/common/Release/polarssl.lib
    U external/source/meterpreter/workspace/common/common.vcproj
    U external/source/meterpreter/workspace/ext_server_stdapi/ext_server_stdapi.vcproj
    U external/source/meterpreter/workspace/metcli/metcli.vcproj
    U README
    U msfpayload
    U tools/exe2vba.rb
    U msfencode
    U lib/msf/core/module_manager.rb
    U lib/msf/core/exploit/dialup.rb
    U lib/msf/core/exploit/smb.rb
    U lib/msf/core/module/platform_list.rb
    U lib/msf/core/module/platform.rb
    U lib/msf/core/payload/windows.rb
    U lib/msf/core/payload.rb
    U lib/msf/ui/console/command_dispatcher/core.rb
    U lib/msf/util/exe.rb
    U lib/rex/proto/http/client.rb.ut.rb
    U lib/rex/proto/http/response.rb.ut.rb
    U lib/rex/peparsey/pebase.rb
    U lib/rex/sync/event.rb
    U lib/rex/post/meterpreter/client.rb
    U modules/encoders/cmd/generic_sh.rb
    A modules/auxiliary/dos/http/dell_openmanage_post.rb
    A modules/auxiliary/dos/http/3com_superstack_switch.rb
    A modules/auxiliary/dos/pptp
    A modules/auxiliary/dos/pptp/ms02_063_pptp_dos.rb
    U modules/auxiliary/server/capture/http.rb
    A modules/auxiliary/admin/http/iomega_storcenterpro_sessionid.rb
    A modules/auxiliary/admin/cisco/vpn_3000_ftp_bypass.rb
    U modules/auxiliary/scanner/telephony/wardial.rb
    A modules/exploits/windows/http/mdaemon_worldclient_form2raw.rb
    U modules/exploits/windows/fileformat/djvu_imageurl.rb
    A modules/exploits/windows/misc/bopup_comm.rb
    A modules/exploits/dialup
    A modules/exploits/dialup/multi
    A modules/exploits/dialup/multi/login
    A modules/exploits/dialup/multi/login/manyargs.rb
    D modules/payloads/stages/windows/reflectivedllinject.rb
    D modules/payloads/stages/windows/reflectivemeterpreter.rb
    D modules/payloads/stages/windows/reflectivevncinject.rb
    A modules/payloads/stages/windows/patchupdllinject.rb
    D modules/payloads/stages/windows/meterpreter.rb
    A modules/payloads/stages/windows/meterpreter.rb
    A modules/payloads/stages/windows/patchupmeterpreter.rb
    D modules/payloads/stages/windows/vncinject.rb
    A modules/payloads/stages/windows/vncinject.rb
    D modules/payloads/stages/windows/dllinject.rb
    A modules/payloads/stages/windows/dllinject.rb
    A modules/payloads/stages/windows/patchupvncinject.rb
    U modules/payloads/stagers/netware/reverse_tcp.rb
    U modules/payloads/stagers/windows/reverse_tcp.rb
    U modules/payloads/stagers/windows/bind_tcp.rb
    U modules/payloads/stagers/windows/reverse_nonx_tcp.rb
    U modules/payloads/stagers/windows/bind_nonx_tcp.rb
    U modules/payloads/stagers/windows/reverse_ipv6_tcp.rb
    U modules/payloads/stagers/windows/reverse_ord_tcp.rb
    U modules/payloads/stagers/windows/bind_ipv6_tcp.rb
    U data/msfweb/app/controllers/application.rb
    U data/msfweb/config/environment.rb
    D data/msfweb/vendor/rails/activeresource
    D data/msfweb/vendor/rails/actionmailer
    D data/msfweb/vendor/rails/activerecord/test
    U data/meterpreter/ext_server_priv.dll
    U data/meterpreter/ext_server_stdapi.dll
    U data/meterpreter/ext_server_incognito.dll
    U data/meterpreter/metsrv.dll
    U data/meterpreter/metcli.exe
    Updated to revision 6748.

  7. #7
    Member floyd's Avatar
    Join Date
    Mar 2009
    Posts
    231

    Default

    Quote Originally Posted by *YAPP* View Post
    Maybe you should not offer msf updates through apt-get maybe you add in the final BT a update script like this:
    You are using BT4 PRE Final, right? I hope you're not using Beta, otherwise your wasting purehate's time
    Auswaertsspiel

  8. #8
    Junior Member
    Join Date
    May 2007
    Posts
    40

    Default

    I use the pre Final.

  9. #9
    Just burned his ISO
    Join Date
    Jun 2009
    Posts
    4

    Default

    yapp, you can also try to "apt clean" or "apt autoclean" you may have something hosed up. also, are why user are you running the update process as?

Posting Permissions

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