Pyrit no Ubuntu Não consigo instalar!

Iniciado por maçarico, 15 de Setembro de 2010, 15:11

tópico anterior - próximo tópico

maçarico

Olá a todos, ando à dias de volta do pyrit. Acho que fiz tudo certo mas dá sempre erro.  ??? Estes foram os passos que eu dei:
   
         Fiz o download de:
             cpyrit-cuda-0.3.0.tar.gz
             Python-2.6.6.tgz
                      Descompactei ambos os ficheiros.

De seguida executei os comandos : svn checkout http://pyrit.googlecode.com/svn/trunk/ pyrit_svn

sudo apt-get install libssl-dev
        Reading package lists... Done
        Building dependency tree       
        Reading state information... Done
        libssl-dev is already the newest version.
        0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
sudo apt-get install scapy
        Building dependency tree       
        Reading state information... Done
        Package scapy is not available, but is referred to by another package.
        This may mean that the package is missing, has been obsoleted, or
        is only available from another source
        However the following packages replace it:
        python-scapy
        E: Package scapy has no installation candidate
        sudo apt-get install python-scapy
        Reading package lists... Done
        Building dependency tree       
        Reading state information... Done
        python-scapy is already the newest version.
        0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
sudo apt-get install python-dev
        Reading package lists... Done
        Building dependency tree       
        Reading state information... Done
        E: Couldn't find package phyton-dev

sudo python setup.py build  (Dentro da directoria /pyrit_svn/pyrit$ quando eu edito este comando dá erro) 

