PWN魔法部 加入小组

98个成员 7个话题 创建时间:2018-01-25

pwn环境搭建

发表于2018-02-02 7581次查看

1、使用操作系统:Ubuntu 14.04 64bit

2、pwntools工具安装

$ sudo apt-get update
$ sudo apt-get install python2.7 python-pip python-dev git libssl-dev libffi-dev build-essential
$ sudo pip install --upgrade pip
$ sudo pip install --upgrade pwntools

需要注意的是,安装过程中如果报“error in cryptography setup command: Invalid environment marker: python_version < '3'”这个错误,解决方法:

pip install --upgrade setuptools

安装后可以通过在python中输入from pwn import * 来验证是否安装成功

3、gcc等编译环境安装

sudo apt-get install gcc gdb

4、gdb-peda安装

git clone https://github.com/longld/peda.git ~/peda
echo "source ~/peda/peda.py" >> ~/.gdbinit

5、qira调试工具安装

cd ~/
git clone https://github.com/BinaryAnalysisPlatform/qira.git
cd qira/
./install.sh

安装后可以使用qira -s /bin/ls 来测试是否安装成功

如果报TypeError: type object got multiple values for keyword argument 'log' 错误,解决方法:

source <qira-dir>/venv/bin/activate
pip uninstall Flask-SocketIO
pip install Flask-SocketIO==2.9.1
deactivate

6、为了更好的学习,还需安装32位libc库

sudo apt-get install libc6-dev-i386

 

