Deepin15.7 Metasploit安装
Tofloor
poster avatar
Home1104
deepin
2018-09-12 02:39
Author
喜欢渗透测试的小伙伴可以看过来。
Deepin15.7下面的/etc/apt/sources.list添加源这个方法大家可以不用去尝试了。本人对清华,阿里,华工都已经测试,无效。即使启用被禁用的源还是会报错无法安装。
Deepin15.7源list文件
## Generated by deepin-installer
deb [by-hash=force] http://packages.deepin.com/deepin panda main contrib non-free
#deb-src http://packages.deepin.com/deepin panda main contrib non-free

搞事情,搞事情,搞事情!
第一步安装curl命令
jesus@jesus-pc:~$ sudo apt-get install curl

jesus@jesus-pc:~$ curl > msfinstall && \
> chmod 755 msfinstall && \
> ./msfinstall

下面为安装过程(PS:不上图,直接把过程复制给你们看)
jesus@jesus-pc:~$ curl > msfinstall && \
> chmod 755 msfinstall && \
> ./msfinstall
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  5525  100  5525    0     0  10082      0 --:--:-- --:--:-- --:--:-- 10082
Switching to root user to update the package
Updating package cache..E: Failed to fetch   File has unexpected size (418 != 417). Mirror sync in progress? [IP: 23.59.135.134 80]
   Hashes of expected file:
    - Filesize:417 [weak]
    - SHA256:d11d4dc921a8b87090c450ca0b34341b64ccd1bd7ff3f3f55bad806c1c87ed9e
    - SHA1:8fba8ed92bf5f62a71122c6d8cb1b73aa7783e71 [weak]
    - MD5Sum:7ff56c84f70471453d945b4379ca5bbb [weak]
   Release file created at: Sun, 09 Sep 2018 10:23:55 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.
OK
Checking for and installing update..
Reading package lists... Done
Building dependency tree      
Reading state information... Done
W: --force-yes is deprecated, use one of the options starting with --allow instead.


看到这个提示的时候,小伙伴们不用担心。update后就OK。

Reply Favorite View the author
All Replies
avatar
Home1104
deepin
2018-09-12 02:40
#1
jesus@jesus-pc:~$ sudo apt-get update
[sudo] password for jesus:
Hit:1 http://packages.deepin.com/deepin panda InRelease
Ign:2 http://dl.google.com/linux/chrome/deb stable InRelease                     
Get:3 Hit:4 http://dl.google.com/linux/chrome/deb stable Release                       
Get:5 Get:6 Hit:8 http://linux.teamviewer.com/deb stable InRelease                    
Hit:9 http://linux.teamviewer.com/deb preview InRelease
Fetched 4,376 B in 1s (3,881 B/s)
Reading package lists... Done

再try一次
jesus@jesus-pc:~$ curl https://raw.githubusercontent.co ... ppers/msfupdate.erb > msfinstall && chmod 755 msfinstall && ./msfinstall
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  5525  100  5525    0     0   1969      0  0:00:02  0:00:02 --:--:--  1968
Switching to root user to update the package
Updating package cache..OK
Checking for and installing update..
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following NEW packages will be installed: Need to get 165 MB of archives.
After this operation, 385 MB of additional disk space will be used.
Get:1 Run msfconsole to get started
W: --force-yes is deprecated, use one of the options starting with --allow instead.

看到这个就不要担心了。
Reply View the author
avatar
Home1104
deepin
2018-09-12 02:41
#2
跑一下(初次使用要设置数据库,执行Y自动进行。)
jesus@jesus-pc:~$ msfconsole


Would you like to use and setup a new database (recommended)?
Please answer yes or no.
Would you like to use and setup a new database (recommended)? y
Creating database at /home/jesus/.msf4/db
Starting database at /home/jesus/.msf4/db...success
Creating database users
Creating initial database schema


______________________________________________________________________________
|                                                                              |       \                                  /                      /
       \     .                          /                      /            x
        \                              /                      /
         \                            /          +           /
          \            +             /                      /
           *                        /                      /
                                   /      .               /
    X                             /                      /            X
                                 /                     ###
                                /                     # % #
                               /                       ###
                      .       /
     .                       /      .            *           .
                            /
                           *
                  +                       *

                                       ^
####      __     __     __          #######         __     __     __        ####
####    /    \ /    \ /    \      ###########     /    \ /    \ /    \      ####
################################################################################
################################################################################
# WAVE 4 ######## SCORE 31337 ################################## HIGH FFFFFFFF #
################################################################################
                                                           
+ -- --=[ 539 payloads - 42 encoders - 10 nops            ] ]

msf >

参照:
Reply View the author
avatar
Home1104
deepin
2018-09-12 02:43
#3
附上成功安装后的图片。
Reply View the author
avatar
177******80
deepin
2018-09-12 03:03
#4
牛~~。请问楼主,有没有专门教这行的网址教程什么的?
Reply View the author
avatar
Home1104
deepin
2018-09-12 04:16
#5
sksweet 发表于 2018-9-11 19:03
牛~~。请问楼主,有没有专门教这行的网址教程什么的?

这个在网上有教程。你如果需要的话我可以将资料发你。
Reply View the author
avatar
Home1104
deepin
2018-09-12 04:29
#6
https://bbs.deepin.org/post/168742
牛~~。请问楼主,有没有专门教这行的网址教程什么的?

这个教程你是否需要??
Reply View the author
avatar
177******80
deepin
2018-09-12 05:21
#7
https://bbs.deepin.org/post/168742
这个教程你是否需要??

谢谢楼主,这是我的邮箱。https://bbs.deepin.org/module
Reply View the author
avatar
Home1104
deepin
2018-09-12 20:44
#8
https://bbs.deepin.org/post/168742
谢谢楼主,这是我的邮箱。sksweet@126.com

已经投递成功。该教程用于学习,请勿用于非法途径。
Reply View the author
avatar
177******80
deepin
2018-09-12 22:45
#9
https://bbs.deepin.org/post/168742
已经投递成功。该教程用于学习,请勿用于非法途径。

已经收到,谢谢楼主。
Reply View the author