Kali linux:无法“制作”airdrop-ng / lorcon / pylorcon2

Kali linux:无法“制作”airdrop-ng / lorcon / pylorcon2

这就是我想做的

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

每次我执行 ruby​​“make”时,我都会收到以下消息:

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

我尝试重新安装 Ruby,但没有成功。

我怎样才能成功安装这个?

答案1

新版本的airdrop-ng需要运行

python setup.py build  
python setup.py install

反而。

答案2

我在进行空投时遇到了同样的问题。

为此,我只是手动注释掉第 535、539 行,并制作文件

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;
#万一

答案3

顺便说一句,空投现在可以安装而无需重新构建。

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

相关内容