VPS Installation Metasploit-framework

Source: Internet
Author: User
Tags gnupg gpg psql vps

First, the installation process

Add Kali source in/etc/apt/sources.list:

[Email protected]:~# cat >>/etc/apt/sources.list << eof#kali sourcedeb Http://http.kali.org/kali kali-rolling main Non-free contribdeb-src http://http.kali.org/kali kali-rolling main Non-free contribeof[email protected]:~# apt-get Update

# #如果出现GPG Error, refer to here

# # Note that there are tutorials for websites, kali-rolling this location using Kali or Sana. This position represents the release code. I went to the official source site to see a bit, and did not Kali this code, and the official website has stopped the support of Sana source, recommended the use of 1 months to launch the kali-rolling code, which should be my friend above 404 the cause of the error. After reading this article of the small partners, there are 404 errors, remember to note whether your release code has not been or stopped support.

The latter part is the same as the tutorials on other websites.

    • Installing the PostgreSQL database

[Email protected]:~# apt-get Install postgresqlr[email protected]:~# su-postgres-c "Psql" #切换到postgres用户并登   Land Database # #有的教程中使sudo-u postgres psql is also available postgres=# alter user postgres with password ' postgrespass '; #修改数据库密码为postgrespasspostgres =# \q #退出数据库

    • Installing Metasploit

[Email protected]:~# apt-get Install Metasploit-framework

# There will be a lot of stuff, and it will update the software such as LIBC, if your system is equipped with other software, please install it carefully.

    • Configure Metasploit

[Email protected]:~# msconfigmsf > Db_connect postgres:[email protected]/msfbook #使msf连接到postgresql数据库 [*] Rebuildin G the module cache in the background ... #这句话的意思是在后台重建模块缓存. MSF > Db_status #查看数据库连接状态 [*] PostgreSQL connected to Msfbook #这个时候就可以正常使用msf了. MSF > Search smb[!] The module database cache not built yet, using slow search# #如果出现了这个信息, means that there is no cache of modules in the database, using a slow search (direct search disk). # #出现这个情况有可能是后台重建缓存未完成, just a moment to try again, it may be that the database connection is not normal, # #导致无法重建/Read cache.

The above sections are from: http://www.bubuko.com/infodetail-1760180.html&&http://www.bubuko.com/infodetail-1760180.html

Ii. Solutions to the emergence of public key errors

When using an unofficial Debian source, there is a problem with GPG error:

W:GPG error:http://ftp.sjtu.edu.cn./release:the following signatures couldn ' t be verified because the public key is n OT Available:no_pubkey 73e6b0faa42a6cf5
W:you want to run Apt-get update to correct these problems

(1) The 73e6b0faa42a6cf5 of the penultimate line is the missing public key, using the following command to obtain the public key:
GPG--keyserver pgp.mit.edu--recv-keys 73e6b0faa42a6cf5
Public key servers can be replaced by other, such as wwwkeys.eu.pgp.net, depending on their network conditions.
After obtaining the public key, the output is as follows:
juno:/etc/apt# gpg--keyserver pgp.mit.edu--recv-keys 73e6b0faa42a6cf5
Gpg:requesting key a42a6cf5 from HKP server pgp.mit.edu
GPG:/root/.gnupg/trustdb.gpg:trustdb Created
Gpg:key a42a6cf5:public Key "Shame (Beryl Repository) <[email protected]>" imported
Gpg:no ultimately trusted keys found
Gpg:total number Processed:1
Gpg:imported:1

(2) Import the public key into apt
GPG--armor--export A42a6cf5 | Apt-key Add-

(3) Run Apt-get update again

The above sections are from: http://blog.chinaunix.net/uid-16938570-id-2841664.html

Iii. Other issues

I encountered an error while processing the public key during the installation process:
Gpg:directory'/root/.gnupg'Createdgpg:can'T Open'/usr/share/gnupg/dirmngr-conf.skel': No Such file or directoryGpg:new Configurationfile '/root/.gnupg/gpg.conf'Createdgpg:keybox'/ROOT/.GNUPG/PUBRING.KBX'createdgpg:failed to start the Dirmngr'/usr/bin/dirmngr': No Suchfileor directorygpg:connecting Dirmngr at'/run/user/0/gnupg/s.dirmngr'Failed:no suchfileor Directorygpg:keyserver receive Failed:no Dirmngr

Because the Dirmngr is not installed, just install it.

Install Dirmngr

VPS Installation Metasploit-framework

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.