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

相關內容