在 ubuntu 15.04 中安装 electricsheep

在 ubuntu 15.04 中安装 electricsheep

有人能告诉我如何安装吗电子羊在 ubuntu 15.04 中?我在 synaptic 中找不到任何包

答案1

您可以检查以下 PPA 以获取最新版本的软件包:

https://launchpad.net/~ichthyo/+archive/ubuntu/zeug

答案2

没有适用于 Ubuntu 15.04 的软件包,我尝试编译它,使用没有成功在我的生动

  1. 通过以下方式构建应用程序debuild

    • 克隆源代码

      mkdir -p ~/src
      cd ~/src
      bzr branch lp:ubuntu/vivid/electricsheep
      
    • 构建应用程序

      cd ~/src/electricsheep
      ./configure
      debuild
      
    • 并安装

      % sudo dpkg -i ../electricsheep_2.7\~b12+svn20091224-1ubuntu3_amd64.deb 
      dpkg: warning: downgrading electricsheep from 2.7b12-1 to 2.7~b12+svn20091224-1ubuntu3
      (Reading database ... 662292 files and directories currently installed.)
      Preparing to unpack .../electricsheep_2.7~b12+svn20091224-1ubuntu3_amd64.deb ...
      Unpacking electricsheep (2.7~b12+svn20091224-1ubuntu3) over (2.7b12-1) ...
      dpkg: dependency problems prevent configuration of electricsheep:
       electricsheep depends on libavcodec53 (>= 4:0.7-1) | libavcodec-extra-53 (>= 4:0.7-1); however:
        Package libavcodec53 is not installed.
        Package libavcodec-extra-53:amd64 is not installed.
       electricsheep depends on libavformat53 (>= 4:0.7-1) | libavformat-extra-53 (>= 4:0.7-1); however:
        Package libavformat53 is not installed.
        Package libavformat-extra-53 is not installed.
      
      dpkg: error processing package electricsheep (--install):
       dependency problems - leaving unconfigured
      Processing triggers for menu (2.1.47ubuntu1) ...
      Processing triggers for gconf2 (3.2.6-3ubuntu1) ...
      Processing triggers for man-db (2.7.0.2-5) ...
      Processing triggers for gnome-menus (3.10.1-0ubuntu5) ...
      Processing triggers for desktop-file-utils (0.22-1ubuntu3) ...
      Processing triggers for mime-support (3.58ubuntu1) ...
      Errors were encountered while processing:
       electricsheep
      

      不起作用,可能安装了一些依赖项,但不是全部。

  2. 通过构建make

    • 删除以前的源文件夹

      sudo rm -r ~/src/electricsheep
      
    • 再次克隆

      mkdir -p ~/src
      cd ~/src
      bzr branch lp:ubuntu/vivid/electricsheep
      
    • 建造

      cd ~/src/electricsheep
      ./configure
      

      并开始make,但是......没有成功

      % make
      make  all-am
      make[1]: Entering directory '/home/aboettger/tmp/electricsheep'
      gcc -DHAVE_CONFIG_H -I.    -DPACKAGE_DATA_DIR=\"/usr/local/share/electricsheep\" -g -O2 -c electricsheep.c
      electricsheep.c: In function ‘copy_out_file’:
      electricsheep.c:673:6: error: ‘CODEC_TYPE_VIDEO’ undeclared (first use in this function)
        if (CODEC_TYPE_VIDEO == enc->codec_type) {
            ^
      electricsheep.c:673:6: note: each undeclared identifier is reported only once for each function it appears in
      electricsheep.c:699:7: warning: assignment makes pointer from integer without a cast
        ofmt = guess_format(NULL, fname, NULL);
             ^
      electricsheep.c:706:5: warning: assignment makes pointer from integer without a cast
        st = av_new_stream(output_ctx, output_ctx->nb_streams);
           ^
      electricsheep.c:707:4: error: ‘AVStream’ has no member named ‘stream_copy’
        st->stream_copy = 1;
          ^
      electricsheep.c:726:39: error: ‘URL_WRONLY’ undeclared (first use in this function)
        if (url_fopen(&output_ctx->pb, pipe, URL_WRONLY) < 0) {
                                             ^
      electricsheep.c:741:22: error: ‘PKT_FLAG_KEY’ undeclared (first use in this function)
               ipkt.flags & PKT_FLAG_KEY))
                            ^
      electricsheep.c:742:6: warning: ‘destruct’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:994) [-Wdeprecated-declarations]
            opkt.destruct= av_destruct_packet;
            ^
      electricsheep.c:742:6: warning: ‘av_destruct_packet’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3294) [-Wdeprecated-declarations]
      electricsheep.c: In function ‘update_server_sheep’:
      electricsheep.c:1774:2: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat=]
        if (debug > 1) fprintf(logout, "list read loop len=%d\n", len);
        ^
      Makefile:316: recipe for target 'electricsheep.o' failed
      make[1]: *** [electricsheep.o] Error 1
      make[1]: Leaving directory '/home/aboettger/tmp/electricsheep'
      Makefile:217: recipe for target 'all' failed
      make: *** [all] Error 2
      

所以,无法以合理的成本安装。

对于带来坏消息的先兆,我深感抱歉。

相关内容