PDA

توجه ! این یک نسخه آرشیو شده میباشد و در این حالت شما عکسی را مشاهده نمیکنید برای مشاهده کامل متن و عکسها بر روی لینک مقابل کلیک کنید : مشکل در نصب mitm*****



sardarn
March 27th, 2015, 15:21
سلام

من می خواستم روی ubuntu یک mitm***** نصب کنم که با sudo هم اجرا می کنم اما بعد از کمی کار کردن ارور می دهد:





Command "/usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-zIFtLW/cffi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-oLiYhi-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-zIFtLW/cffi






دستوری که من می زنم:

sudo pip install mitm*****


کل لاگ مرا حل نصب:





The directory '/home/ali/.cache/pip/log' or its parent directory is not owned by the current user and the debug log has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want the -H flag.
The directory '/home/ali/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want the -H flag.
The directory '/home/ali/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want the -H flag.
Collecting mitm*****
Downloading mitm*****-0.11.3.tar.gz (6.2MB)
100% |################################| 6.2MB 20kB/s
Collecting urwid>=1.1 (from mitm*****)
Downloading urwid-1.3.0.tar.gz (580kB)
100% |################################| 581kB 45kB/s
Collecting pyasn1>0.1.2 (from mitm*****)
Downloading pyasn1-0.1.7.tar.gz (68kB)
100% |################################| 69kB 77kB/s
Collecting tornado>=4.0.2 (from mitm*****)
Downloading tornado-4.1.tar.gz (332kB)
100% |################################| 335kB 71kB/s
Collecting lxml>=3.3.6 (from mitm*****)
Downloading lxml-3.4.2.tar.gz (3.5MB)
100% |################################| 3.5MB 41kB/s
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url'
warnings.warn(msg)
Building lxml version 3.4.2.
Building without Cython.
ERROR: /bin/sh: 1: xslt-config: not found
** make sure the development packages of libxml2 and libxslt are installed **
Using build configuration of libxslt
Collecting pyOpenSSL>=0.14 (from mitm*****)
Downloading pyOpenSSL-0.14.tar.gz (128kB)
100% |################################| 131kB 85kB/s
Requirement already satisfied (use --upgrade to upgrade): Pillow>=2.3.0 in /usr/lib/python2.7/dist-packages (from mitm*****)
Collecting configargparse>=0.9.3 (from mitm*****)
Downloading ConfigArgParse-0.9.3.tar.gz
Collecting netlib<0.12,>=0.11 (from mitm*****)
Downloading netlib-0.11.2.tar.gz (43kB)
100% |################################| 45kB 61kB/s
Collecting certifi (from tornado>=4.0.2->mitm*****)
Downloading certifi-14.05.14.tar.gz (168kB)
100% |################################| 172kB 81kB/s
/usr/local/lib/python2.7/dist-packages/setuptools/dist.py:282: UserWarning: Normalizing '14.05.14' to '14.5.14'
normalized_version,
Collecting backports.ssl-match-hostname (from tornado>=4.0.2->mitm*****)
Downloading backports.ssl_match_hostname-3.4.0.2.tar.gz
Collecting cryptography>=0.2.1 (from pyOpenSSL>=0.14->mitm*****)
Downloading cryptography-0.8.1.tar.gz (268kB)
100% |################################| 270kB 95kB/s
Requirement already satisfied (use --upgrade to upgrade): six>=1.5.2 in /usr/lib/python2.7/dist-packages (from pyOpenSSL>=0.14->mitm*****)
Collecting passlib>=1.6.2 (from netlib<0.12,>=0.11->mitm*****)
Downloading passlib-1.6.2.tar.gz (408kB)
100% |################################| 409kB 40kB/s
Requirement already satisfied (use --upgrade to upgrade): setuptools in /usr/local/lib/python2.7/dist-packages (from cryptography>=0.2.1->pyOpenSSL>=0.14->mitm*****)
Collecting enum34 (from cryptography>=0.2.1->pyOpenSSL>=0.14->mitm*****)
Downloading enum34-1.0.4.tar.gz
Collecting cffi>=0.8 (from cryptography>=0.2.1->pyOpenSSL>=0.14->mitm*****)
Downloading cffi-0.9.2.tar.gz (209kB)
100% |################################| 212kB 1.2MB/s
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Requirement already satisfied (use --upgrade to upgrade): pycparser in /usr/local/lib/python2.7/dist-packages (from cffi>=0.8->cryptography>=0.2.1->pyOpenSSL>=0.14->mitm*****)
Installing collected packages: cffi, enum34, passlib, cryptography, backports.ssl-match-hostname, certifi, netlib, configargparse, pyOpenSSL, lxml, tornado, pyasn1, urwid, mitm*****
Running setup.py install for cffi
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
building '_cffi_backend' extension
i686-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DUSE__THREAD -I/usr/include/ffi -I/usr/include/libffi -I/usr/include/python2.7 -c c/_cffi_backend.c -o build/temp.linux-i686-2.7/c/_cffi_backend.o
c/_cffi_backend.c:2:20: fatal error: Python.h: No such file or directory
#include <Python.h>
^
compilation terminated.
error: command 'i686-linux-gnu-gcc' failed with exit status 1
Complete output from command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-zIFtLW/cffi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-oLiYhi-record/install-record.txt --single-version-externally-managed --compile:
Package libffi was not found in the pkg-config search path.

