Patches to README and extconf.rb from Civ <civ[at]8thdaytech.com>

git-svn-id: file:///home/svn/framework3/trunk@5545 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
HD Moore 2008-06-29 21:37:10 +00:00
parent 380aba15b0
commit 3c64c454df
2 changed files with 30 additions and 4 deletions

View File

@ -5,11 +5,37 @@ available on Linux and with lorcon-supported wireless drivers.
For more information, please see the lorcon documentation and code:
http://www.802.11mercenary.net/lorcon/
The latest version of lorcon can pulled from SVN:
$ svn co https://www.nycccp.net/svn/tx-80211
To build this extension:
1) Download, compile, and install lorcon
The latest version of lorcon can pulled from SVN:
$ svn co https://802.11ninja.net/svn/lorcon/trunk/ lorcon
$ cd lorcon
$ ./configure
$ make
$ sudo make install
-- or --
$ su
# make install
# exit
$ cd ..
2) build the ruby extension..
$ ruby extconf.rb
$ make
$ sudo make install
-- or --
$ su
# make install
NOTES:
if Ubuntu 8.04 (and probably others) bitches about 'mkmf',
you need ruby dev package.
:~/metasploit/external/ruby-lorcon$ ruby extconf.rb
extconf.rb:2:in `require': no such file to load -- mkmf (LoadError)
from extconf.rb:2
:~/metasploit/external/ruby-lorcon$ sudo apt-get install ruby1.8-dev

View File

@ -1,7 +1,7 @@
#!/usr/bin/env ruby
require 'mkmf'
if have_library("orcon", "tx80211_txpacket", "tx80211.h")
if (have_library("orcon", "tx80211_txpacket", "tx80211.h") or find_library("orcon", "tx80211_txpacket", "tx80211.h"))
create_makefile("Lorcon")
else
puts "Error: the lorcon library was not found, please see the README"