So-net無料ブログ作成
エステ

Ubuntu 12.04 LTS Server に Aircrack-ngをインストールする [Aircrack-ng]

Linuxマシンから周辺の無線LAN環境を調べるためにAircrack-ngをインストールするべく、apt-get installしたのですが、Ubuntuではaircrac-ngはメンテナンスされていないようで、レポジトリから消えていました。

# apt-get install aircrack-ng
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package aircrack-ng is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  iw:i386 iw

E: Package 'aircrack-ng' has no installation candidate


しかたないので、自分で入れます。


おっと、コンパイルする環境を入れていませんでした。

# apt-get install build-essential

入ったところで、

# tar zxvf aircrack-ng-1.1.tar.gz
# cd aircrack-ng-1.1
# make
make -C src all
make[1]: Entering directory `/root/aircrack-ng-1.1/src'
make -C osdep
make[2]: Entering directory `/root/aircrack-ng-1.1/src/osdep'
Building for Linux
make[3]: Entering directory `/root/aircrack-ng-1.1/src/osdep'
gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0  -fPIC -I..    -c -o osdep.o osdep.c
gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0  -fPIC -I..    -c -o network.o network.c
gcc -g -W -Wall -Werror -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0  -fPIC -I..    -c -o linux.o linux.c
linux.c: In function ‘is_ndiswrapper’:
linux.c:165:17: error: variable ‘unused’ set but not used [-Werror=unused-but-set-variable]
linux.c: In function ‘linux_set_rate’:
linux.c:334:22: error: variable ‘unused’ set but not used [-Werror=unused-but-set-variable]
linux.c: In function ‘linux_set_channel’:
linux.c:807:22: error: variable ‘unused’ set but not used [-Werror=unused-but-set-variable]
linux.c: In function ‘linux_set_freq’:
linux.c:896:22: error: variable ‘unused’ set but not used [-Werror=unused-but-set-variable]
linux.c: In function ‘set_monitor’:
linux.c:1022:22: error: variable ‘unused’ set but not used [-Werror=unused-but-set-variable]
linux.c: In function ‘do_linux_open’:
linux.c:1366:12: error: variable ‘unused_str’ set but not used [-Werror=unused-but-set-variable]
linux.c:1352:15: error: variable ‘unused’ set but not used [-Werror=unused-but-set-variable]
linux.c: In function ‘get_battery_state’:
linux.c:1982:35: error: variable ‘current’ set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors
make[3]: *** [linux.o] Error 1
make[3]: Leaving directory `/root/aircrack-ng-1.1/src/osdep'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/aircrack-ng-1.1/src/osdep'
make[1]: *** [osd] Error 2
make[1]: Leaving directory `/root/aircrack-ng-1.1/src'
make: *** [all] Error 2

なんだ、このエラー??
どうやら、Werrorで警告もエラーにされてしまっている模様。

修正します。

# vi common.mak

CFLAGS          ?= -g -W -Wall -Werror -O3

と書かれているところから、-Werrorを削除して、

CFLAGS          ?= -g -W -Wall -O3

こうします。

再度。

# make
make -C src all
make[1]: Entering directory `/root/aircrack-ng-1.1/src'
make -C osdep
make[2]: Entering directory `/root/aircrack-ng-1.1/src/osdep'
Building for Linux
make[3]: Entering directory `/root/aircrack-ng-1.1/src/osdep'
make[3]: `.os.Linux' is up to date.
make[3]: Leaving directory `/root/aircrack-ng-1.1/src/osdep'
make[2]: Leaving directory `/root/aircrack-ng-1.1/src/osdep'
gcc -g -W -Wall -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0  -Iinclude   -c -o aircrack-ng.o aircrack-ng.c
In file included from aircrack-ng.c:65:0:
crypto.h:12:26: fatal error: openssl/hmac.h: No such file or directory
compilation terminated.
make[1]: *** [aircrack-ng.o] Error 1
make[1]: Leaving directory `/root/aircrack-ng-1.1/src'
make: *** [all] Error 2

おー。今度はopenssl関連か。

# apt-get install libssl-dev

再再度。

# make

でOK

# make install

完了!

nice!(0)  コメント(31)  トラックバック(0) 

nice! 0

コメント 31

Jeashibia

Generic Tab Bentyl Purchase Internet Online Free Doctor Consultation <a href=http://propecorder.com>buy propecia 5mg usa</a> Taking Cephalexin While Breastfeeding Preis Viagra Mg
by Jeashibia (2019-02-24 08:52) 

Jeashibia

El Viagra Requiere Receta Shere To Buy Orlistat Over The Counter <a href=http://kamxl.com></a> Cialis Generika Preis
by Jeashibia (2019-03-13 10:48) 

Jeashibia

El Viagra Requiere Receta Shere To Buy Orlistat Over The Counter <a href=http://kamxl.com></a> Cialis Generika Preis
by Jeashibia (2019-03-13 10:48) 

Jeashibia

El Viagra Requiere Receta Shere To Buy Orlistat Over The Counter <a href=http://kamxl.com></a> Cialis Generika Preis
by Jeashibia (2019-03-13 10:48) 

Jeashibia

El Viagra Requiere Receta Shere To Buy Orlistat Over The Counter <a href=http://kamxl.com></a> Cialis Generika Preis
by Jeashibia (2019-03-13 10:48) 

Jeashibia

El Viagra Requiere Receta Shere To Buy Orlistat Over The Counter <a href=http://kamxl.com></a> Cialis Generika Preis
by Jeashibia (2019-03-13 10:48) 

Jeashibia

El Viagra Requiere Receta Shere To Buy Orlistat Over The Counter <a href=http://kamxl.com></a> Cialis Generika Preis
by Jeashibia (2019-03-13 10:48) 

