Rede wireless: autenticação em uma rede WPA

As redes sem fio (wireless) já não podem ser mais consideradas inseguras como a alguns meses atrás, o padrão de segurança antes utilizado (WEP) tinha suas vulnerabilidades, com isso foi criado um novo padrão de segurança chamado WPA, que faz uma autenticação dinâmica aumentando a segurança da rede. Neste artigo vou explicar como configurar o Linux para autenticar numa rede WPA.

[ Hits: 81.288 ]

Por: Bruno Cesar Brito SantAnna em 14/02/2005


Introdução



Comecei a estudar redes sem fio a pouco tempo, logo percebi que podem representar um perigo aos seus dados se forem mal configuradas, qualquer pessoa que tenha alcance ao sinal pode entrar na rede sem maiores dificuldades, o padrão de autenticação antigo chamado de WEP (Wired Equivalent Privacy) tinha diversas vulnerabilidades e poderia ser quebrado em algumas semanas utilizando ferramentas disponíveis na própria internet.

Para evitar tais vulnerabilidades o grupo de engenheiros criadores do padrão IEEE 802.11 (http://www.ieee802.org/11/) em conjunto com a WI-Fi Alliance (http://www.wi-fi.org/) tiveram que criar um novo sistema de autenticação chamado de WPA (Wi-fi Protected Access). Este sistema consiste em uma troca de chaves dinâmica, o que dificulta muito o acesso à sua rede. Para mais informações:
Uma outra informação importante, se você planeja adquirir um equipamento de rede Wi-fi, tenha certeza que este tenha suporte ao padrão WPA, existe uma listagem completa neste site:
O ambiente de testes:
  • Ponto de acesso da marca LG modelo LW2205AP, tem suporte a WPA e configuração da mesma via browser;
  • Laptop com a distribuição Debian SID;
  • Cartão PCMCIA com chipset Realtek 8180.

OBS: Apesar de ter utilizado a distribuição Debian, acredito que com as outras distribuições o processo será idêntico, pois os arquivos utilizados são compilados diretamente do código fonte.

    Próxima página

Páginas do artigo
   1. Introdução
   2. Download e compilação
   3. Configuração
   4. Iniciando o serviço
   5. Conclusão
Outros artigos deste autor

Ferramenta samba-vscan: antivírus nos compartilhamentos do Samba

Monitorando o servidor Jabber 2 com o Bandersnatch

Utilizando certificados e-CNPJ e e-CPF no Linux

Leitura recomendada

PHLAK :: [P]rofessional [H]acker's [L]inux [A]ssault [K]it

Protegendo seu Linux de ataques de brute force via ssh

Tornando seu Apache mais seguro com o ModSecurity

From Deploy WAR (Tomcat) to Shell (FreeBSD)

Desafio: Análise Forense Computacional - Forense em Tráfego de Rede [Resolvido]

  
Comentários
[1] Comentário enviado por D3v1L em 14/02/2005 - 09:06h

Uma outra nota: Fiz isso em uma máquina Fedora Core 2 esse final de semana, autenticou na rede certinho mas por incrível que pareça não conseguia pegar IP via dhcp, o que eu fiz pra funcionar foi atualizar o dhclient para a versão 3.0.1-11 do fedora 3, ai rodou tudo beleza. =)

[2] Comentário enviado por irapuan_p em 17/02/2005 - 10:54h

Ola Bruno.

Esse artigo seu me ajudou bastante. So para conhecimento de todos, utilizei o que voce passou no artigo em uma das etapas do desenvolvimento de um embedded system Linux. O Hardware tem duas interfaces Wi-Fi ( Atheros ) e dua Eth e um processador Geode SC1100.

Abracos a todos

[3] Comentário enviado por dorival em 21/02/2005 - 18:31h

Cara, parabéns pelo artigo, ele está muito bom.

Abraços.

Brasília, 22 de fevereiro de 2005.
Dorival.

[4] Comentário enviado por rogerbu em 03/06/2005 - 11:19h

Esse artigo está muito bom mesmo (objetivo)!

Só para contribuir com relação a segurança.

Quando instala o WPA Suplicant ele instala um aplicativo chamado wpa_passphrase, que serve para gerar um arquivo mais codificado da senha e da configuração.
Para usa-lo é simples apenas passe o nome da rede e a senha para ele gerar a saida no próprio terminal mesmo.

Rio Claro, 03 de Junho de 2006.
Rogerio.

[5] Comentário enviado por mnfranca em 08/01/2006 - 13:15h

Olá! Quando eu executo o comando "wpa_supplicant -Dndiswrapper -iwlan0 -c/etc/wpa_supplicant.conf -d", o seguinte erro aparece: "Failed to initialize EAPOL state machines.". O que pode estar acontecendo?

Campo Grande - MS
Marcelo.

[6] Comentário enviado por D3v1L em 09/01/2006 - 09:49h

Olá Marcelo,

Procurando no Google rapidamente encontrei este site: http://gentoo-wiki.com/HOWTO_Wireless_Configuration_and_Startup

Lá vi que você deve comentar todas as linhas com algo relacionado à openssl no seu arquivo de configuração (/etc/wpa_supplicant.conf)

Acredito que vai funcionar.

Até mais,

Bruno Sant'Anna

[7] Comentário enviado por mfiladelfo em 25/06/2006 - 17:47h

Olá: ao tentar conectar-se ao AP, recebo a seguinte mensagem:

