Problemas na Instalação. [RESOLVIDO]

1. Problemas na Instalação. [RESOLVIDO]

Mario Apra
derrix

(usa Outra)

Enviado em 12/01/2013 - 01:11h

Estou com problemas na instalação do aircrack-ng.

Quando digito "sudo apt-get install aircrack-ng" aparece:



Lendo listas de pacotes... Pronto
Construindo árvore de dependências
Lendo informação de estado... Pronto
O pacote aircrack-ng não está disponível, mas é referenciado por outro pacote.
Isto pode significar que o pacote está faltando, ficou obsoleto ou
está disponível somente a partir de outra fonte
No entanto, os pacotes a seguir o substituem:
iw:i386 iw

E: O pacote 'aircrack-ng' não tem candidato para instalação







Portanto baixei o "aircrack-ng-1.1.tar.gz" no próprio site da aircrack. Extrai os arquivos para a pasta Download e quando entro na pasta pelo terminal (usando cd /home/mario/Downloads/aircrack-ng-1.1/)
e depois "make", dá esses erros:



make -C src all
make[1]: Entering directory `/home/mario/Downloads/aircrack-ng-1.1/src'
make -C osdep
make[2]: Entering directory `/home/mario/Downloads/aircrack-ng-1.1/src/osdep'
Building for Linux
make[3]: Entering directory `/home/mario/Downloads/aircrack-ng-1.1/src/osdep'
gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0 -fPIC -I.. -c -o linux.o linux.c
linux.c: In function ‘is_ndiswrapper’:
linux.c:165:17: error: variable ‘unused’ set but not used [-Werror=unused-but-set-variable]
linux.c: In function ‘linux_set_rate’:
linux.c:334:22: error: variable ‘unused’ set but not used [-Werror=unused-but-set-variable]
linux.c: In function ‘linux_set_channel’:
linux.c:807:22: error: variable ‘unused’ set but not used [-Werror=unused-but-set-variable]
linux.c: In function ‘linux_set_freq’:
linux.c:896:22: error: variable ‘unused’ set but not used [-Werror=unused-but-set-variable]
linux.c: In function ‘set_monitor’:
linux.c:1022:22: error: variable ‘unused’ set but not used [-Werror=unused-but-set-variable]
linux.c: In function ‘do_linux_open’:
linux.c:1366:12: error: variable ‘unused_str’ set but not used [-Werror=unused-but-set-variable]
linux.c:1352:15: error: variable ‘unused’ set but not used [-Werror=unused-but-set-variable]
linux.c: In function ‘get_battery_state’:
linux.c:1982:35: error: variable ‘current’ set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors
make[3]: *** [linux.o] Error 1
make[3]: Leaving directory `/home/mario/Downloads/aircrack-ng-1.1/src/osdep'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/mario/Downloads/aircrack-ng-1.1/src/osdep'
make[1]: *** [osd] Error 2
make[1]: Leaving directory `/home/mario/Downloads/aircrack-ng-1.1/src'
make: *** [all] Error 2




Quando dou make install, dá esses erros:



make -C src install
make[1]: Entering directory `/home/mario/Downloads/aircrack-ng-1.1/src'
make -C osdep
make[2]: Entering directory `/home/mario/Downloads/aircrack-ng-1.1/src/osdep'
Building for Linux
make[3]: Entering directory `/home/mario/Downloads/aircrack-ng-1.1/src/osdep'
gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0 -fPIC -I.. -c -o linux.o linux.c
linux.c: In function ‘is_ndiswrapper’:
linux.c:165:17: error: variable ‘unused’ set but not used [-Werror=unused-but-set-variable]
linux.c: In function ‘linux_set_rate’:
linux.c:334:22: error: variable ‘unused’ set but not used [-Werror=unused-but-set-variable]
linux.c: In function ‘linux_set_channel’:
linux.c:807:22: error: variable ‘unused’ set but not used [-Werror=unused-but-set-variable]
linux.c: In function ‘linux_set_freq’:
linux.c:896:22: error: variable ‘unused’ set but not used [-Werror=unused-but-set-variable]
linux.c: In function ‘set_monitor’:
linux.c:1022:22: error: variable ‘unused’ set but not used [-Werror=unused-but-set-variable]
linux.c: In function ‘do_linux_open’:
linux.c:1366:12: error: variable ‘unused_str’ set but not used [-Werror=unused-but-set-variable]
linux.c:1352:15: error: variable ‘unused’ set but not used [-Werror=unused-but-set-variable]
linux.c: In function ‘get_battery_state’:
linux.c:1982:35: error: variable ‘current’ set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors
make[3]: *** [linux.o] Error 1
make[3]: Leaving directory `/home/mario/Downloads/aircrack-ng-1.1/src/osdep'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/mario/Downloads/aircrack-ng-1.1/src/osdep'
make[1]: *** [osd] Error 2
make[1]: Leaving directory `/home/mario/Downloads/aircrack-ng-1.1/src'
make: *** [install] Error 2