running build
running build_py
running build_ext
building 'cpyrit._cpyrit_cpu' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.6 -c cpyrit/_cpyrit_cpu.c -o build/temp.linux-x86_64-2.6/cpyrit/_cpyrit_cpu.o -Wall -DVERSION="0.3.1-dev (svn r279)"
cpyrit/_cpyrit_cpu.c:37:18: error: pcap.h: No such file or directory
cpyrit/_cpyrit_cpu.c:98: error: expected specifier-qualifier-list before 'pcap_t'
cpyrit/_cpyrit_cpu.c: In function 'PcapDevice_init':
cpyrit/_cpyrit_cpu.c:1384: error: 'PcapDevice' has no member named 'p'
cpyrit/_cpyrit_cpu.c:1385: error: 'PcapDevice' has no member named 'status'
cpyrit/_cpyrit_cpu.c:1385: error: 'PcapDevice' has no member named 'datalink'
cpyrit/_cpyrit_cpu.c: In function 'PcapDevice_dealloc':
cpyrit/_cpyrit_cpu.c:1396: error: 'PcapDevice' has no member named 'p'
cpyrit/_cpyrit_cpu.c:1396: error: 'PcapDevice' has no member named 'status'
cpyrit/_cpyrit_cpu.c:1397: warning: implicit declaration of function 'pcap_close'
cpyrit/_cpyrit_cpu.c:1397: error: 'PcapDevice' has no member named 'p'
cpyrit/_cpyrit_cpu.c: In function 'PcapDevice_close':
cpyrit/_cpyrit_cpu.c:1407: error: 'PcapDevice' has no member named 'status'
cpyrit/_cpyrit_cpu.c:1408: error: 'PcapDevice' has no member named 'p'
cpyrit/_cpyrit_cpu.c:1409: error: 'PcapDevice' has no member named 'status'
cpyrit/_cpyrit_cpu.c: In function 'PcapDevice_setup':
cpyrit/_cpyrit_cpu.c:1420: error: 'PcapDevice' has no member named 'datalink'
cpyrit/_cpyrit_cpu.c:1420: warning: implicit declaration of function 'pcap_datalink'
cpyrit/_cpyrit_cpu.c:1420: error: 'PcapDevice' has no member named 'p'
cpyrit/_cpyrit_cpu.c:1422: warning: implicit declaration of function 'pcap_datalink_val_to_name'
cpyrit/_cpyrit_cpu.c:1422: error: 'PcapDevice' has no member named 'datalink'
cpyrit/_cpyrit_cpu.c:1422: warning: assignment makes pointer from integer without a cast
cpyrit/_cpyrit_cpu.c:1450: error: 'PcapDevice' has no member named 'status'
cpyrit/_cpyrit_cpu.c: In function 'PcapDevice_open_live':
cpyrit/_cpyrit_cpu.c:1461: error: 'PCAP_ERRBUF_SIZE' undeclared (first use in this function)
cpyrit/_cpyrit_cpu.c:1461: error: (Each undeclared identifier is reported only once
cpyrit/_cpyrit_cpu.c:1461: error: for each function it appears in.)
cpyrit/_cpyrit_cpu.c:1467: error: 'PcapDevice' has no member named 'status'
cpyrit/_cpyrit_cpu.c:1473: error: 'PcapDevice' has no member named 'p'
cpyrit/_cpyrit_cpu.c:1473: warning: implicit declaration of function 'pcap_open_live'
cpyrit/_cpyrit_cpu.c:1474: error: 'PcapDevice' has no member named 'p'
cpyrit/_cpyrit_cpu.c:1461: warning: unused variable 'errbuf'
cpyrit/_cpyrit_cpu.c: In function 'PcapDevice_open_offline':
cpyrit/_cpyrit_cpu.c:1493: error: 'PCAP_ERRBUF_SIZE' undeclared (first use in this function)
cpyrit/_cpyrit_cpu.c:1499: error: 'PcapDevice' has no member named 'status'
cpyrit/_cpyrit_cpu.c:1505: error: 'PcapDevice' has no member named 'p'
cpyrit/_cpyrit_cpu.c:1505: warning: implicit declaration of function 'pcap_open_offline'
cpyrit/_cpyrit_cpu.c:1506: error: 'PcapDevice' has no member named 'p'
cpyrit/_cpyrit_cpu.c:1493: warning: unused variable 'errbuf'
cpyrit/_cpyrit_cpu.c: In function 'PcapDevice_read':
cpyrit/_cpyrit_cpu.c:1530: error: 'PcapDevice' has no member named 'status'
cpyrit/_cpyrit_cpu.c:1539: warning: implicit declaration of function 'pcap_next_ex'
cpyrit/_cpyrit_cpu.c:1539: error: 'PcapDevice' has no member named 'p'
cpyrit/_cpyrit_cpu.c:1549: error: dereferencing pointer to incomplete type
cpyrit/_cpyrit_cpu.c:1559: error: dereferencing pointer to incomplete type
cpyrit/_cpyrit_cpu.c:1560: error: dereferencing pointer to incomplete type
cpyrit/_cpyrit_cpu.c:1578: warning: implicit declaration of function 'pcap_geterr'
cpyrit/_cpyrit_cpu.c:1578: error: 'PcapDevice' has no member named 'p'
cpyrit/_cpyrit_cpu.c:1578: warning: format '%s' expects type 'char *', but argument 3 has type 'int'
cpyrit/_cpyrit_cpu.c: In function 'PcapDevice_send':
cpyrit/_cpyrit_cpu.c:1598: error: 'PcapDevice' has no member named 'status'
cpyrit/_cpyrit_cpu.c:1620: warning: implicit declaration of function 'pcap_sendpacket'
cpyrit/_cpyrit_cpu.c:1620: error: 'PcapDevice' has no member named 'p'
cpyrit/_cpyrit_cpu.c:1622: error: 'PcapDevice' has no member named 'p'
cpyrit/_cpyrit_cpu.c:1622: warning: format '%s' expects type 'char *', but argument 3 has type 'int'
cpyrit/_cpyrit_cpu.c: In function 'PcapDevice_set_filter':
cpyrit/_cpyrit_cpu.c:1639: error: storage size of 'fp' isn't known
cpyrit/_cpyrit_cpu.c:1645: error: 'PcapDevice' has no member named 'status'
cpyrit/_cpyrit_cpu.c:1651: warning: implicit declaration of function 'pcap_compile'
cpyrit/_cpyrit_cpu.c:1651: error: 'PcapDevice' has no member named 'p'
cpyrit/_cpyrit_cpu.c:1653: error: 'PcapDevice' has no member named 'p'
cpyrit/_cpyrit_cpu.c:1653: warning: format '%s' expects type 'char *', but argument 3 has type 'int'
cpyrit/_cpyrit_cpu.c:1657: warning: implicit declaration of function 'pcap_setfilter'
cpyrit/_cpyrit_cpu.c:1657: error: 'PcapDevice' has no member named 'p'
cpyrit/_cpyrit_cpu.c:1659: error: 'PcapDevice' has no member named 'p'
cpyrit/_cpyrit_cpu.c:1659: warning: format '%s' expects type 'char *', but argument 3 has type 'int'
cpyrit/_cpyrit_cpu.c:1660: warning: implicit declaration of function 'pcap_freecode'
cpyrit/_cpyrit_cpu.c:1639: warning: unused variable 'fp'
cpyrit/_cpyrit_cpu.c: At top level:
cpyrit/_cpyrit_cpu.c:1957: error: 'PcapDevice' has no member named 'datalink'
error: command 'gcc' failed with exit status 1

Felix

Para cmeçar do básico:

Você possui o pacote build-essential instalado?

maçarico

Sim...

Reading package lists... Done
Building dependency tree       
Reading state information... Done
build-essential is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

maçarico

Já está... :D
Faltava o pacote "libpcap-dev"