# wpa_supplicant -Dipw -ieth1 -c/etc/wpa_supplicant.conf -d
Initializing interface 'eth1' conf '/etc/wpa_supplicant.conf' driver 'ipw' ctrl_interface 'N/A'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
Priority group 3
id=0 ssid='andromeda'
Initializing interface (2) 'eth1'
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
wpa_driver_ipw_init is called
SIOCGIWRANGE: WE(compiled)=19 WE(source)=18 enc_capa=0xf
capabilities: key_mgmt 0xf enc 0xf
Own MAC address: 00:15:00:3a:39:7c
wpa_driver_ipw_set_wpa: enabled=1
ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
wpa_driver_ipw_set_key: alg=none key_idx=0 set_tx=0 seq_len=0 key_len=0
ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
Failed to set encryption.
wpa_driver_ipw_set_key: alg=none key_idx=1 set_tx=0 seq_len=0 key_len=0
ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
Failed to set encryption.
wpa_driver_ipw_set_key: alg=none key_idx=2 set_tx=0 seq_len=0 key_len=0
ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
Failed to set encryption.
wpa_driver_ipw_set_key: alg=none key_idx=3 set_tx=0 seq_len=0 key_len=0
ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
Failed to set encryption.
wpa_driver_ipw_set_countermeasures: enabled=0
ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
wpa_driver_ipw_set_drop_unencrypted: enabled=1
ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
Setting scan request: 0 sec 100000 usec
Added interface eth1
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' added
RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' added
State: DISCONNECTED -> SCANNING
Starting AP scan (broadcast SSID)
Scan timeout - try to get results
Received 225 bytes of scan results (1 BSSes)
Scan results: 1
Selecting BSS from priority group 3
0: 00:04:e2:b8:1c:2e ssid='Andromeda' wpa_ie_len=26 rsn_ie_len=0 caps=0x11
skip - SSID mismatch
No suitable AP found.
Setting scan request: 5 sec 0 usec

O que isto significa e como pode ser resolvido? Abraços e obrigado.

[8] Comentário enviado por D3v1L em 26/06/2006 - 08:01h

... tudo indica que é um problema na compilação do driver a ser utilizado com o wpa_supplicant, (não o driver da placa em si, mas os drivers que você insere no .configure do wpa_supplicant).
Uma coisa importante também, o driver da placa de rede (o módulo) deve lhe dar suporte à WPA, você pode ver isso com "dmesg | grep WPA".

Essa mensagem:
wpa_driver_ipw_set_key: alg=none key_idx=1 set_tx=0 seq_len=0 key_len=0
ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
é tipica de programação em drivers.

Abraços e qualquer coisa dá um toque

Bruno Sant'Anna

[9] Comentário enviado por jelas em 20/06/2007 - 08:36h

Boas
Após seguir o seu artigo deu-me o seguinte erro
Initializing interface 'eth1' conf '/etc/wpa_supplicant.conf' driver 'ipw' ctrl_interface 'N/A' bridge 'N/A'
Unsupported driver 'ipw'.

Failed to add interface eth1
Segmentation fault

Não entendo, se calhar não estou a chamar bem a driver!
Espero que me possa ajudar.

ps: A minha placa intel/pro wireless 2200 e funciona!lol

cmps

[10] Comentário enviado por d3v1l em 20/06/2007 - 09:04h

Olá.
Quando você compilou seu wpa_supplicant, você incluiu a seguinte linha no arquivo .config?
CONFIG_DRIVER_IPW=y

Se não, por favor insira esta linha e compile novamente..

################################################
UPDATE NO ARTIGO:

Nas versões atuais do ndiswrapper o driver a ser utilizado na linha de comando do wpa_supplicant é o wext (wireless extensions).

A linha do wpa_supplicant fica assim:
wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf

Atenciosamente

Bruno Sant'Anna
bruno-santanna(ARROBA)uol(PONTO)com(PONTO)br

[11] Comentário enviado por jelas em 20/06/2007 - 14:55h

Boas
Eu foi verificar, e essa linha está inserida!


cmps

[12] Comentário enviado por jelas em 20/06/2007 - 17:43h

Boas bruno!!
Depois de ler o teu update no artigo resolvi experimentar, e funcionou assim
wpa_supplicant -Dwext -ieth1 -c/etc/wpa_supplicant.conf.

Valeu muito bom artigo!

cpms

[13] Comentário enviado por M4iir1c10 em 05/03/2008 - 08:05h

Ola Bruno, eu uso o Sabayon Linux e nao sei qual e o drive que estou usando, quando eu coloco o cartao da dlink ele reconhece automaticamente, eu estava tentando usar o comando:
wpa_supplicant -iwlan0 -c/etc/wpa_supplicant.conf

mais nao deu certo, ao ler seu artigo vi que tenho que colocar qual drive estou usando, agora vem minha duvida:

Como que eu posso saber qual e o drive que estou usando se e madwifi ou ndiswrapper ou outro qualquer?

[14] Comentário enviado por hugorafa em 08/10/2008 - 01:42h

pessoal, já revirei e me virei cos jeitos que pude, não consigo conectar de jeito algum em redes com criptografia WPA2PKS, sem chances, uso o mandriva 2008 como gnome 2.2, e minha placa de wi-fi é uma realtek RT8139, (não é esse modelo apresentao no linux, se não me engano é uma rt2561), já instalei os pacotes de wpa_supplicant nele e alguns para dhcp, eu consigo visualizar a rede, mas ela apresenta sem sinal (0%)
no meu console esta assim

[[email protected] vitor]# iwconfig wlan0 essid NETGEAR
[[email protected] vitor]# iwconfig wlan0 mode managed
[[email protected] vitor]# iwpriv wlan0 set Channel=11
[[email protected] vitor]# iwpriv wlan0 set AuthMode=WPA2PSK
[[email protected] vitor]# iwpriv wlan0 set WPA2PSK=*****************
Interface doesn't accept private ioctl...
set (8BE2): Invalid argument

tenho certeza que podem me ajudar, valeu turma

[15] Comentário enviado por marrichi em 04/12/2008 - 11:01h

bom tutorial mais pena que aki nao funcionou =|

[16] Comentário enviado por xunildere em 16/03/2010 - 20:40h

