Metasploit mailing list archives
Re: include pcaprub in windows installer (Feature #5315)
From: Jack Liptrap <jliptrap () gmail com>
Date: Sun, 24 Feb 2013 19:42:13 -0800
Note: I was unable to convince the compiler to point to the WinPcap Dev libraries and includes even with the help of this thread (www.ruby-forum.com/topic/3469827), hence the "oh no he didn't" copying and pasting of said files into ruby's directory. A result of my unfamiliarity of *nix build tools. 1. Install the latest Metasploit Community Edition, the ruby shipped with the installer will be used 2. Update it to the latest version 3. Install WinPcap (www.winpcap.org/install/bin/WinPcap_4_1_2.exe) 4. Download WinPcap Dev Pack (www.winpcap.org/install/bin/WpdPack_4_1_2.zip) 5. Unzip it to C:\ to have C:\WpdPack\Include, C:\WpdPack\Lib, ... 6. Download the latest Ruby Development Kit (github.com/downloads/oneclick/rubyinstaller/DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe) 7. Create a folder named "DevKit" on the C:\ to have C:\DevKit 8. Extract the Ruby Development Kit to C:\DevKit to have C:\DevKit\bin, C:\DevKit\etc, ... 9. Copy the contents of C:\WpdPack\Lib into C:\metasploit\ruby\lib 10. Copy the contents of C:\WpdPack\Include into C:\metasploit\ruby\include\ruby-1.9.1 11. Disable your firewall if necessary; files will be downloaded via ruby gems 12. Open a command prompt and navigate to C:\DevKit 13. Add Ruby to your PATH if necessary, set PATH=C:\metasploit\ruby\bin;%PATH% 14. ruby dk.rb init 15. Open C:\DevKit\config.yml with Notepad or another text editor and append the following line (include the dash): - C:\metasploit\ruby 16. Save and close config.yml, returned back to your command prompt 17. ruby dk.rb install 18. gem install pcaprub Everything should have compiled without any errors 19. Copy the directory C:\metasploit\ruby\lib\ruby\gems\1.9.1\gems\pcaprub-0.11.3 into C:\metasploit\apps\pro\ui\vendor\bundle\ruby\1.9.1\gems 20. Copy the file pcaprub.gemspec, found in the aforementioned directory, into C:\metasploit\apps\pro\ui\vendor\bundle\ruby\1.9.1\specifications 21. Open C:\metasploit\apps\pro\ui\Gemfile with a text editor and add the following line below "gem 'wicked', '0.5.0'": gem 'pcaprub', '0.11.3' 23. Save and close the Gemfile 24. Open Gemfile.lock (same directory) with a text editor and add the following line below "nokogiri (1.5.2-x86-mingw32)", maintaining consistent indentation: pcaprub (0.11.3) 25. Save and close Gemfile.lock; you may close out of the command prompt now 26. Run the Metasploit Console 27. Test arp_sweep, arp_poisoning or any other module that uses pcaprub On Sun, Feb 24, 2013 at 7:36 PM, Tod Beardsley <todb () packetfu com> wrote:
On Sun, Feb 24, 2013 at 1:52 PM, Jack Liptrap <jliptrap () gmail com> wrote:I finally got it working on my machine and have made a small compile guide of my own. Is this the appropriate venue to post it?Absolutely! Thanks! -todb
_______________________________________________ https://mail.metasploit.com/mailman/listinfo/framework
Current thread:
- include pcaprub in windows installer (Feature #5315) Jack Liptrap (Feb 24)
- Re: include pcaprub in windows installer (Feature #5315) Tod Beardsley (Feb 24)
- Re: include pcaprub in windows installer (Feature #5315) Jack Liptrap (Feb 24)
- Re: include pcaprub in windows installer (Feature #5315) Tod Beardsley (Feb 25)
- Re: include pcaprub in windows installer (Feature #5315) Jack Liptrap (Feb 24)
- Re: include pcaprub in windows installer (Feature #5315) Tod Beardsley (Feb 24)