Kali Linux: Airdrop-ng/Lorcon/Pylorcon2 kann nicht „erstellt“ werden

Kali Linux: Airdrop-ng/Lorcon/Pylorcon2 kann nicht „erstellt“ werden

Folgendes versuche ich zu tun

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

jedes Mal, wenn ich dies tue und anschließend Ruby "make" eingebe, erhalte ich die folgende Meldung:

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

Ich habe versucht, Ruby neu zu installieren, aber ohne Erfolg.

Wie kann ich dies erfolgreich installieren?

Antwort1

die neue Version von airdrop-ng muss ausgeführt werden

python setup.py build  
python setup.py install

stattdessen.

Antwort2

Beim Airdrop bin ich auf dasselbe Problem gestoßen.

Dazu habe ich einfach die Zeilen 535 und 539 manuell auskommentiert und die Datei

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;
#endif

Antwort3

Übrigens kann Airdrop jetzt installiert werden, ohne es neu zu erstellen.

apt-get installiere aircrack-ng
cd /usr/src/lorcon/ruby-lorcon/aircrack-ng/scripts/airdrop-ng/
./airdrop-ng

verwandte Informationen