Olá, Acho que vocês têm mais paciência que eu. Desculpem quem defende o linux , mas um leigo, após instalar o linux, se deparar com um erro desse ao tentar instalar uma placa de rede é um chute.

tls_openssl.c:25:25: warning: openssl/ssl.h: Arquivo ou diretório inexistente
tls_openssl.c:26:25: warning: openssl/err.h: Arquivo ou diretório inexistente
tls_openssl.c:27:28: warning: openssl/pkcs12.h: Arquivo ou diretório inexistente
tls_openssl.c:28:28: warning: openssl/x509v3.h: Arquivo ou diretório inexistente
tls_openssl.c:30:28: warning: openssl/engine.h: Arquivo ou diretório inexistente
tls_openssl.c:45: error: expected specifier-qualifier-list before ‘SSL’
tls_openssl.c: In function ‘tls_show_errors’:
tls_openssl.c:78: warning: implicit declaration of function ‘ERR_error_string’
tls_openssl.c:78: warning: implicit declaration of function ‘ERR_get_error’
tls_openssl.c:78: warning: format ‘%s’ expects type ‘char *’, but argument 5 has type ‘int’
tls_openssl.c:82: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
tls_openssl.c: At top level:
tls_openssl.c:508: error: expected ‘)’ before ‘*’ token
tls_openssl.c:516: warning: type defaults to ‘int’ in declaration of ‘SSL’
tls_openssl.c:516: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
tls_openssl.c: In function ‘tls_engine_load_dynamic_generic’:
tls_openssl.c:572: error: ‘ENGINE’ undeclared (first use in this function)
tls_openssl.c:572: error: (Each undeclared identifier is reported only once
tls_openssl.c:572: error: for each function it appears in.)
tls_openssl.c:572: error: ‘engine’ undeclared (first use in this function)
tls_openssl.c:575: warning: implicit declaration of function ‘ENGINE_by_id’
tls_openssl.c:577: warning: implicit declaration of function ‘ENGINE_free’
tls_openssl.c:582: warning: implicit declaration of function ‘ERR_clear_error’
tls_openssl.c:588: warning: format ‘%s’ expects type ‘char *’, but argument 4 has type ‘int’
tls_openssl.c:595: warning: implicit declaration of function ‘ENGINE_ctrl_cmd_string’
tls_openssl.c:598: warning: format ‘%s’ expects type ‘char *’, but argument 5 has type ‘int’
tls_openssl.c:614: warning: format ‘%s’ expects type ‘char *’, but argument 4 has type ‘int’
tls_openssl.c:623: warning: format ‘%s’ expects type ‘char *’, but argument 5 has type ‘int’
tls_openssl.c:624: warning: implicit declaration of function ‘ENGINE_remove’
tls_openssl.c: In function ‘tls_init’:
tls_openssl.c:696: error: ‘SSL_CTX’ undeclared (first use in this function)
tls_openssl.c:696: error: ‘ssl’ undeclared (first use in this function)
tls_openssl.c:699: warning: implicit declaration of function ‘SSL_load_error_strings’
tls_openssl.c:700: warning: implicit declaration of function ‘SSL_library_init’
tls_openssl.c:706: warning: implicit declaration of function ‘PKCS12_PBE_add’
tls_openssl.c:711: warning: implicit declaration of function ‘SSL_CTX_new’
tls_openssl.c:711: warning: implicit declaration of function ‘TLSv1_method’
tls_openssl.c:715: warning: implicit declaration of function ‘SSL_CTX_set_info_callback’
tls_openssl.c:715: error: ‘ssl_info_cb’ undeclared (first use in this function)
tls_openssl.c:722: warning: implicit declaration of function ‘ERR_load_ENGINE_strings’
tls_openssl.c:723: warning: implicit declaration of function ‘ENGINE_load_dynamic’
tls_openssl.c: In function ‘tls_deinit’:
tls_openssl.c:740: error: ‘SSL_CTX’ undeclared (first use in this function)
tls_openssl.c:740: error: ‘ssl’ undeclared (first use in this function)
tls_openssl.c:741: warning: implicit declaration of function ‘SSL_CTX_free’
tls_openssl.c:746: warning: implicit declaration of function ‘ENGINE_cleanup’
tls_openssl.c:748: warning: implicit declaration of function ‘ERR_free_strings’
tls_openssl.c:749: warning: implicit declaration of function ‘EVP_cleanup’
tls_openssl.c: In function ‘tls_engine_init’:
tls_openssl.c:773: error: ‘struct tls_connection’ has no member named ‘engine’
tls_openssl.c:774: error: ‘struct tls_connection’ has no member named ‘engine’
tls_openssl.c:776: warning: format ‘%s’ expects type ‘char *’, but argument 4 has type ‘int’
tls_openssl.c:779: warning: implicit declaration of function ‘ENGINE_init’
tls_openssl.c:779: error: ‘struct tls_connection’ has no member named ‘engine’
tls_openssl.c:782: warning: format ‘%s’ expects type ‘char *’, but argument 4 has type ‘int’
tls_openssl.c:787: error: ‘struct tls_connection’ has no member named ‘engine’
tls_openssl.c:789: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
tls_openssl.c:792: error: ‘struct tls_connection’ has no member named ‘private_key’
tls_openssl.c:792: warning: implicit declaration of function ‘ENGINE_load_private_key’
tls_openssl.c:792: error: ‘struct tls_connection’ has no member named ‘engine’
tls_openssl.c:794: error: ‘struct tls_connection’ has no member named ‘private_key’
tls_openssl.c:797: warning: format ‘%s’ expects type ‘char *’, but argument 4 has type ‘int’
tls_openssl.c:804: error: ‘struct tls_connection’ has no member named ‘engine’
tls_openssl.c:805: error: ‘struct tls_connection’ has no member named ‘engine’
tls_openssl.c:806: error: ‘struct tls_connection’ has no member named ‘engine’
tls_openssl.c:809: error: ‘struct tls_connection’ has no member named ‘private_key’
tls_openssl.c:810: warning: implicit declaration of function ‘EVP_PKEY_free’
tls_openssl.c:810: error: ‘struct tls_connection’ has no member named ‘private_key’
tls_openssl.c:811: error: ‘struct tls_connection’ has no member named ‘private_key’
tls_openssl.c: In function ‘tls_engine_deinit’:
tls_openssl.c:825: error: ‘struct tls_connection’ has no member named ‘private_key’
tls_openssl.c:826: error: ‘struct tls_connection’ has no member named ‘private_key’
tls_openssl.c:827: error: ‘struct tls_connection’ has no member named ‘private_key’
tls_openssl.c:829: error: ‘struct tls_connection’ has no member named ‘engine’
tls_openssl.c:830: warning: implicit declaration of function ‘ENGINE_finish’
tls_openssl.c:830: error: ‘struct tls_connection’ has no member named ‘engine’
tls_openssl.c:831: error: ‘struct tls_connection’ has no member named ‘engine’
tls_openssl.c: In function ‘tls_get_errors’:
tls_openssl.c:844: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
tls_openssl.c: In function ‘tls_connection_init’:
tls_openssl.c:853: error: ‘SSL_CTX’ undeclared (first use in this function)
tls_openssl.c:853: error: ‘ssl’ undeclared (first use in this function)
tls_openssl.c:860: error: ‘struct tls_connection’ has no member named ‘ssl’
tls_openssl.c:860: warning: implicit declaration of function ‘SSL_new’
tls_openssl.c:861: error: ‘struct tls_connection’ has no member named ‘ssl’
tls_openssl.c:868: warning: implicit declaration of function ‘SSL_set_app_data’
tls_openssl.c:868: error: ‘struct tls_connection’ has no member named ‘ssl’
tls_openssl.c:869: warning: implicit declaration of function ‘SSL_set_options’
tls_openssl.c:869: error: ‘struct tls_connection’ has no member named ‘ssl’
tls_openssl.c:870: error: ‘SSL_OP_NO_SSLv2’ undeclared (first use in this function)
tls_openssl.c:870: error: ‘SSL_OP_NO_SSLv3’ undeclared (first use in this function)
tls_openssl.c:871: error: ‘SSL_OP_SINGLE_DH_USE’ undeclared (first use in this function)
tls_openssl.c:873: error: ‘struct tls_connection’ has no member named ‘ssl_in’
tls_openssl.c:873: warning: implicit declaration of function ‘BIO_new’
tls_openssl.c:873: warning: implicit declaration of function ‘BIO_s_mem’
tls_openssl.c:874: error: ‘struct tls_connection’ has no member named ‘ssl_in’
tls_openssl.c:877: warning: implicit declaration of function ‘SSL_free’
tls_openssl.c:877: error: ‘struct tls_connection’ has no member named ‘ssl’
tls_openssl.c:882: error: ‘struct tls_connection’ has no member named ‘ssl_out’
tls_openssl.c:883: error: ‘struct tls_connection’ has no member named ‘ssl_out’
tls_openssl.c:886: error: ‘struct tls_connection’ has no member named ‘ssl’
tls_openssl.c:887: warning: implicit declaration of function ‘BIO_free’
tls_openssl.c:887: error: ‘struct tls_connection’ has no member named ‘ssl_in’
tls_openssl.c:892: warning: implicit declaration of function ‘SSL_set_bio’
tls_openssl.c:892: error: ‘struct tls_connection’ has no member named ‘ssl’
tls_openssl.c:892: error: ‘struct tls_connection’ has no member named ‘ssl_in’
tls_openssl.c:892: error: ‘struct tls_connection’ has no member named ‘ssl_out’
tls_openssl.c: In function ‘tls_connection_deinit’:
tls_openssl.c:902: error: ‘struct tls_connection’ has no member named ‘pre_shared_secret’
tls_openssl.c:903: error: ‘struct tls_connection’ has no member named ‘ssl’
tls_openssl.c:905: error: ‘struct tls_connection’ has no member named ‘subject_match’
tls_openssl.c:906: error: ‘struct tls_connection’ has no member named ‘altsubject_match’
tls_openssl.c: In function ‘tls_connection_established’:
tls_openssl.c:913: warning: implicit declaration of function ‘SSL_is_init_finished’
tls_openssl.c:913: error: ‘struct tls_connection’ has no member named ‘ssl’
tls_openssl.c: In function ‘tls_connection_shutdown’:
tls_openssl.c:925: warning: implicit declaration of function ‘SSL_set_quiet_shutdown’
tls_openssl.c:925: error: ‘struct tls_connection’ has no member named ‘ssl’
tls_openssl.c:926: warning: implicit declaration of function ‘SSL_shutdown’
tls_openssl.c:926: error: ‘struct tls_connection’ has no member named ‘ssl’
tls_openssl.c: At top level:
tls_openssl.c:931: error: expected ‘)’ before ‘*’ token
tls_openssl.c:980: error: expected declaration specifiers or ‘...’ before ‘X509_STORE_CTX’
tls_openssl.c: In function ‘tls_verify_cb’:
tls_openssl.c:983: error: ‘X509’ undeclared (first use in this function)
tls_openssl.c:983: error: ‘err_cert’ undeclared (first use in this function)
tls_openssl.c:985: error: ‘SSL’ undeclared (first use in this function)
tls_openssl.c:985: error: ‘ssl’ undeclared (first use in this function)
tls_openssl.c:989: warning: implicit declaration of function ‘X509_STORE_CTX_get_current_cert’
tls_openssl.c:989: error: ‘x509_ctx’ undeclared (first use in this function)
tls_openssl.c:990: warning: implicit declaration of function ‘X509_STORE_CTX_get_error’
tls_openssl.c:991: warning: implicit declaration of function ‘X509_STORE_CTX_get_error_depth’
tls_openssl.c:992: warning: implicit declaration of function ‘X509_STORE_CTX_get_ex_data’
tls_openssl.c:993: warning: implicit declaration of function ‘SSL_get_ex_data_X509_STORE_CTX_idx’
tls_openssl.c:994: warning: implicit declaration of function ‘X509_NAME_oneline’
tls_openssl.c:994: warning: implicit declaration of function ‘X509_get_subject_name’
tls_openssl.c:996: warning: implicit declaration of function ‘SSL_get_app_data’
tls_openssl.c:996: warning: assignment makes pointer from integer without a cast
tls_openssl.c:997: error: ‘struct tls_connection’ has no member named ‘subject_match’
tls_openssl.c:998: error: ‘struct tls_connection’ has no member named ‘altsubject_match’
tls_openssl.c:1003: warning: implicit declaration of function ‘X509_verify_cert_error_string’
tls_openssl.c:1003: warning: format ‘%s’ expects type ‘char *’, but argument 4 has type ‘int’
tls_openssl.c:1008: warning: format ‘%s’ expects type ‘char *’, but argument 5 has type ‘int’
tls_openssl.c:1014: warning: implicit declaration of function ‘tls_match_altsubject’
tls_openssl.c: In function ‘tls_load_ca_der’:
tls_openssl.c:1028: error: ‘SSL_CTX’ undeclared (first use in this function)
tls_openssl.c:1028: error: ‘ssl_ctx’ undeclared (first use in this function)
tls_openssl.c:1029: error: ‘X509_LOOKUP’ undeclared (first use in this function)
tls_openssl.c:1029: error: ‘lookup’ undeclared (first use in this function)
tls_openssl.c:1032: warning: implicit declaration of function ‘X509_STORE_add_lookup’
tls_openssl.c:1033: warning: implicit declaration of function ‘X509_LOOKUP_file’
tls_openssl.c:1040: warning: implicit declaration of function ‘X509_LOOKUP_load_file’
tls_openssl.c:1040: error: ‘X509_FILETYPE_ASN1’ undeclared (first use in this function)
tls_openssl.c:1041: warning: implicit declaration of function ‘ERR_peek_error’
tls_openssl.c:1044: warning: implicit declaration of function ‘ERR_GET_LIB’
tls_openssl.c:1044: error: ‘ERR_LIB_X509’ undeclared (first use in this function)
tls_openssl.c:1045: warning: implicit declaration of function ‘ERR_GET_REASON’
tls_openssl.c:1045: error: ‘X509_R_CERT_ALREADY_IN_HASH_TABLE’ undeclared (first use in this function)
tls_openssl.c: In function ‘tls_connection_ca_cert’:
tls_openssl.c:1062: error: ‘SSL_CTX’ undeclared (first use in this function)
tls_openssl.c:1062: error: ‘ssl_ctx’ undeclared (first use in this function)
tls_openssl.c:1065: error: ‘X509’ undeclared (first use in this function)
tls_openssl.c:1065: error: ‘cert’ undeclared (first use in this function)
tls_openssl.c:1065: warning: implicit declaration of function ‘d2i_X509’
tls_openssl.c:1073: warning: implicit declaration of function ‘X509_STORE_add_cert’
tls_openssl.c:1077: warning: implicit declaration of function ‘X509_free’
tls_openssl.c:1083: warning: implicit declaration of function ‘SSL_set_verify’
tls_openssl.c:1083: error: ‘struct tls_connection’ has no member named ‘ssl’
tls_openssl.c:1083: error: ‘SSL_VERIFY_PEER’ undeclared (first use in this function)
tls_openssl.c:1099: warning: implicit declaration of function ‘SSL_CTX_load_verify_locations’
tls_openssl.c:1115: error: ‘struct tls_connection’ has no member named ‘ssl’
tls_openssl.c:1124: error: ‘struct tls_connection’ has no member named ‘ssl’
tls_openssl.c:1124: error: ‘SSL_VERIFY_NONE’ undeclared (first use in this function)
tls_openssl.c: In function ‘tls_global_ca_cert’:
tls_openssl.c:1133: error: ‘SSL_CTX’ undeclared (first use in this function)
tls_openssl.c:1133: error: ‘ssl_ctx’ undeclared (first use in this function)
tls_openssl.c:1147: warning: implicit declaration of function ‘SSL_CTX_set_client_CA_list’
tls_openssl.c:1148: warning: implicit declaration of function ‘SSL_load_client_CA_file’
tls_openssl.c: In function ‘tls_global_set_verify’:
tls_openssl.c:1161: error: ‘X509_STORE’ undeclared (first use in this function)
tls_openssl.c:1161: error: ‘cs’ undeclared (first use in this function)
tls_openssl.c:1161: warning: implicit declaration of function ‘SSL_CTX_get_cert_store’
tls_openssl.c:1168: error: ‘X509_V_FLAG_CRL_CHECK’ undeclared (first use in this function)
tls_openssl.c:1170: error: ‘X509_V_FLAG_CRL_CHECK_ALL’ undeclared (first use in this function)
tls_openssl.c:1171: warning: implicit declaration of function ‘X509_STORE_set_flags’
tls_openssl.c: In function ‘tls_connection_set_subject_match’:
tls_openssl.c:1182: error: ‘struct tls_connection’ has no member named ‘subject_match’
tls_openssl.c:1183: error: ‘struct tls_connection’ has no member named ‘subject_match’
tls_openssl.c:1185: error: ‘struct tls_connection’ has no member named ‘subject_match’
tls_openssl.c:1186: error: ‘struct tls_connection’ has no member named ‘subject_match’
tls_openssl.c:1190: error: ‘struct tls_connection’ has no member named ‘altsubject_match’
tls_openssl.c:1191: error: ‘struct tls_connection’ has no member named ‘altsubject_match’
tls_openssl.c:1193: error: ‘struct tls_connection’ has no member named ‘altsubject_match’
tls_openssl.c:1194: error: ‘struct tls_connection’ has no member named ‘altsubject_match’
tls_openssl.c: In function ‘tls_connection_set_verify’:
tls_openssl.c:1209: error: ‘struct tls_connection’ has no member named ‘ssl’
tls_openssl.c:1209: error: ‘SSL_VERIFY_PEER’ undeclared (first use in this function)
tls_openssl.c:1210: error: ‘SSL_VERIFY_FAIL_IF_NO_PEER_CERT’ undeclared (first use in this function)
tls_openssl.c:1211: error: ‘SSL_VERIFY_CLIENT_ONCE’ undeclared (first use in this function)
tls_openssl.c:1213: error: ‘struct tls_connection’ has no member named ‘ssl’
tls_openssl.c:1213: error: ‘SSL_VERIFY_NONE’ undeclared (first use in this function)
tls_openssl.c:1216: warning: implicit declaration of function ‘SSL_set_accept_state’
tls_openssl.c:1216: error: ‘struct tls_connection’ has no member named ‘ssl’
tls_openssl.c: In function ‘tls_connection_client_cert’:
tls_openssl.c:1232: warning: implicit declaration of function ‘SSL_use_certificate_ASN1’
tls_openssl.c:1232: error: ‘struct tls_connection’ has no member named ‘ssl’
tls_openssl.c:1246: warning: implicit declaration of function ‘SSL_use_certificate_file’
tls_openssl.c:1246: error: ‘struct tls_connection’ has no member named ‘ssl’
tls_openssl.c:1247: error: ‘SSL_FILETYPE_ASN1’ undeclared (first use in this function)
tls_openssl.c:1256: error: ‘struct tls_connection’ has no member named ‘ssl’
tls_openssl.c:1257: error: ‘SSL_FILETYPE_PEM’ undeclared (first use in this function)
tls_openssl.c: In function ‘tls_global_client_cert’:
tls_openssl.c:1276: error: ‘SSL_CTX’ undeclared (first use in this function)
tls_openssl.c:1276: error: ‘ssl_ctx’ undeclared (first use in this function)
tls_openssl.c:1280: warning: implicit declaration of function ‘SSL_CTX_use_certificate_file’
tls_openssl.c:1281: error: ‘SSL_FILETYPE_ASN1’ undeclared (first use in this function)
tls_openssl.c:1283: error: ‘SSL_FILETYPE_PEM’ undeclared (first use in this function)
tls_openssl.c: At top level:
tls_openssl.c:1310: error: expected ‘)’ before ‘*’ token
tls_openssl.c:1385: error: expected ‘)’ before ‘*’ token
tls_openssl.c:1415: error: expected ‘)’ before ‘*’ token
tls_openssl.c: In function ‘tls_connection_engine_private_key’:
tls_openssl.c:1442: warning: implicit declaration of function ‘SSL_use_PrivateKey’
tls_openssl.c:1442: error: ‘struct tls_connection’ has no member named ‘ssl’
tls_openssl.c:1442: error: ‘struct tls_connection’ has no member named ‘private_key’
tls_openssl.c:1447: warning: implicit declaration of function ‘SSL_check_private_key’
tls_openssl.c:1447: error: ‘struct tls_connection’ has no member named ‘ssl’
tls_openssl.c: In function ‘tls_connection_private_key’:
tls_openssl.c:1468: error: ‘SSL_CTX’ undeclared (first use in this function)
tls_openssl.c:1468: error: ‘ssl_ctx’ undeclared (first use in this function)
tls_openssl.c:1482: warning: implicit declaration of function ‘SSL_CTX_set_default_passwd_cb’
tls_openssl.c:1483: warning: implicit declaration of function ‘SSL_CTX_set_default_passwd_cb_userdata’
tls_openssl.c:1487: warning: implicit declaration of function ‘SSL_use_PrivateKey_ASN1’
tls_openssl.c:1487: error: ‘EVP_PKEY_RSA’ undeclared (first use in this function)
tls_openssl.c:1487: error: ‘struct tls_connection’ has no member named ‘ssl’
tls_openssl.c:1500: error: ‘EVP_PKEY_DSA’ undeclared (first use in this function)
tls_openssl.c:1500: error: ‘struct tls_connection’ has no member named ‘ssl’
tls_openssl.c:1513: warning: implicit declaration of function ‘SSL_use_RSAPrivateKey_ASN1’
tls_openssl.c:1513: error: ‘struct tls_connection’ has no member named ‘ssl’
tls_openssl.c:1525: warning: implicit declaration of function ‘tls_read_pkcs12_blob’
tls_openssl.c:1525: error: ‘struct tls_connection’ has no member named ‘ssl’
tls_openssl.c:1538: warning: implicit declaration of function ‘SSL_use_PrivateKey_file’
tls_openssl.c:1538: error: ‘struct tls_connection’ has no member named ‘ssl’
tls_openssl.c:1539: error: ‘SSL_FILETYPE_ASN1’ undeclared (first use in this function)
tls_openssl.c:1550: error: ‘struct tls_connection’ has no member named ‘ssl’
tls_openssl.c:1551: error: ‘SSL_FILETYPE_PEM’ undeclared (first use in this function)
tls_openssl.c:1566: warning: implicit declaration of function ‘tls_read_pkcs12’
tls_openssl.c:1566: error: ‘struct tls_connection’ has no member named ‘ssl’
tls_openssl.c:1574: warning: implicit declaration of function ‘tls_cryptoapi_cert’
tls_openssl.c:1574: error: ‘struct tls_connection’ has no member named ‘ssl’
tls_openssl.c:1594: error: ‘struct tls_connection’ has no member named ‘ssl’
tls_openssl.c: In function ‘tls_global_private_key’:
tls_openssl.c:1608: error: ‘SSL_CTX’ undeclared (first use in this function)
tls_openssl.c:1608: error: ‘ssl_ctx’ undeclared (first use in this function)
tls_openssl.c:1625: warning: implicit declaration of function ‘SSL_CTX_use_PrivateKey_file’
tls_openssl.c:1626: error: ‘SSL_FILETYPE_ASN1’ undeclared (first use in this function)
tls_openssl.c:1628: error: ‘SSL_FILETYPE_PEM’ undeclared (first use in this function)
tls_openssl.c:1641: warning: implicit declaration of function ‘SSL_CTX_check_private_key’
tls_openssl.c: In function ‘tls_connection_dh’:
tls_openssl.c:1661: error: ‘DH’ undeclared (first use in this function)
tls_openssl.c:1661: error: ‘dh’ undeclared (first use in this function)
tls_openssl.c:1662: error: ‘BIO’ undeclared (first use in this function)
tls_openssl.c:1662: error: ‘bio’ undeclared (first use in this function)
tls_openssl.c:1670: warning: implicit declaration of function ‘BIO_new_file’
tls_openssl.c:1673: warning: format ‘%s’ expects type ‘char *’, but argument 4 has type ‘int’
tls_openssl.c:1676: warning: implicit declaration of function ‘PEM_read_bio_DHparams’
tls_openssl.c:1680: error: ‘DSA’ undeclared (first use in this function)
tls_openssl.c:1680: error: ‘dsa’ undeclared (first use in this function)
tls_openssl.c:1683: warning: format ‘%s’ expects type ‘char *’, but argument 4 has type ‘int’
tls_openssl.c:1687: warning: implicit declaration of function ‘PEM_read_bio_DSAparams’
tls_openssl.c:1692: warning: format ‘%s’ expects type ‘char *’, but argument 4 has type ‘int’
tls_openssl.c:1697: warning: implicit declaration of function ‘DSA_dup_DH’
tls_openssl.c:1698: warning: implicit declaration of function ‘DSA_free’
tls_openssl.c:1713: warning: implicit declaration of function ‘SSL_set_tmp_dh’
tls_openssl.c:1713: error: ‘struct tls_connection’ has no member named ‘ssl’
tls_openssl.c:1716: warning: format ‘%s’ expects type ‘char *’, but argument 4 has type ‘int’
tls_openssl.c:1717: warning: implicit declaration of function ‘DH_free’
tls_openssl.c: In function ‘tls_connection_get_keys’:
tls_openssl.c:1729: error: ‘SSL’ undeclared (first use in this function)
tls_openssl.c:1729: error: ‘ssl’ undeclared (first use in this function)
tls_openssl.c:1733: error: ‘struct tls_connection’ has no member named ‘ssl’
tls_openssl.c:1741: error: ‘SSL3_RANDOM_SIZE’ undeclared (first use in this function)
tls_openssl.c: In function ‘tls_connection_handshake’:
tls_openssl.c:1761: warning: implicit declaration of function ‘BIO_write’
tls_openssl.c:1761: error: ‘struct tls_connection’ has no member named ‘ssl_in’
tls_openssl.c:1768: warning: implicit declaration of function ‘SSL_connect’
tls_openssl.c:1768: error: ‘struct tls_connection’ has no member named ‘ssl’
tls_openssl.c:1770: warning: implicit declaration of function ‘SSL_get_error’
tls_openssl.c:1770: error: ‘struct tls_connection’ has no member named ‘ssl’
tls_openssl.c:1771: error: ‘SSL_ERROR_WANT_READ’ undeclared (first use in this function)
tls_openssl.c:1774: error: ‘SSL_ERROR_WANT_WRITE’ undeclared (first use in this function)
tls_openssl.c:1779: error: ‘struct tls_connection’ has no member named ‘failed’
tls_openssl.c:1784: warning: implicit declaration of function ‘BIO_ctrl_pending’
tls_openssl.c:1784: error: ‘struct tls_connection’ has no member named ‘ssl_out’
tls_openssl.c:1790: warning: implicit declaration of function ‘BIO_reset’
tls_openssl.c:1790: error: ‘struct tls_connection’ has no member named ‘ssl_out’
tls_openssl.c:1797: warning: implicit declaration of function ‘BIO_read’
tls_openssl.c:1797: error: ‘struct tls_connection’ has no member named ‘ssl_out’
tls_openssl.c:1801: error: ‘struct tls_connection’ has no member named ‘ssl_out’
tls_openssl.c: In function ‘tls_connection_server_handshake’:
tls_openssl.c:1823: error: ‘struct tls_connection’ has no member named ‘ssl_in’
tls_openssl.c:1829: warning: implicit declaration of function ‘SSL_read’
tls_openssl.c:1829: error: ‘struct tls_connection’ has no member named ‘ssl’
tls_openssl.c:1835: error: ‘struct tls_connection’ has no member named ‘ssl_out’
tls_openssl.c:1841: error: ‘struct tls_connection’ has no member named ‘ssl_out’
tls_openssl.c:1848: error: ‘struct tls_connection’ has no member named ‘ssl_out’
tls_openssl.c:1852: error: ‘struct tls_connection’ has no member named ‘ssl_out’
tls_openssl.c: In function ‘tls_connection_encrypt’:
tls_openssl.c:1874: error: ‘struct tls_connection’ has no member named ‘ssl_in’
tls_openssl.c:1875: error: ‘struct tls_connection’ has no member named ‘ssl_out’
tls_openssl.c:1879: warning: implicit declaration of function ‘SSL_write’
tls_openssl.c:1879: error: ‘struct tls_connection’ has no member named ‘ssl’
tls_openssl.c:1887: error: ‘struct tls_connection’ has no member named ‘ssl_out’
tls_openssl.c: In function ‘tls_connection_decrypt’:
tls_openssl.c:1905: error: ‘struct tls_connection’ has no member named ‘ssl_in’
tls_openssl.c:1911: error: ‘struct tls_connection’ has no member named ‘ssl_out’
tls_openssl.c:1917: error: ‘struct tls_connection’ has no member named ‘ssl’
tls_openssl.c: In function ‘tls_connection_resumed’:
tls_openssl.c:1930: error: ‘struct tls_connection’ has no member named ‘ssl’
tls_openssl.c: In function ‘tls_connection_set_anon_dh’:
tls_openssl.c:1986: error: ‘struct tls_connection’ has no member named ‘ssl’
tls_openssl.c:1989: warning: implicit declaration of function ‘SSL_set_cipher_list’
tls_openssl.c:1989: error: ‘struct tls_connection’ has no member named ‘ssl’
tls_openssl.c: In function ‘tls_get_cipher’:
tls_openssl.c:2003: error: ‘struct tls_connection’ has no member named ‘ssl’
tls_openssl.c:2006: warning: implicit declaration of function ‘SSL_get_cipher’
tls_openssl.c:2006: error: ‘struct tls_connection’ has no member named ‘ssl’
tls_openssl.c:2006: warning: assignment makes pointer from integer without a cast
tls_openssl.c: In function ‘tls_connection_enable_workaround’:
tls_openssl.c:2018: error: ‘struct tls_connection’ has no member named ‘ssl’
tls_openssl.c:2018: error: ‘SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS’ undeclared (first use in this function)
tls_openssl.c: In function ‘tls_connection_get_failed’:
tls_openssl.c:2048: error: ‘struct tls_connection’ has no member named ‘failed’
tls_openssl.c: In function ‘tls_connection_get_read_alerts’:
tls_openssl.c:2056: error: ‘struct tls_connection’ has no member named ‘read_alerts’
tls_openssl.c: In function ‘tls_connection_get_write_alerts’:
tls_openssl.c:2064: error: ‘struct tls_connection’ has no member named ‘write_alerts’
tls_openssl.c: In function ‘tls_connection_set_params’:
tls_openssl.c:2079: warning: format ‘%s’ expects type ‘char *’, but argument 4 has type ‘int’
tls_openssl.c: In function ‘tls_connection_get_keyblock_size’:
tls_openssl.c:2129: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
tls_openssl.c:2129: error: ‘c’ undeclared (first use in this function)
tls_openssl.c:2130: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
tls_openssl.c:2130: error: ‘h’ undeclared (first use in this function)
tls_openssl.c:2132: error: ‘struct tls_connection’ has no member named ‘ssl’
tls_openssl.c:2133: error: ‘struct tls_connection’ has no member named ‘ssl’
tls_openssl.c:2134: error: ‘struct tls_connection’ has no member named ‘ssl’
tls_openssl.c:2135: error: ‘struct tls_connection’ has no member named ‘ssl’
tls_openssl.c:2138: error: ‘struct tls_connection’ has no member named ‘ssl’
tls_openssl.c:2139: error: ‘struct tls_connection’ has no member named ‘ssl’
tls_openssl.c:2141: warning: implicit declaration of function ‘EVP_CIPHER_key_length’
tls_openssl.c:2142: warning: implicit declaration of function ‘EVP_MD_size’
tls_openssl.c:2143: warning: implicit declaration of function ‘EVP_CIPHER_iv_length’
make: ** [tls_openssl.o] Erro 1