Jeashibia

El Viagra Requiere Receta Shere To Buy Orlistat Over The Counter <a href=http://kamxl.com></a> Cialis Generika Preis
by Jeashibia (2019-03-13 10:49) 

Jeashibia

Clozapine <a href=http://truthaboutstaininggrid.com></a> Cialis 5 Diario
by Jeashibia (2019-04-02 06:01) 

Jeashibia

Clozapine <a href=http://truthaboutstaininggrid.com></a> Cialis 5 Diario
by Jeashibia (2019-04-02 06:01) 

Jeashibia

Clozapine <a href=http://truthaboutstaininggrid.com></a> Cialis 5 Diario
by Jeashibia (2019-04-02 06:01) 

Jeashibia

Clozapine <a href=http://truthaboutstaininggrid.com></a> Cialis 5 Diario
by Jeashibia (2019-04-02 06:01) 

Jeashibia

Clozapine <a href=http://truthaboutstaininggrid.com></a> Cialis 5 Diario
by Jeashibia (2019-04-02 06:01) 

Jeashibia

Clozapine <a href=http://truthaboutstaininggrid.com></a> Cialis 5 Diario
by Jeashibia (2019-04-02 06:02) 

Jeashibia

Clozapine <a href=http://truthaboutstaininggrid.com></a> Cialis 5 Diario
by Jeashibia (2019-04-02 06:02) 

Jeashibia

Clozapine <a href=http://truthaboutstaininggrid.com></a> Cialis 5 Diario
by Jeashibia (2019-04-02 06:02) 

AustJath

Interaction Of Nyquil And Amoxicillin Amoxicillin Sodium Market Specifico Levitra <a href=http://cialusa.com>order cialis online</a> Cipro Forms Online Fast Delivery Online Pharmacy Inhouse Pharmacy Amoxicillin
by AustJath (2019-05-04 18:31) 

StevNite

Cialis Yeux Rouges Vendita Cialis Ebay Viagra Ohne Rezept Sildenafil <a href=http://rxbill6.com>levitra</a> Abbreviation Doxycycline Online For Sale
by StevNite (2019-05-15 11:59) 

EllLatt

Diflucan Without Prescription 150 Mg Clomid For Sale Visa Payment In Uk Moduretic <a href=http://aaost.com>cialis without prescription</a> Viagra Per Diabetici Vardenafil Generico
by EllLatt (2019-06-01 10:15) 

EllLatt

Cialis Order From Uk <a href=http://buyonlinecial.com>cialis without a doctor's prescription</a> Cialis En Oferta
by EllLatt (2019-06-09 01:52) 

EllLatt

Generique Cialis En Pharmacie Free Picture Of Amoxicillin Suspension <a href=http://catabs.com>priligy permanent</a> Elifemeds
by EllLatt (2019-06-09 04:42) 

AustJath

Anafranil Mg Cialis Original Kaufen <a href=http://bpdrug.com>buy priligy 30 mg</a> Viagra Prescription Online
by AustJath (2019-06-15 14:16) 

EllLatt

Mail Order Prevacid Viagraonline <a href=http://purchasecial.com>online pharmacy</a> Viagra Generico Prodotti
by EllLatt (2019-06-17 04:53) 

EllLatt

Cialis En Belgique Zithromax For Pertussis <a href=http://aaost.com>generic cialis overnight delivery</a> Propecia Tra Amici Progesterone Internet Usa Shipped Ups Cheapest Finasteride On The Web
by EllLatt (2019-06-17 07:30) 

StevNite

Viagra Online Sito Sicuro Amitriptyline To Buy <a href=http://drugs20.com>canadian pharmacy cialis</a> Viagra 25mg Dosierung
by StevNite (2019-06-19 19:27) 

EllLatt

Isotretinoin sotret in germany over night Orlistat Indications Cialis 20mg Lilly Preisvergleich <a href=http://levipill.com>levitra 20mg on web</a> Order Cialis
by EllLatt (2019-06-26 14:21) 

EllLatt

Buy Zithromax Online Cheap Osu Levitra En France Amoxicillin In Pregnancy <a href=http://try-rx.com>cialis without prescription</a> Keflex Drug Interactions Levitra Para Hipertensos
by EllLatt (2019-06-26 17:20) 

StevNite

Buy Azithromycin Online Cash On Delivery Stendra Medicine Is Suhagra Otc In Canada <a href=http://lowpricecial.com>generic cialis</a> Viagra Without A Persxritpion Amoxicilline 500 Alcool
by StevNite (2019-07-02 08:58) 

EllLatt

Methadone And Keflex Zithromax And Birth Control <a href=http://buyciali.com>canadian cialis</a> 1 Mg Finasteride Side Effects Propecia Cialis Authentique Europe
by EllLatt (2019-07-08 08:26) 

EllLatt

Cialis 20mg 12 St <a href=http://xzanax.com></a> Commander Du Cialis En France Inflamed Mouth Keflex Purchase Propecia Online
by EllLatt (2019-07-08 12:25) 

EllLatt

Kamagra Cialis Generika Viagra Pastilla Azul <a href=http://cialcost.com>cialis cheapest online prices</a> Acheter Viagra Avec Paypal Is Amoxicillin Penicillin The Same
by EllLatt (2019-07-17 09:05) 

コメントを書く

お名前:
URL:
コメント:
画像認証:
下の画像に表示されている文字を入力してください。

トラックバック 0

この広告は前回の更新から一定期間経過したブログに表示されています。更新すると自動で解除されます。

×

この広告は1年以上新しい記事の更新がないブログに表示されております。