Aguardo informações. Grato.


  


2. Re: Problemas na Instalação. [RESOLVIDO]

Luís Fernando C. Cavalheiro
lcavalheiro

(usa Slackware)

Enviado em 12/01/2013 - 01:17h

Se a distro for MS Ubuntu, pesquise em packages.ubuntu.com em que repositório está o pacote e o ative.


3. Re: Problemas na Instalação. [RESOLVIDO]

Mario Apra
derrix

(usa Outra)

Enviado em 12/01/2013 - 01:20h

Após mudar a linha "CFLAGS ?= -g -W -Wall -Werror -O3" para CFLAGS ?= -g -W -Wall -O3, tentei de novo e está ai o resultado:

Usando make




make -C src all
make[1]: Entering directory `/home/mario/Downloads/aircrack-ng-1.1/src'
make -C osdep
make[2]: Entering directory `/home/mario/Downloads/aircrack-ng-1.1/src/osdep'
Building for Linux
make[3]: Entering directory `/home/mario/Downloads/aircrack-ng-1.1/src/osdep'
gcc -g -W -Wall -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0 -fPIC -I.. -c -o linux.o linux.c
linux.c: In function ‘is_ndiswrapper’:
linux.c:165:17: warning: variable ‘unused’ set but not used [-Wunused-but-set-variable]
linux.c: In function ‘linux_set_rate’:
linux.c:334:22: warning: variable ‘unused’ set but not used [-Wunused-but-set-variable]
linux.c: In function ‘linux_set_channel’:
linux.c:807:22: warning: variable ‘unused’ set but not used [-Wunused-but-set-variable]
linux.c: In function ‘linux_set_freq’:
linux.c:896:22: warning: variable ‘unused’ set but not used [-Wunused-but-set-variable]
linux.c: In function ‘set_monitor’:
linux.c:1022:22: warning: variable ‘unused’ set but not used [-Wunused-but-set-variable]
linux.c: In function ‘do_linux_open’:
linux.c:1366:12: warning: variable ‘unused_str’ set but not used [-Wunused-but-set-variable]
linux.c:1352:15: warning: variable ‘unused’ set but not used [-Wunused-but-set-variable]
linux.c: In function ‘get_battery_state’:
linux.c:1982:35: warning: variable ‘current’ set but not used [-Wunused-but-set-variable]
gcc -g -W -Wall -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0 -fPIC -I.. -c -o linux_tap.o linux_tap.c
gcc -g -W -Wall -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0 -fPIC -I.. -c -o radiotap/radiotap-parser.o radiotap/radiotap-parser.c
gcc -g -W -Wall -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0 -fPIC -I.. -c -o common.o common.c
ar cru libosdep.a osdep.o network.o linux.o linux_tap.o radiotap/radiotap-parser.o common.o
ranlib libosdep.a
touch .os.Linux
make[3]: Leaving directory `/home/mario/Downloads/aircrack-ng-1.1/src/osdep'
make[2]: Leaving directory `/home/mario/Downloads/aircrack-ng-1.1/src/osdep'
gcc -g -W -Wall -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0 -Iinclude -c -o aircrack-ng.o aircrack-ng.c
aircrack-ng.c: In function ‘clean_exit’:
aircrack-ng.c:235:18: warning: variable ‘ap_prv’ set but not used [-Wunused-but-set-variable]
aircrack-ng.c: In function ‘check_thread’:
aircrack-ng.c:2223:20: warning: variable ‘k’ set but not used [-Wunused-but-set-variable]
aircrack-ng.c: In function ‘do_wep_crack1’:
aircrack-ng.c:3268:34: warning: variable ‘askchange’ set but not used [-Wunused-but-set-variable]
aircrack-ng.c: In function ‘crack_wpa_thread’:
aircrack-ng.c:3852:17: warning: variable ‘slen’ set but not used [-Wunused-but-set-variable]
aircrack-ng.c:3850:6: warning: variable ‘thread’ set but not used [-Wunused-but-set-variable]
aircrack-ng.c: In function ‘do_wep_crack2’:
aircrack-ng.c:3596:16: warning: array subscript is below array bounds [-Warray-bounds]
aircrack-ng.c: In function ‘do_wpa_crack’:
aircrack-ng.c:4189:8: warning: array subscript is below array bounds [-Warray-bounds]
gcc -g -W -Wall -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0 -Iinclude -c -o crypto.o crypto.c
crypto.c: In function ‘calc_tkip_mic_key’:
crypto.c:826:12: warning: variable ‘koffset’ set but not used [-Wunused-but-set-variable]
gcc -g -W -Wall -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0 -Iinclude -c -o common.o common.c
gcc -g -W -Wall -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0 -Iinclude -c -o uniqueiv.o uniqueiv.c
gcc -g -W -Wall -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0 -Iinclude -c -o aircrack-ptw-lib.o aircrack-ptw-lib.c
gcc -g -W -Wall -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0 -Iinclude aircrack-ng.o crypto.o common.o uniqueiv.o aircrack-ptw-lib.o sha1-sse2.S -o aircrack-ng -lpthread -lssl -lcrypto
gcc -g -W -Wall -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0 -Iinclude -c -o airdecap-ng.o airdecap-ng.c
gcc -g -W -Wall -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0 -Iinclude airdecap-ng.o crypto.o common.o -o airdecap-ng -lssl -lcrypto
gcc -g -W -Wall -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0 -Iinclude -c -o packetforge-ng.o packetforge-ng.c
packetforge-ng.c: In function ‘capture_ask_packet’:
packetforge-ng.c:168:20: warning: variable ‘tv’ set but not used [-Wunused-but-set-variable]
gcc -g -W -Wall -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0 -Iinclude packetforge-ng.o common.o crypto.o -o packetforge-ng -lssl -lcrypto
gcc -g -W -Wall -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0 -Iinclude -c -o ivstools.o ivstools.c
ivstools.c: In function ‘merge’:
ivstools.c:132:15: warning: variable ‘unused’ set but not used [-Wunused-but-set-variable]
ivstools.c: In function ‘dump_add_packet’:
ivstools.c:220:18: warning: variable ‘seq’ set but not used [-Wunused-but-set-variable]
ivstools.c: In function ‘main’:
ivstools.c:770:12: warning: variable ‘unused’ set but not used [-Wunused-but-set-variable]
gcc -g -W -Wall -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0 -Iinclude ivstools.o common.o crypto.o uniqueiv.o -o ivstools -lssl -lcrypto
gcc -g -W -Wall -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0 -Iinclude -c -o kstats.o kstats.c
gcc -g -W -Wall -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0 -Iinclude kstats.o -o kstats
gcc -g -W -Wall -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0 -Iinclude -c -o makeivs-ng.o makeivs-ng.c
gcc -g -W -Wall -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0 -Iinclude makeivs-ng.o common.o uniqueiv.o -o makeivs-ng
gcc -g -W -Wall -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0 -Iinclude -c -o airdecloak-ng.o airdecloak-ng.c
airdecloak-ng.c: In function ‘read_packets’:
airdecloak-ng.c:335:6: warning: variable ‘i’ set but not used [-Wunused-but-set-variable]
gcc -g -W -Wall -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0 -Iinclude airdecloak-ng.o common.o osdep/radiotap/radiotap-parser.o -o airdecloak-ng
gcc -g -W -Wall -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0 -Iinclude -c -o aireplay-ng.o aireplay-ng.c
aireplay-ng.c: In function ‘read_sleep’:
aireplay-ng.c:503:9: warning: variable ‘caplen’ set but not used [-Wunused-but-set-variable]
aireplay-ng.c: In function ‘filter_packet’:
aireplay-ng.c:532:37: warning: variable ‘qos’ set but not used [-Wunused-but-set-variable]
aireplay-ng.c: In function ‘do_attack_caffe_latte’:
aireplay-ng.c:2608:19: warning: variable ‘arp_off2’ set but not used [-Wunused-but-set-variable]
aireplay-ng.c: In function ‘save_prga’:
aireplay-ng.c:4084:12: warning: variable ‘unused’ set but not used [-Wunused-but-set-variable]
gcc -g -W -Wall -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0 -Iinclude aireplay-ng.o common.o crypto.o -o aireplay-ng -Losdep -losdep -lssl -lcrypto
gcc -g -W -Wall -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0 -Iinclude -c -o airodump-ng.o airodump-ng.c
airodump-ng.c: In function ‘get_ap_list_count’:
airodump-ng.c:2710:16: warning: variable ‘lt’ set but not used [-Wunused-but-set-variable]
airodump-ng.c: In function ‘get_sta_list_count’:
airodump-ng.c:2749:16: warning: variable ‘lt’ set but not used [-Wunused-but-set-variable]
airodump-ng.c: In function ‘dump_write_kismet_netxml’:
airodump-ng.c:3681:26: warning: variable ‘unused’ set but not used [-Wunused-but-set-variable]
airodump-ng.c: In function ‘gps_tracker’:
airodump-ng.c:4218:9: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]
airodump-ng.c:4214:10: warning: variable ‘unused’ set but not used [-Wunused-but-set-variable]
airodump-ng.c: In function ‘sighandler’:
airodump-ng.c:4296:10: warning: variable ‘unused’ set but not used [-Wunused-but-set-variable]
airodump-ng.c: In function ‘channel_hopper’:
airodump-ng.c:4432:10: warning: variable ‘unused’ set but not used [-Wunused-but-set-variable]
airodump-ng.c: In function ‘frequency_hopper’:
airodump-ng.c:4530:10: warning: variable ‘unused’ set but not used [-Wunused-but-set-variable]
airodump-ng.c: In function ‘rearrange_frequencies’:
airodump-ng.c:5120:19: warning: variable ‘last_freq’ set but not used [-Wunused-but-set-variable]
airodump-ng.c: In function ‘main’:
airodump-ng.c:5190:22: warning: variable ‘tt3’ set but not used [-Wunused-but-set-variable]
airodump-ng.c:5183:30: warning: variable ‘ap_prv’ set but not used [-Wunused-but-set-variable]
airodump-ng.c:5173:9: warning: variable ‘valid_channel’ set but not used [-Wunused-but-set-variable]
airodump-ng.c:5171:28: warning: variable ‘arptype’ set but not used [-Wunused-but-set-variable]
airodump-ng.c:5170:65: warning: variable ‘unused’ set but not used [-Wunused-but-set-variable]
airodump-ng.c:5170:30: warning: variable ‘fd_is_set’ set but not used [-Wunused-but-set-variable]
gcc -g -W -Wall -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0 -Iinclude airodump-ng.o common.o crypto.o uniqueiv.o -o airodump-ng -Losdep -losdep -lssl -lcrypto -lpthread
gcc -g -W -Wall -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0 -Iinclude -c -o airserv-ng.o airserv-ng.c
gcc -g -W -Wall -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0 -Iinclude airserv-ng.o common.o -o airserv-ng -Losdep -losdep
gcc -g -W -Wall -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0 -Iinclude -c -o airtun-ng.o airtun-ng.c
gcc -g -W -Wall -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0 -Iinclude airtun-ng.o common.o crypto.o -o airtun-ng -Losdep -losdep -lssl -lcrypto
gcc -g -W -Wall -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0 -Iinclude -c -o airbase-ng.o airbase-ng.c
gcc -g -W -Wall -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0 -Iinclude airbase-ng.o common.o crypto.o -o airbase-ng -Losdep -losdep -lssl -lcrypto -lpthread
make[1]: Leaving directory `/home/mario/Downloads/aircrack-ng-1.1/src'