e ao tentar instalar o aircrack deu este:


[email protected]:/home/m/aircrack-ng-1.0# make
make -C src all
make[1]: Entrando no diretório `/home/m/aircrack-ng-1.0/src'
make -C osdep
make[2]: Entrando no diretório `/home/m/aircrack-ng-1.0/src/osdep'
Building for Linux
make[3]: Entrando no diretório `/home/m/aircrack-ng-1.0/src/osdep'
make[3]: `.os.Linux' está atualizado.
make[3]: Saindo do diretório `/home/m/aircrack-ng-1.0/src/osdep'
make[2]: Saindo do diretório `/home/m/aircrack-ng-1.0/src/osdep'
make[1]: ../evalrev: Comando não encontrado
gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION= -Iinclude -c -o aircrack-ng.o aircrack-ng.c
In file included from aircrack-ng.c:65:
crypto.h:12:26: error: openssl/hmac.h: Arquivo ou diretório inexistente
crypto.h:13:25: error: openssl/sha.h: Arquivo ou diretório inexistente
crypto.h:15:25: error: openssl/rc4.h: Arquivo ou diretório inexistente
crypto.h:16:25: error: openssl/aes.h: Arquivo ou diretório inexistente
cc1: warnings being treated as errors
In file included from aircrack-ng.c:69:
sha1-sse2.h: In function ‘calc_4pmk’:
sha1-sse2.h:140: error: implicit declaration of function ‘HMAC’
sha1-sse2.h:140: error: implicit declaration of function ‘EVP_sha1’
aircrack-ng.c: In function ‘crack_wpa_thread’:
aircrack-ng.c:3910: error: implicit declaration of function ‘EVP_md5’
aircrack-ng.c: In function ‘main’:
aircrack-ng.c:4528: error: expected expression before ‘,’ token
make[1]: ** [aircrack-ng.o] Erro 1
make[1]: Saindo do diretório `/home/m/aircrack-ng-1.0/src'
make: ** [all] Erro 2

NINGUÉM MERECE.


Contribuir com comentário




Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner
Linux banner
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts