Sailor Posted February 28, 2014 Share Posted February 28, 2014 (edited) I have been experimenting with connecting an Arduino to a Pineapple. This might be possible by using the GPIO pins but I have used the serial interface. In this experiment I have an RGB LED Matrix connected to an Arduino and the Arduino connected to the serial interface. The Arduino waits for events to happen on the Pineapple. In this case I send a 'Connect' event to the Arduino if someones connects to the Pineapple. This is followed by a message string (the number of succesfull connections). The connect event triggers an animation and the number of connections is shown on the LED Matrix afterwards. It is fairly easy to catch all kinds of events and trigger an action, for instance a succesfull WPS attack. This is probably not very useful in a pentest but I had fun building it :) Watch the video here: https://vimeo.com/87283079 Edited February 28, 2014 by Sailor Quote Link to comment Share on other sites More sharing options...
newbi3 Posted February 28, 2014 Share Posted February 28, 2014 That is pretty awesome Quote Link to comment Share on other sites More sharing options...
bluemachine Posted March 1, 2014 Share Posted March 1, 2014 I agree this is sweet. Can you share how you did in detail? Quote Link to comment Share on other sites More sharing options...
Sailor Posted March 2, 2014 Author Share Posted March 2, 2014 Sure. I have included the wiring diagram here. It is basically just connecting the serial port from the Pineapple to the serial port of the Arduino. Because the Arduino has 5 volt logic and the Pineapple 3.3 volt logic I placed a logic level shifter (the red part, just around 2 dollar). It might work without as I have read from people having a similar setup (Arduino - RasPi). On the Arduino I have a program running that reads the serial port and performs an action (controlling the LED in this case, rotating the antenna in the other case). On the Pineapple you can send commands to the serial port (/dev/tty/ATH0) from you existing scripts. Quote Link to comment Share on other sites More sharing options...
bluemachine Posted March 2, 2014 Share Posted March 2, 2014 sweet, thanks Quote Link to comment Share on other sites More sharing options...
canphaz Posted March 4, 2014 Share Posted March 4, 2014 That's so awesome Sailor! Is there a chance you can share the sourcecode somewhere? Would love to play with this :) Quote Link to comment Share on other sites More sharing options...
Sailor Posted March 4, 2014 Author Share Posted March 4, 2014 Arduino source code is on: https://github.com/Sail0r/Pineapple-Arduino Quote Link to comment Share on other sites More sharing options...
canphaz Posted March 4, 2014 Share Posted March 4, 2014 Awesome man :) Thanks a lot! Gonna play with this tonight. No additional dependencies on pineapple, i presume? Quote Link to comment Share on other sites More sharing options...
Sailor Posted March 4, 2014 Author Share Posted March 4, 2014 No additional dependencies on pineapple, i presume? No, just make sure to cross TX on the pineapple to RX on the Arduino. On the MKV you can send commands in a script or on the commandline to /dev/ttyATH0 Quote Link to comment Share on other sites More sharing options...
dannygott Posted June 20, 2014 Share Posted June 20, 2014 i was tinkering arround with this and i believe u made a slite mistake. i think you meant /dev/ttyATH0 not /dev/ttu/ATH0 so the command would look more like echo "hello" > /dev/ttu/ATH0 Quote Link to comment Share on other sites More sharing options...
dannygott Posted June 20, 2014 Share Posted June 20, 2014 an i also had a question what logic shifter did you use. i was looking at this one http://www.adafruit.com/products/735?gclid=CjkKEQjwlIqdBRDy6JSK4Lmn1akBEiQAVa9dPWL_7nuDbofbOhaac_56UC4qflEtI-nfgbnhhsfeRcPw_wcB and i was wondering if it would work Quote Link to comment Share on other sites More sharing options...
Sailor Posted June 20, 2014 Author Share Posted June 20, 2014 an i also had a question what logic shifter did you use. i was looking at this one http://www.adafruit.com/products/735?gclid=CjkKEQjwlIqdBRDy6JSK4Lmn1akBEiQAVa9dPWL_7nuDbofbOhaac_56UC4qflEtI-nfgbnhhsfeRcPw_wcB and i was wondering if it would work Guess that one would work Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.