Jump to content

Casper

Members
  • Posts

    4
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Casper's Achievements

Newbie

Newbie (1/14)

  1. There are not. The Teensy is one way. You can send input but you can't really read input easily. Not unless you install a program on the host and relay events back to the Teensy via serial. You can respond to input on the Teensy though. Such as hooking up a few buttons to it and waiting until that button is pressed, but I think your looking at reading when a keyboard button is pressed on the host machine. You could maybe create a pass though using the Teensy, read the input of a keyboard hooked to the Teensy and then relay it. I do know there is a library for the Arduino that will let you read a PS2 keyboard. Could do PS2 in and USB out. Hope that helps.
  2. Here's a function for those who were looking for a whitehat demo. It loads up Ninite.com in IE then goes though and picks what you want installed, grabs the installer and runs it. Should only need minor changes to work in Firefox. I did IE because I figured every windows machine had it and if it's not a windows machine your not going to ninite anyway. #define NumPrograms 81 bool InstallOptions[NumPrograms]={ //Web Browsers /*Chrome*/0,/*Safari*/0,/*Opera*/0,/*Firefox*/0, //Messaging /*Skype*/0,/*Messenger*/0,/*Pidgin*/0,/*Digsby*/0,/*Google Talk*/0,/*Thunderbird*/0,/*AIM*/0,/*Yahoo!*/0, //Media /*iTunes*/0,/*Songbird*/0,/*Hulu*/0,/*VLC*/0,/*KMPLayer*/0,/*AIMP*/0,/*foobar2000*/0,/*Winamp*/0,/*Audacity*/0,/*K-Lite Codecs*/0,/*GOM*/0,/*Spotify*/0,/*MediaMonkey*/0, //Imaging /*Paint.NET*/0,/*Picasa*/0,/*GIMP*/0,/*IrfanView*/0,/*XnView*/0,/*Inkscape*/0,/*FastStone*/0, //Documents /*Office*/0,/*OpenOffice*/0,/*Reader*/0,/*SumatraPDF*/0,/*Foxit Reader*/0,/*CutePDF*/0, //Security /*Essentials*/0,/*Avast*/0,/*AVG*/0,/*Malwarebytes*/0,/*Ad-Aware*/0,/*Spybot*/0,/*Super*/0, //Runtimes /*Flash*/0,/*Flash (IE)*/0,/*Java*/0,/*.NET*/0,/*Silverlight*/0,/*Air*/0, //File Sharing /*uTorrent*/0,/*eMule*/0, //Other /*Dropbox*/0,/*Evernote*/0,/*Google Earth*/0,/*Steam*/0,/*KeePass*/0,/*Everything*/0,/*Mozy*/0, //Utilities /*TeamViewer*/0,/*ImgBurn*/0,/*CCleaner*/0,/*Auslogics*/0,/*Defraggler*/0,/*RealVNC*/0,/*TeraCopy*/0,/*CDBurnerXP*/0,/*Recuva*/0,/*TrueCrypt*/0,/*Revo*/0,/*Launchy*/0, //Compression /*7-Zip*/0,/*WinRAR*/0, //Developer Tools /*Python*/0,/*FileZilla*/0,/*Notepad++*/0,/*JDK*/0,/*WinSCP*/0,/*PuTTY*/0,/*Eclipse*/0 }; void DoNinite() { digitalWrite(ledpin, HIGH); CommandAtRunBarMSWIN("cmd /c start iexplore.exe http://ninite.com"); delay(10000); //PressAndRelease(KEY_TAB,6);//Move to just before first program for firefox //Had to split this into a loop to add extra delay for IE. for (int j=0;j<14;j++) { PressAndRelease(KEY_TAB,1);//Move to just before first program for ie delay(100); } digitalWrite(ledpin, LOW); delay(100); digitalWrite(ledpin, HIGH); delay(100); for (int i=0;i<NumPrograms;i++) { digitalWrite(ledpin, LOW); PressAndRelease(KEY_TAB,1);//Move to program if (InstallOptions[i]) PressAndRelease(KEY_SPACE,1);//and select it delay(150); digitalWrite(ledpin, HIGH); delay(150); } PressAndRelease(KEY_TAB,1);//Move to get installer PressAndRelease(KEY_SPACE,1);//and select it delay(5000); //split to help increase the delay for (int j=0;j<11;j++) { PressAndRelease(KEY_TAB,1);//Move to just before first program for ie delay(100); } PressAndRelease(KEY_ENTER,1);//and select it delay(4000); PressAndRelease(KEY_TAB,2);//Move to run button PressAndRelease(KEY_SPACE,1);//and press it //Verify we want to run it. delay(4000); PressAndRelease(KEY_TAB,4);//Move to run button PressAndRelease(KEY_SPACE,1);//and press it } Just change the 0 to ones for what you want to change. I originally was going to make this use strings and compare the two arrays to make it easier to use but it was using a bit too much memory. If anyone wants to change or fix that feel free to and re-post it here.
  3. I was trying to think of a way to detect when windows finished installing drivers for the keyboard HID and this is what I came up with, it uses the phukdlib lib but could be pulled out and used. The basic idea is to wait until the number lock key is on. On a lot of systems this is left on all the time. Once the drivers are installed windows sends the status of this to your keyboard. Here's the code i'm using in my setup for it. setup() { while(!IsNumbOn()) { digitalWrite(ledpin, HIGH); delay(500); digitalWrite(ledpin, LOW); delay(500); } } I actually have that in an if block that looks for a dip switch to be set, if on uses this method, if not fall back to a delay. Other ideas could be to actually send the command to press the numlock key and then check if it's on, if not repeat. Some issues with this though is, like on my laptop, my keyboard doesn't have a numlock, and so it is off by default. Should work on most systems though. Have not tested on linux yet to see if it works the same or not.
  4. Looking for a shell account that will allow TCP over DNS tunnel to be setup. My local ISP seems to be filtering port 53. Anyone know of any good shell accounts out there I could use? Don't mind if I have to pay for as the service is worth it for me.
×
×
  • Create New...