E usando make install




make -C src install
make[1]: Entering directory `/home/mario/Downloads/aircrack-ng-1.1/src'
make -C osdep
make[2]: Entering directory `/home/mario/Downloads/aircrack-ng-1.1/src/osdep'
Building for Linux
make[3]: Entering directory `/home/mario/Downloads/aircrack-ng-1.1/src/osdep'
make[3]: `.os.Linux' is up to date.
make[3]: Leaving directory `/home/mario/Downloads/aircrack-ng-1.1/src/osdep'
make[2]: Leaving directory `/home/mario/Downloads/aircrack-ng-1.1/src/osdep'
make -C osdep install
make[2]: Entering directory `/home/mario/Downloads/aircrack-ng-1.1/src/osdep'
Building for Linux
make[3]: Entering directory `/home/mario/Downloads/aircrack-ng-1.1/src/osdep'
make[3]: `.os.Linux' is up to date.
make[3]: Leaving directory `/home/mario/Downloads/aircrack-ng-1.1/src/osdep'
make[2]: Leaving directory `/home/mario/Downloads/aircrack-ng-1.1/src/osdep'
install -d /usr/local/bin
install -m 755 aircrack-ng airdecap-ng packetforge-ng ivstools kstats makeivs-ng airdecloak-ng /usr/local/bin
install: cannot create regular file `/usr/local/bin/aircrack-ng': Permission denied
install: cannot create regular file `/usr/local/bin/airdecap-ng': Permission denied
install: cannot create regular file `/usr/local/bin/packetforge-ng': Permission denied
install: cannot create regular file `/usr/local/bin/ivstools': Permission denied
install: cannot create regular file `/usr/local/bin/kstats': Permission denied
install: cannot create regular file `/usr/local/bin/makeivs-ng': Permission denied
install: cannot create regular file `/usr/local/bin/airdecloak-ng': Permission denied
make[1]: *** [install] Error 1
make[1]: Leaving directory `/home/mario/Downloads/aircrack-ng-1.1/src'
make: *** [install] Error 2



4. Re: Problemas na Instalação. [RESOLVIDO]

Ricardo Fabiano Silva
madrugada

(usa Gentoo)

Enviado em 12/01/2013 - 01:37h

O "make install" deve ser executado como root, ou então "sudo make install"






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts