Wireless Archive

hostapd in a VM for device testing

Posted November 27, 2016 By Landis V

While working with my Chamberlain MyQ Garage Door Opener the other day, I ran into issues getting hostapd to work on Kali with the chap ass Netis WP2120 nano USB adapter I had (based on the RTL8192cu chipset/driver).  I need to clear off a few browser tabs and eventually see if I can get hostapd working with this adapter on a different box (VM) for testing.  A few of the links I worked with unsuccessfully, but provide some useful information.

 

More notes

Installed usbutils for lsusb
Installed hostapd
Installed iw
Installed lshw
Ran through steps at https://adamscheller.com/systems-administration/rtl8192cu-fix-wifi/, minor issue with “linux-headers-generic”, skipped it for now.

Did receive a modprobe error, “could not insert ‘8192cu’: Device or resource busy”. lsmod shows the old rtl8192cu drivers active. Did a reboot. Correct driver modules now listed, though no device listing in ‘iw list’. Does appear in ‘lshw -c network’, and appears as wlan0 in ‘ip link list’.

Started in with hostapd steps from http://sarumait.blogspot.com/2013/11/ubuntu-wireless-hotspot-using-edimax-ew.html and from my previous testing on the Chamberlain page.

Attempted to start hostapd service which seemed to work, but didn’t see my SSID. Ran it interactive debug and got an “invalid/unknown driver ‘8192cu'”.

Instructions at https://github.com/pritambaral/hostapd-rtl871xdrv
Git cloned the above repository and the w1.fi repository listed. Got hostapd to build after installing dependencies (below).

apt-get install apt-file libnl-3-dev libnl-genl-3-dev pkg-config libssl-dev
apt-file not needed, but handy for looking up files that resulted in failures during make.

Ran the patch process noted at https://github.com/pritambaral/hostapd-rtl871xdrv

Ended up having some success after doing a ‘make dkms’ in the rt8192cu directory cloned from https://github.com/dz0ny/rt8192cu and setting the driver in my hostapd.conf to the rtl871xdrv

Pages helpful in getting it to work

2 Comments so far. Join the Conversation

More 434MHz stuff to look at later

Posted August 20, 2016 By Landis V

Acurite #0899 self emptying rain gauge – at Amazon

Blog post on reversing the signal from Acurite temperature sensors; may be similar for the rain gauges.  Also mentions the RTL SDR.  Probably wouldn’t be bad to have.

Another blog post regarding reading the Acurite 5n1 station.  Possible that part of this will already cover the rain gauge.  Also discusses SDR and mentions the rtl_433 tool.

This blog post looks like rtl_433 supports the Acurite 896 decode natively, so if the protocol is similar or the same it may be simple.

RTL Software Defined Radio – at Amazon – seems like it’s probably a decent model, some good reviews.  Looks like there’s a little more to it than just “buy this and set up the software”.

Bought a cheap receiver off of eBay from Hong Kong for $7.31 (original listing).

Also, here was an Instructable about making a cheap combination RF/Bluetooth/433 MHz remote using an Arduino.

Additional Links

Be the first to comment

ARDUINO SOLAR CHARGE CONTROLLER (Version-1)

Posted March 13, 2015 By Landis V

http://www.instructables.com/id/ARDUINO-SOLAR-CHARGE-CONTROLLER-PWM/

Be the first to comment

Antenna Patterns and Their Meaning – Cisco

Posted January 23, 2015 By Landis V

http://www.cisco.com/c/en/us/products/collateral/wireless/aironet-antennas-accessories/prod_white_paper0900aecd806a1a3e.html

This was a good read, probably somewhere a little north of basic, but some very good and helpful detail.  Not what I had been searching for, but well worth the pause to read before continuing to research good short-hop, high throughput antennas and the noise effects of horizontally and vertically polarized noise sources on oppositely polarized antennas.

Be the first to comment

https://supportforums.cisco.com/blog/9913621/using-open-source-dogtag-certificate-authority-ise-byod

I tinkered with this at work, but found it lacking from a production standpoint.  This may be due in part to working outside my typical Debian-based comfort zone.  Will probably look at it again at home and see if it shows more promise with experience.

Be the first to comment

https://www.rfc-editor.org/rfc/rfc4334.txt

Surprisingly short read, with incredibly little – effectively “no” – information on anyone actually implementing it.  Unsure at this point if anyone actually has, if it’s something that’s just done within larger proprietary systems, or whether it’s not done at all because clients don’t take advantage of it.  Virtually every reference I could find to “SSIDList” or “id-aca-wlanSSID” points back to the RFC documents.  This probably means that I need to create a few certificates, some with the attributes and some without, and test some clients to see if they will actually use the certificates automatically to associate to a WPA2 EAP-TLS protected network when they have a certificate with a matching ID.  Time will probably not allow for this at any point in the near future.

Be the first to comment

http://www.privacywonk.net/2010/10/security-how-to-wpa2-enterprise-on-your-home-network.php

Nice write-up.  Very straightforward and easy to follow.  I was searching for info on extendedKeyUsage with automatic SSID/certificate matching (per RFC4334), so this wasn’t quite it, but was noteworthy.

Be the first to comment