14回复
  • 2楼 NamePlate 2018-02-17

    :qira -s /bin/ls
    /root/qira-1.2/middleware/qira_webserver.py:41: ExtDeprecationWarning: Importing flask.ext.socketio is deprecated, use flask_socketio instead.
      from flask.ext.socketio import SocketIO, emit
    *** program is /bin/ls with hash b79f70b18538de0199e6829e06b547e079df8842
    **** using /root/qira-1.2/tracers/qemu/qemu-2.1.3/x86_64-linux-user/qemu-x86_64 for 0x3e
    no qira server found, starting it
    *** deleting old runs
    Traceback (most recent call last):
      File "/root/qira-1.2/middleware/qira.py", line 97, in <module>
        qira_socat.start_bindserver(program, qira_config.SOCAT_PORT, -1, 1, True)
      File "/root/qira-1.2/middleware/qira_socat.py", line 20, in start_bindserver
        myss.bind((qira_config.HOST, port))
      File "<string>", line 1, in bind

    socket.error: [Errno 98] Address already in use

    请问这应该怎么解决呢?

     

    • nick 2018-02-19
      端口已经开了,kill掉就可以了。ps -ef | grep qira,看下qira的pid,然后kill -9 pid就可以了
    • NamePlate 2018-02-19
      回复 nick:多谢,已经可以正常运行qira了。
  • 3楼 老王 2018-03-05

    老师好..................

  • 4楼 shindou 2018-03-18

    您好!关于这个错误:TypeError: type object got multiple values for keyword argument 'log' ,我已经按照您的方法安装为2.9.1版本,但还是报错,请问这是什么原因?

  • 5楼 hauk 2018-04-06

    老师,qira安装好像有一个从来没的错误

    util/memfd.c:43:12: error: static declaration of ‘memfd_create’ follows non-static declaration
     static int memfd_create(const char *name, unsigned int flags)
                ^~~~~~~~~~~~
    In file included from /usr/include/x86_64-linux-gnu/bits/mman-linux.h:115:0,
                     from /usr/include/x86_64-linux-gnu/bits/mman.h:45,
                     from /usr/include/x86_64-linux-gnu/sys/mman.h:41,
                     from /root/qira/tracers/qemu/qemu-latest/include/qemu/osdep.h:142,
                     from util/memfd.c:28:
    /usr/include/x86_64-linux-gnu/bits/mman-shared.h:46:5: note: previous declaration of ‘memfd_create’ was here
     int memfd_create (const char *__name, unsigned int __flags) __THROW;
         ^~~~~~~~~~~~
    /root/qira/tracers/qemu/qemu-latest/rules.mak:57: recipe for target 'util/memfd.o' failed
    make: *** [util/memfd.o] Error 1
    make: *** 正在等待未完成的任务....

  • 6楼 MgBr2 2018-05-17

    root1@root1-virtual-machine:~/qira$ qira -s /bin/ls
    Traceback (most recent call last):
      File "/home/root1/qira/middleware/qira.py", line 14, in <module>
        import qira_webserver
      File "/home/root1/qira/middleware/qira_webserver.py", line 41, in <module>
        from flask.ext.socketio import SocketIO, emit
    ImportError: No module named ext.socketio

    这是什么意思呀

    • Lhaihai 2018-05-28
      我也是这个问题,在ubuntu16 64位系统上,还没有解决
    • MgBr2 2018-06-03
      回复 Lhaihai:ok了,我是换的版本解决的 $pip install Flask==0.10.1
    • xiaojiu 2018-06-04
      我也是这个问题,还没又解决,求大神指教~
    • xiaojiu 2018-06-04
      重新安装了这个 pip install Flask==0.10.1 还是报这个错
    • xiaojiu 2018-06-04
      已解决,谢谢~
    • 我也要说
      还有8条回复,点击查看
       
  • 7楼 zer0 2018-05-25

    这种错误怎么搞

     Found existing installation: pyserial 2.6
    Cannot uninstall 'pyserial'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

    • zer0 2018-05-25
      在安装pwntools的时候
    • zer0 2018-05-26
      已经解决,将该文件删除即可
    • rhino 2018-07-02
      执行这条命令即可解决:sudo apt-get -ignore-install pyserial
    • whale08 2018-09-13
      回复 rhino:E: 未知的命令行选项“i” [来自 -ignore-install] 输入命令出现了这个
  • 8楼 Lyrical 2018-07-12

    ubuntu16安装的时候报错:

     

    /install.sh: line 52: tracers/qemu/qira-i386: No such file or directory

    .....省略部分输出

    make  all-recursive
    Making all in pixman
      CC       pixman.lo
    In file included from pixman.c:29:0:
    pixman.c: In function ‘optimize_operator’:
    pixman-private.h:1019:22: warning: typedef ‘compile_time_assertion’ locally defined but not used [-Wunused-local-typedefs]
         do { typedef int compile_time_assertion [(x)?1:-1]; } while (0)
                          ^
    pixman.c:144:5: note: in expansion of macro ‘COMPILE_TIME_ASSERT’
         COMPILE_TIME_ASSERT (FAST_PATH_IS_OPAQUE == (1 << OPAQUE_SHIFT));
         ^~~~~~~~~~~~~~~~~~~
      CC       pixman-access.lo
    pixman-access.c:468:30: warning: ‘__dummy__g1’ defined but not used [-Wunused-const-variable=]
         static const void *const __dummy__ ## format
                                  ^
    pixman-access.c:507:1: note: in expansion of macro ‘MAKE_ACCESSORS’
     MAKE_ACCESSORS(g1);
     ^~~~~~~~~~~~~~
    pixman-access.c:468:30: warning: ‘__dummy__a1’ defined but not used [-Wunused-const-variable=]
         static const void *const __dummy__ ## format
                                  ^
    pixman-access.c:506:1: note: in expansion of macro ‘MAKE_ACCESSORS’
     MAKE_ACCESSORS(a1);
     ^~~~~~~~~~~~~~
    pixman-access.c:468:30: warning: ‘__dummy__a1b1g1r1’ defined but not used [-Wunused-const-variable=]
         static const void *const __dummy__ ## format
                                  ^
    pixman-access.c:505:1: note: in expansion of macro ‘MAKE_ACCESSORS’
     MAKE_ACCESSORS(a1b1g1r1);
     ^~~~~~~~~~~~~~
    pixman-access.c:468:30: warning: ‘__dummy__a1r1g1b1’ defined but not used [-Wunused-const-variable=]
         static const void *const __dummy__ ## format
                                  ^
    pixman-access.c:504:1: note: in expansion of macro ‘MAKE_ACCESSORS’
     MAKE_ACCESSORS(a1r1g1b1);
     ^~~~~~~~~~~~~~
    pixman-access.c:468:30: warning: ‘__dummy__b1g2r1’ defined but not used [-Wunused-const-variable=]
         static const void *const __dummy__ ## format
                                  ^
    pixman-access.c:503:1: note: in expansion of macro ‘MAKE_ACCESSORS’
     MAKE_ACCESSORS(b1g2r1);
     ^~~~~~~~~~~~~~
    pixman-access.c:468:30: warning: ‘__dummy__r1g2b1’ defined but not used [-Wunused-const-variable=]
         static const void *const __dummy__ ## format
                                  ^
    pixman-access.c:502:1: note: in expansion of macro ‘MAKE_ACCESSORS’
     MAKE_ACCESSORS(r1g2b1);
     ^~~~~~~~~~~~~~
    pixman-access.c:468:30: warning: ‘__dummy__c4’ defined but not used [-Wunused-const-variable=]
         static const void *const __dummy__ ## format
                                  ^
    pixman-access.c:501:1: note: in expansion of macro ‘MAKE_ACCESSORS’
     MAKE_ACCESSORS(c4);
     ^~~~~~~~~~~~~~
    pixman-access.c:468:30: warning: ‘__dummy__g4’ defined but not used [-Wunused-const-variable=]
         static const void *const __dummy__ ## format
                                  ^
    pixman-access.c:500:1: note: in expansion of macro ‘MAKE_ACCESSORS’
     MAKE_ACCESSORS(g4);
     ^~~~~~~~~~~~~~
    pixman-access.c:468:30: warning: ‘__dummy__a4’ defined but not used [-Wunused-const-variable=]
         static const void *const __dummy__ ## format
                                  ^
    pixman-access.c:499:1: note: in expansion of macro ‘MAKE_ACCESSORS’
     MAKE_ACCESSORS(a4);
     ^~~~~~~~~~~~~~
    pixman-access.c:468:30: warning: ‘__dummy__x4a4’ defined but not used [-Wunused-const-variable=]
         static const void *const __dummy__ ## format
                                  ^
    pixman-access.c:498:1: note: in expansion of macro ‘MAKE_ACCESSORS’
     MAKE_ACCESSORS(x4a4);
     ^~~~~~~~~~~~~~
    pixman-access.c:468:30: warning: ‘__dummy__a2b2g2r2’ defined but not used [-Wunused-const-variable=]
         static const void *const __dummy__ ## format
                                  ^
    pixman-access.c:497:1: note: in expansion of macro ‘MAKE_ACCESSORS’
     MAKE_ACCESSORS(a2b2g2r2);
     ^~~~~~~~~~~~~~
    pixman-access.c:468:30: warning: ‘__dummy__a2r2g2b2’ defined but not used [-Wunused-const-variable=]
         static const void *const __dummy__ ## format
                                  ^
    pixman-access.c:496:1: note: in expansion of macro ‘MAKE_ACCESSORS’
     MAKE_ACCESSORS(a2r2g2b2);
     ^~~~~~~~~~~~~~
    pixman-access.c:468:30: warning: ‘__dummy__b2g3r3’ defined but not used [-Wunused-const-variable=]
         static const void *const __dummy__ ## format
                                  ^
    pixman-access.c:495:1: note: in expansion of macro ‘MAKE_ACCESSORS’
     MAKE_ACCESSORS(b2g3r3);
     ^~~~~~~~~~~~~~
    pixman-access.c:468:30: warning: ‘__dummy__r3g3b2’ defined but not used [-Wunused-const-variable=]
         static const void *const __dummy__ ## format
                                  ^
    pixman-access.c:494:1: note: in expansion of macro ‘MAKE_ACCESSORS’
     MAKE_ACCESSORS(r3g3b2);
     ^~~~~~~~~~~~~~
    pixman-access.c:468:30: warning: ‘__dummy__g8’ defined but not used [-Wunused-const-variable=]
         static const void *const __dummy__ ## format
                                  ^
    pixman-access.c:493:1: note: in expansion of macro ‘MAKE_ACCESSORS’
     MAKE_ACCESSORS(g8);
     ^~~~~~~~~~~~~~
    pixman-access.c:468:30: warning: ‘__dummy__c8’ defined but not used [-Wunused-const-variable=]
         static const void *const __dummy__ ## format
                                  ^
    pixman-access.c:492:1: note: in expansion of macro ‘MAKE_ACCESSORS’
     MAKE_ACCESSORS(c8);
     ^~~~~~~~~~~~~~
    pixman-access.c:468:30: warning: ‘__dummy__a8’ defined but not used [-Wunused-const-variable=]
         static const void *const __dummy__ ## format

     

    .....省略部分输出

    util/memfd.c:43:12: error: static declaration of ‘memfd_create’ follows non-static declaration
     static int memfd_create(const char *name, unsigned int flags)
                ^~~~~~~~~~~~
    In file included from /usr/include/x86_64-linux-gnu/bits/mman-linux.h:115:0,
                     from /usr/include/x86_64-linux-gnu/bits/mman.h:45,
                     from /usr/include/x86_64-linux-gnu/sys/mman.h:41,
                     from /home/pwn/qira/tracers/qemu/qemu-latest/include/qemu/osdep.h:142,
                     from util/memfd.c:28:
    /usr/include/x86_64-linux-gnu/bits/mman-shared.h:46:5: note: previous declaration of ‘memfd_create’ was here
     int memfd_create (const char *__name, unsigned int __flags) __THROW;
         ^~~~~~~~~~~~
    /home/pwn/qira/tracers/qemu/qemu-latest/rules.mak:57: recipe for target 'util/memfd.o' failed

    make: *** [util/memfd.o] Error 1

     

     

     

  • 9楼 Lyrical 2018-07-12

    Cannot uninstall 'urllib3'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

    安装qira的时候遇到的,运行./install.sh之后

  • 10楼 Lyrical 2018-07-13

    你好,请问我在安装完qira之后运行会报如下错误:
    Traceback (most recent call last):
      File "/usr/local/bin/qira", line 14, in <module>
        import qira_webserver
      File "/home/pwn/qira/middleware/qira_webserver.py", line 38, in <module>
        from flask.ext.socketio import SocketIO, emit
    ImportError: No module named ext.socketio

    我已经安装了flask:
    pwn@ubuntu:~/qira$ pip install flask-socketio
    Requirement already satisfied: flask-socketio in /usr/local/lib/python2.7/dist-packages (3.0.1)
    Requirement already satisfied: Flask>=0.9 in /usr/local/lib/python2.7/dist-packages (from flask-socketio) (1.0.2)
    Requirement already satisfied: python-socketio>=1.6.1 in /usr/local/lib/python2.7/dist-packages (from flask-socketio) (2.0.0)
    Requirement already satisfied: click>=5.1 in /usr/local/lib/python2.7/dist-packages (from Flask>=0.9->flask-socketio) (6.7)
    Requirement already satisfied: Werkzeug>=0.14 in /usr/local/lib/python2.7/dist-packages (from Flask>=0.9->flask-socketio) (0.14.1)
    Requirement already satisfied: itsdangerous>=0.24 in /usr/local/lib/python2.7/dist-packages (from Flask>=0.9->flask-socketio) (0.24)
    Requirement already satisfied: Jinja2>=2.10 in /usr/local/lib/python2.7/dist-packages (from Flask>=0.9->flask-socketio) (2.10)
    Requirement already satisfied: six>=1.9.0 in /usr/local/lib/python2.7/dist-packages (from python-socketio>=1.6.1->flask-socketio) (1.11.0)
    Requirement already satisfied: python-engineio>=2.2.0 in /usr/local/lib/python2.7/dist-packages (from python-socketio>=1.6.1->flask-socketio) (2.2.0)
    Requirement already satisfied: MarkupSafe>=0.23 in /usr/local/lib/python2.7/dist-packages (from Jinja2>=2.10->Flask>=0.9->flask-socketio) (1.0)
    请问要怎么解决呢

    • kali 2018-07-18
      请问怎么解决的
    • nick 2018-07-25
      1、source {qira}/ven/bin/activate 2、pip install flask_socketio,from flask_socketio import SocketIO试一下,如果可以,将qira_webserver和qira_webstatic中的flask.ext.socketio修改成flask_socketio即可
  • 11楼 四川民工返乡 2018-09-10

    装完qira提示如下错误:

     

    -bash: qira: 未找到命令   这个要怎么解决啊?

  • 12楼 Crazy流痞 10-17

    kali 安装qira出现这问题怎么解决?

    ./install.sh

    running apt-get update
    installing apt packages
    (Reading database ... 409369 files and directories currently installed.)
    Preparing to unpack .../debootstrap_1.0.109_all.deb ...
    Unpacking debootstrap (1.0.109) over (1.0.108kali1) ...
    Preparing to unpack .../graphviz_2.40.1-5_amd64.deb ...
    Unpacking graphviz (2.40.1-5) over (2.40.1-3) ...
    Setting up graphviz (2.40.1-5) ...
    Processing triggers for menu (2.1.47+b1) ...
    Processing triggers for man-db (2.8.3-2) ...
    Setting up debootstrap (1.0.109) ...
    install python packages
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100  428k  100  428k    0     0  21831      0  0:00:20  0:00:20 --:--:-- 18054
    dpkg: warning: downgrading libcapstone3:amd64 from 3.0.5-3 to 3.0.4-0.1ubuntu1
    (Reading database ... 409368 files and directories currently installed.)
    Preparing to unpack /tmp/libcapstone3.deb ...
    Unpacking libcapstone3 (3.0.4-0.1ubuntu1) over (3.0.5-3) ...
    Setting up libcapstone3 (3.0.4-0.1ubuntu1) ...
    Processing triggers for libc-bin (2.27-3) ...
    ./install.sh: line 52: tracers/qemu/qira-i386: No such file or directory
    building QEMU
    fetching qemu build-deps, enter your password
    E: Unable to correct problems, you have held broken packages.
    E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
    --2018-10-17 20:47:50--  http://wiki.qemu-project.org/download/qemu-2.5.1.tar.bz2
    Resolving wiki.qemu-project.org (wiki.qemu-project.org)... 172.99.69.163
    Connecting to wiki.qemu-project.org (wiki.qemu-project.org)|172.99.69.163|:80... connected.
    HTTP request sent, awaiting response... 301 Moved Permanently
    Location: http://wiki.qemu.org/download/qemu-2.5.1.tar.bz2 [following]
    --2018-10-17 20:47:53--  http://wiki.qemu.org/download/qemu-2.5.1.tar.bz2
    Resolving wiki.qemu.org (wiki.qemu.org)... 172.99.69.163
    Reusing existing connection to wiki.qemu-project.org:80.
    HTTP request sent, awaiting response... 302 Found
    Location: https://wiki.qemu.org/download/qemu-2.5.1.tar.bz2 [following]
    --2018-10-17 20:47:55--  https://wiki.qemu.org/download/qemu-2.5.1.tar.bz2
    Connecting to wiki.qemu.org (wiki.qemu.org)|172.99.69.163|:443... connected.
    HTTP request sent, awaiting response... 301 Moved Permanently
    Location: https://download.qemu.org/qemu-2.5.1.tar.bz2 [following]
    --2018-10-17 20:47:58--  https://download.qemu.org/qemu-2.5.1.tar.bz2
    Resolving download.qemu.org (download.qemu.org)... 172.99.69.163
    Connecting to download.qemu.org (download.qemu.org)|172.99.69.163|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 25464539 (24M) [application/x-bzip2]
    Saving to: ‘qemu-2.5.1.tar.bz2’

    qemu-2.5.1.tar.bz2    0%[                    ] 128.00K   928 B/s    in 2m 21s  

    2018-10-17 20:50:29 (928 B/s) - Read error at byte 131072/25464539 (A TLS packet with unexpected length was received.). Retrying.

    --2018-10-17 20:50:30--  (try: 2)  https://download.qemu.org/qemu-2.5.1.tar.bz2
    Connecting to download.qemu.org (download.qemu.org)|172.99.69.163|:443... connected.
    HTTP request sent, awaiting response... 206 Partial Content
    Length: 25464539 (24M), 25333467 (24M) remaining [application/x-bzip2]
    Saving to: ‘qemu-2.5.1.tar.bz2’

    qemu-2.5.1.tar.bz2   22%[===>                ]   5.45M  2.35KB/s    in 28m 17s

    2018-10-17 21:18:57 (3.21 KB/s) - Read error at byte 5718016/25464539 (A TLS packet with unexpected length was received.). Retrying.

    --2018-10-17 21:18:59--  (try: 3)  https://download.qemu.org/qemu-2.5.1.tar.bz2
    Connecting to download.qemu.org (download.qemu.org)|172.99.69.163|:443... connected.
    HTTP request sent, awaiting response... 206 Partial Content
    Length: 25464539 (24M), 19746523 (19M) remaining [application/x-bzip2]
    Saving to: ‘qemu-2.5.1.tar.bz2’

    qemu-2.5.1.tar.bz2   65%[++++========>       ]  15.83M  2.76KB/s    in 20m 39s

    2018-10-17 22:22:36 (8.57 KB/s) - Read error at byte 16596992/25464539 (Resource temporarily unavailable, try again.). Retrying.

    --2018-10-17 22:22:39--  (try: 4)  https://download.qemu.org/qemu-2.5.1.tar.bz2
    Connecting to download.qemu.org (download.qemu.org)|172.99.69.163|:443... connected.
    HTTP request sent, awaiting response... 206 Partial Content
    Length: 25464539 (24M), 8867547 (8.5M) remaining [application/x-bzip2]
    Saving to: ‘qemu-2.5.1.tar.bz2’

    qemu-2.5.1.tar.bz2  100%[+++++++++++++======>]  24.28M  15.6KB/s    in 9m 38s  

    2018-10-17 22:32:19 (15.0 KB/s) - ‘qemu-2.5.1.tar.bz2’ saved [25464539/25464539]

    patching file disas.c
    patching file include/librarymap.h
    patching file linux-user/elfload.c
    patching file linux-user/main.c
    patching file linux-user/qemu.h
    patching file linux-user/strace.c
    patching file linux-user/strace.list
    patching file linux-user/syscall.c
    patching file tci.c
    Unsupported CPU = unknown, will use TCG with TCI (experimental)
    Install prefix    /usr/local
    BIOS directory    /usr/local/share/qemu
    binary directory  /usr/local/bin
    library directory /usr/local/lib
    module directory  /usr/local/lib/qemu
    libexec directory /usr/local/libexec
    include directory /usr/local/include
    config directory  /usr/local/etc
    local state directory   /usr/local/var
    Manual directory  /usr/local/share/man
    ELF interp prefix /usr/gnemul/qemu-%M
    Source path       /root/qira/tracers/qemu/qemu-latest
    C compiler        cc
    Host C compiler   cc
    C++ compiler      c++
    Objective-C compiler clang
    ARFLAGS           rv
    CFLAGS            -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -g
    QEMU_CFLAGS       -I/usr/include/pixman-1  -DHAS_LIBSSH2_SFTP_FSYNC  -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common  -Wendif-labels -Wmissing-include-dirs -Wempty-body -Wnested-externs -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-declaration -Wold-style-definition -Wtype-limits -fstack-protector-strong -I/usr/include/p11-kit-1    -I/usr/include/libpng16 -I/usr/include/spice-server -I/usr/include/spice-1 -I/usr/include/cacard -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libusb-1.0
    LDFLAGS           -Wl,--warn-common -g
    make              make
    install           install
    python            python -B
    smbd              /usr/sbin/smbd
    module support    no
    host CPU          unknown
    host big endian   no
    target list       i386-linux-user x86_64-linux-user arm-linux-user ppc-linux-user aarch64-linux-user mips-linux-user mipsel-linux-user
    tcg debug enabled yes
    gprof enabled     no
    sparse enabled    no
    strip binaries    yes
    profiler          no
    static build      no
    pixman            system
    SDL support       no
    GTK support       yes
    GTK GL support    yes
    GNUTLS support    yes
    GNUTLS hash       yes
    libgcrypt         no
    nettle            yes (3.4)
    libtasn1          yes
    VTE support       no
    curses support    yes
    virgl support     no
    curl support      yes
    mingw32 support   no
    Audio drivers     oss
    Block whitelist (rw)
    Block whitelist (ro)
    VirtFS support    
    VNC support       yes
    VNC SASL support  yes
    VNC JPEG support  yes
    VNC PNG support   yes
    xen support       yes
    xen ctrl version  470
    brlapi support    yes
    bluez  support    yes
    Documentation     yes
    PIE               no
    vde support       yes
    netmap support    no
    Linux AIO support yes
    ATTR/XATTR support yes
    Install blobs     yes
    KVM support       yes
    RDMA support      no
    TCG interpreter   yes
    fdt support       yes
    preadv support    yes
    fdatasync         yes
    madvise           yes
    posix_madvise     yes
    sigev_thread_id   yes
    uuid support      yes
    libcap-ng support yes
    vhost-net support yes
    vhost-scsi support yes
    Trace backends    nop
    spice support     yes (0.12.13/0.14.0)
    rbd support       yes
    xfsctl support    yes
    smartcard support yes
    libusb            yes
    usb net redir     yes
    OpenGL support    yes
    libiscsi support  yes
    libnfs support    yes
    build guest agent yes
    QGA VSS support   no
    QGA w32 disk info no
    QGA MSI support   no
    seccomp support   no
    coroutine backend ucontext
    coroutine pool    yes
    GlusterFS support yes
    Archipelago support no
    gcov              gcov
    gcov enabled      no
    TPM support       yes
    libssh2 support   yes
    TPM passthrough   no
    QOM debugging     yes
    vhdx              yes
    lzo support       no
    snappy support    no
    bzip2 support     no
    NUMA host support yes
    tcmalloc support  no
    jemalloc support  no
      GEN   i386-linux-user/config-devices.mak.tmp
      GEN   x86_64-linux-user/config-devices.mak.tmp
      GEN   x86_64-linux-user/config-devices.mak
      GEN   i386-linux-user/config-devices.mak
      GEN   ppc-linux-user/config-devices.mak.tmp
      GEN   arm-linux-user/config-devices.mak.tmp
      GEN   arm-linux-user/config-devices.mak
      GEN   ppc-linux-user/config-devices.mak
      GEN   aarch64-linux-user/config-devices.mak.tmp
      GEN   mips-linux-user/config-devices.mak.tmp
      GEN   aarch64-linux-user/config-devices.mak
      GEN   mips-linux-user/config-devices.mak
      GEN   mipsel-linux-user/config-devices.mak.tmp
      GEN   config-host.h
      GEN   mipsel-linux-user/config-devices.mak
      GEN   qemu-options.def
      GEN   qmp-commands.h
      GEN   qapi-types.h
      GEN   qapi-visit.h
      GEN   qapi-event.h
      GEN   qmp-introspect.h
      GEN   trace/generated-events.h
      GEN   trace/generated-tracers.h
      GEN   trace/generated-tcg-tracers.h
      GEN   trace/generated-helpers-wrappers.h
      GEN   trace/generated-helpers.h
      GEN   tests/test-qapi-types.h
      GEN   tests/test-qapi-visit.h
      GEN   tests/test-qmp-commands.h
      GEN   tests/test-qapi-event.h
      GEN   tests/test-qmp-introspect.h
      GEN   config-all-devices.mak
      CC    tests/qemu-iotests/socket_scm_helper.o
      GEN   qemu-options.texi
      GEN   qemu-monitor.texi
      GEN   qemu-img-cmds.texi
      GEN   qemu-monitor-info.texi
      GEN   qemu-tech.html
      GEN   qemu-img.1
      GEN   qemu-nbd.8
      GEN   qemu-ga.8
      GEN   qmp-commands.txt
      GEN   kvm_stat.1
      GEN   qga/qapi-generated/qga-qapi-types.h
      GEN   qga/qapi-generated/qga-qapi-visit.h
      GEN   qga/qapi-generated/qga-qmp-commands.h
      GEN   qga/qapi-generated/qga-qapi-types.c
      GEN   qga/qapi-generated/qga-qapi-visit.c
      GEN   qga/qapi-generated/qga-qmp-marshal.c
      GEN   qmp-introspect.c
      GEN   qapi-types.c
      GEN   qapi-visit.c
      GEN   qapi-event.c
      CC    qapi/qapi-visit-core.o
      CC    qapi/qapi-dealloc-visitor.o
      CC    qapi/qmp-input-visitor.o
      CC    qapi/qmp-output-visitor.o
      CC    qapi/qmp-registry.o
      CC    qapi/qmp-dispatch.o
      CC    qapi/string-input-visitor.o
      CC    qapi/string-output-visitor.o
      CC    qapi/opts-visitor.o
      CC    qapi/qmp-event.o
      CC    qapi/qapi-util.o
      CC    qobject/qnull.o
      CC    qobject/qint.o
      CC    qobject/qstring.o
      CC    qobject/qdict.o
      CC    qobject/qlist.o
      CC    qobject/qfloat.o
      CC    qobject/qbool.o
      CC    qobject/qjson.o
      CC    qobject/json-lexer.o
      CC    qobject/json-streamer.o
      CC    qobject/json-parser.o
      GEN   trace/generated-events.c
      CC    trace/control.o
      CC    trace/qmp.o
      CC    util/osdep.o
      CC    util/cutils.o
      CC    util/unicode.o
      CC    util/qemu-timer-common.o
      CC    util/compatfd.o
      CC    util/event_notifier-posix.o
      CC    util/mmap-alloc.o
      CC    util/oslib-posix.o
      CC    util/qemu-openpty.o
      CC    util/qemu-thread-posix.o
      CC    util/memfd.o
      CC    util/envlist.o
    util/memfd.c:43:12: error: static declaration of ‘memfd_create’ follows non-static declaration
     static int memfd_create(const char *name, unsigned int flags)
                ^~~~~~~~~~~~
    In file included from /usr/include/x86_64-linux-gnu/bits/mman-linux.h:115:0,
                     from /usr/include/x86_64-linux-gnu/bits/mman.h:45,
                     from /usr/include/x86_64-linux-gnu/sys/mman.h:41,
                     from /root/qira/tracers/qemu/qemu-latest/include/qemu/osdep.h:142,
                     from util/memfd.c:28:
    /usr/include/x86_64-linux-gnu/bits/mman-shared.h:46:5: note: previous declaration of ‘memfd_create’ was here
     int memfd_create (const char *__name, unsigned int __flags) __THROW;
         ^~~~~~~~~~~~
    /root/qira/tracers/qemu/qemu-latest/rules.mak:57: recipe for target 'util/memfd.o' failed
    make: *** [util/memfd.o] Error 1
    make: *** Waiting for unfinished jobs....


     

  • 13楼 DOUBLE 10-31

    安装成功了,也能正常启动,但是nc一连接,就报错

    Traceback (most recent call last):
      File "/root/qira/middleware/qira.py", line 97, in <module>
        qira_socat.start_bindserver(program, qira_config.SOCAT_PORT, -1, 1, True)
      File "/root/qira/middleware/qira_socat.py", line 58, in start_bindserver
        program.execqira(["-qirachild", "%d %d %d" % (parent_id, start_cl, run_id)], shouldfork=False)
      File "/root/qira/middleware/qira_program.py", line 393, in execqira
        os.execvp(eargs[0], eargs)
      File "/root/qira/venv/lib/python2.7/os.py", line 346, in execvp
        _execvpe(file, args)
      File "/root/qira/venv/lib/python2.7/os.py", line 370, in _execvpe
        func(file, *argrest)
    OSError: [Errno 2] No such file or directory
    close failed in file object destructor:
    IOError: [Errno 9] Bad file descriptor
    close failed in file object destructor:
    IOError: [Errno 9] Bad file descriptor
     

    • nick 11-02
      是否有执行权限?
    • DOUBLE 11-07
      回复 nick:程序是有执行权限的
    • nick 11-07
      回复 DOUBLE:重新装下qemu试下,去qemu路径下执行build.sh
    • ppsuc_pwn 11-08
      回复 DOUBLE:我也有这问题请问 如何解决
    • nick 11-09
      回复 ppsuc_pwn:先看下文件是否有执行权限,没有的话就是qemu的问题,重新安装下qemu
    • 我也要说
      还有6条回复,点击查看
       
  • 14楼 nick 11-11

    docker版本 链接:https://pan.baidu.com/s/17J9WHeOPo9cvBsH_PgAAkw 密码:1f3m

  • 15楼 ictf 03-27

    我的Ubuntu64位的 NC连接也出现这个问题

    xxxx@ubuntu:~$ nc 127.0.0.1 4000 Traceback (most recent call last): File "/home/xxxx/tools/qira-1.3/middleware/qira.py", line 97, in qira_socat.start_bindserver(program, qira_config.SOCAT_PORT, -1, 1, True) File "/home/xxxx/tools/qira-1.3/middleware/qira_socat.py", line 58, in start_bindserver program.execqira(["-qirachild", "%d %d %d" % (parent_id, start_cl, run_id)], shouldfork=False) File "/home/xxxx/tools/qira-1.3/middleware/qira_program.py", line 393, in execqira os.execvp(eargs[0], eargs) File "/home/xxxx/tools/qira-1.3/venv/lib/python2.7/os.py", line 346, in execvp _execvpe(file, args) File "/home/xxxx/tools/qira-1.3/venv/lib/python2.7/os.py", line 370, in _execvpe func(file, *argrest) OSError: [Errno 2] No such file or directory close failed in file object destructor: IOError: [Errno 9] Bad file descriptor close failed in file object destructor: IOError: [Errno 9] Bad file descriptor

    请楼主帮忙解决一下,谢谢。

发表回复
你还没有登录,请先 登录或 注册!