
aqui está o que estou tentando fazer
cd lorcon
./configure --libdir=/usr/lib
make
make install
cd pylorcon2
python setup.py build
python setup.py install
cd ../ruby-lorcon/
ruby extconf.rb
make
make install
toda vez que faço seguido de Ruby "make" recebo a seguinte mensagem:
root@kali:~/lorcon/ruby-lorcon# make
compiling Lorcon2.c
In file included from Lorcon2.c:5:0:
/usr/include/ruby-2.3.0/ruby/backward/rubysig.h:14:2: warning: #warning rubysig.h is obsolete [-Wcpp]
#warning rubysig.h is obsolete
^~~~~~~
Lorcon2.c: In function ‘Lorcon_capture_next’:
Lorcon2.c:535:2: error: ‘TRAP_BEG’ undeclared (first use in this function)
TRAP_BEG;
^~~~~~~~
Lorcon2.c:535:2: note: each undeclared identifier is reported only once for each function it appears in
Lorcon2.c:539:2: error: ‘TRAP_END’ undeclared (first use in this function)
TRAP_END;
^~~~~~~~
Makefile:239: recipe for target 'Lorcon2.o' failed
make: *** [Lorcon2.o] Error 1
Tentei reinstalar o Ruby, mas sem sorte.
Como posso instalar isso com sucesso?
Responder1
a nova versão do airdrop-ng requer execução
python setup.py build
python setup.py install
em vez de.
Responder2
Encontrei o mesmo problema ao fazer o lançamento aéreo.
Para isso, apenas comentei manualmente a linha 535, 539 e criei o arquivo
Lorcon2.c #ifndef RUBY_19
// TRAP_BEG;
#endif
ret = pcap_dispatch(pd, 1, (pcap_handler) rblorcon_pcap_handler, (u_char *)&job);
#ifndef RUBY_19
// TRAP_END;
#fim se
Responder3
A propósito, o airdrop agora pode ser instalado sem reconstruí-lo.
apt-get install aircrack-ng
cd /usr/src/lorcon/ruby-lorcon/aircrack-ng/scripts/airdrop-ng/
./airdrop-ng