Perhaps you should add the directory containing `libffi.pc'

to the PKG_CONFIG_PATH environment variable

No package 'libffi' found

Package libffi was not found in the pkg-config search path.

Perhaps you should add the directory containing `libffi.pc'

to the PKG_CONFIG_PATH environment variable

No package 'libffi' found

Package libffi was not found in the pkg-config search path.

Perhaps you should add the directory containing `libffi.pc'

to the PKG_CONFIG_PATH environment variable

No package 'libffi' found

Package libffi was not found in the pkg-config search path.

Perhaps you should add the directory containing `libffi.pc'

to the PKG_CONFIG_PATH environment variable

No package 'libffi' found

Package libffi was not found in the pkg-config search path.

Perhaps you should add the directory containing `libffi.pc'

to the PKG_CONFIG_PATH environment variable

No package 'libffi' found

running install

running build

running build_py

creating build

creating build/lib.linux-i686-2.7

creating build/lib.linux-i686-2.7/cffi

copying cffi/vengine_gen.py -> build/lib.linux-i686-2.7/cffi

copying cffi/api.py -> build/lib.linux-i686-2.7/cffi

copying cffi/__init__.py -> build/lib.linux-i686-2.7/cffi

copying cffi/cparser.py -> build/lib.linux-i686-2.7/cffi

copying cffi/ffiplatform.py -> build/lib.linux-i686-2.7/cffi

copying cffi/backend_ctypes.py -> build/lib.linux-i686-2.7/cffi

copying cffi/model.py -> build/lib.linux-i686-2.7/cffi

copying cffi/commontypes.py -> build/lib.linux-i686-2.7/cffi

copying cffi/vengine_cpy.py -> build/lib.linux-i686-2.7/cffi

copying cffi/lock.py -> build/lib.linux-i686-2.7/cffi

copying cffi/gc_weakref.py -> build/lib.linux-i686-2.7/cffi

copying cffi/verifier.py -> build/lib.linux-i686-2.7/cffi

running build_ext

building '_cffi_backend' extension

creating build/temp.linux-i686-2.7

creating build/temp.linux-i686-2.7/c

i686-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DUSE__THREAD -I/usr/include/ffi -I/usr/include/libffi -I/usr/include/python2.7 -c c/_cffi_backend.c -o build/temp.linux-i686-2.7/c/_cffi_backend.o

c/_cffi_backend.c:2:20: fatal error: Python.h: No such file or directory

#include <Python.h>

^

compilation terminated.

error: command 'i686-linux-gnu-gcc' failed with exit status 1

----------------------------------------
Command "/usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-zIFtLW/cffi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-oLiYhi-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-zIFtLW/cffi




مشکل از چی هست.

- - - Updated - - -

منظورم mitmpro+x+y بود که انجمن سانسورش کرد و به جاش *** گذاشته

yourhosting
March 27th, 2015, 16:32
منظورتون از mitm همون روش نفوذ man in the middle هست؟!
کمی توضیح دهید
موفق باشید

omco
March 27th, 2015, 20:50
با سلام
این مورد را بنده در ماه گذشته بدون مورد روی ابونتو نصب کردم. می بایست تمامی پکیج های مورد نیاز را نصب کرده باشید و سپس توصیه میشه با pip نصب را به صورت خودکار انجام دهید.
apt-get install python-pyasn1 python-flask python-urwid
apt-get install build-essential python-dev libffi-dev libssl-dev libxml2-dev libxslt1-dev


pip install mitm*****



فکر کنم بدونم دنبال چی هستید! منم دنبال همون بودم . خوشحال میشم نتایجتون را در پیغام خصوصی با من در میان بگذارید

sardarn
March 27th, 2015, 22:15
منظورتون از mitm همون روش نفوذ man in the middle هست؟!
کمی توضیح دهید
موفق باشید

سلام
mitm اول این برنامه مخفف همین عبارت هست اما این اسم یک برنامه هست که تقریبا همین کار می کنه.

- - - Updated - - -


با سلام
این مورد را بنده در ماه گذشته بدون مورد روی ابونتو نصب کردم. می بایست تمامی پکیج های مورد نیاز را نصب کرده باشید و سپس توصیه میشه با pip نصب را به صورت خودکار انجام دهید.
apt-get install python-pyasn1 python-flask python-urwid
apt-get install build-essential python-dev libffi-dev libssl-dev libxml2-dev libxslt1-dev


pip install mitm*****



فکر کنم بدونم دنبال چی هستید! منم دنبال همون بودم . خوشحال میشم نتایجتون را در پیغام خصوصی با من در میان بگذارید

سلام
اینا رو چه طور به صورت خودکار با pip نصب کنم؟
انشالله به نتیجه رسید به شما هم اطلاع می دهم.

موفق باشید

omco
March 28th, 2015, 00:21
سلام
سلام
اینا رو چه طور به صورت خودکار با pip نصب کنم؟
انشالله به نتیجه رسید به شما هم اطلاع می دهم.

موفق باشید

منظور من نصب خود mitm از طریق pip بود که شما همین کار را انجام می دهید
بقیه موارد نیز که با همان دستورات پکیج ها نصب می شوند