Help Needed with Teensy1 Like board :D

Status
Not open for further replies.

silentsurfer

New member
Hello everyone ,

I would really like some help i have an at90usb162 , this one to be more precise:

jWiXXMs.png


Now from what I read its the same chip that Teensy1.0 has, (I am a totally noob in this pls dont judge me for now) , and there is this code I want to compile for it ( I can flash it after with Flip 3.4.2 i think but before doing this I need it to be in hex format , so compiled.

And here the code :

Code:
#include <usb_keyboard.h>
// This code is licensed under Apache 2.0 License
// http://www.apache.org/licenses/LICENSE-2.0.txt
// Limitation of Liability. In no event and under no legal theory,
// whether in tort (including negligence), contract, or otherwise,
// unless required by applicable law (such as deliberate and grossly
// negligent acts) or agreed to in writing, shall any Contributor be
// liable to You for damages, including any direct, indirect, special,
// incidental, or consequential damages of any character arising as a
// result of this License or out of the use or inability to use the
// Work (including but not limited to damages for loss of goodwill,
// work stoppage, computer failure or malfunction, or any and all
// other commercial damages or losses), even if such Contributor
// has been advised of the possibility of such damages.
// This code is indented for people who are not able to contact
// apple support and I am in no way liable for any damage or
// problems this code might cause.
const int ledPin = 13; // choose the pin for the LED
int counter = 0;
int fakecounter = counter;
char pin[]="xxxx";
void setup() {
pinMode(ledPin, OUTPUT); // declare LED as output
delay(10000);
}
void loop(){
keyboard_modifier_keys = 0;
if (counter <= 9999){
delay(8000);
digitalWrite(ledPin, LOW);
delay(5500);
digitalWrite(ledPin, HIGH);
sprintf(pin, "%04d", fakecounter);
//sending first digit
Keyboard.press(pin[0]);
delay(450);
Keyboard.release(pin[0]);
delay(420);
//sending second digit
Keyboard.press(pin[1]);
delay(398);
Keyboard.release(pin[1]);
delay(510);
//sending third digit
Keyboard.press(pin[2]);
delay(421);
Keyboard.release(pin[2]);
delay(423);
//sending forth digit
Keyboard.press(pin[3]);
delay(430);
Keyboard.release(pin[3]);
delay(525);
//sending enter
Keyboard.press(KEY_ENTER);
delay(305);
Keyboard.release(KEY_ENTER);
}
//reached 4 digit PIN max value
if (counter > 9999){
for (int blinkies = 0; blinkies < 8; blinkies++) {
digitalWrite(ledPin, HIGH);
delay(20);
digitalWrite(ledPin, LOW);
delay(200);
}
delay(6000);
}
++counter;
fakecounter = counter;
}

I have installed the Arduino + Teensyduino made all the ruired changes to use Teensy1.0
But now i get this error it seems I cant pass by :

Code:
Arduino: 1.0.5-r2 (Windows 7), Board: "Teensy 1.0"
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=at90usb162 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -DTEENSYDUINO=118 -felide-constructors -std=c++0x -DUSB_HID -DLAYOUT_US_ENGLISH -IC:\Program Files (x86)\Arduino\hardware\teensy\cores\teensy C:\Users\BaneBorg\AppData\Local\Temp\build2388517073924832930.tmp\Password.cpp -o C:\Users\BaneBorg\AppData\Local\Temp\build2388517073924832930.tmp\Password.cpp.o 

Password.ino:1:26: warning: usb_keyboard.h: No such file or directory
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-gcc -c -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=at90usb162 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -DTEENSYDUINO=118 -DUSB_HID -DLAYOUT_US_ENGLISH -IC:\Program Files (x86)\Arduino\hardware\teensy\cores\teensy C:\Program Files (x86)\Arduino\hardware\teensy\cores\teensy\keylayouts.c -o C:\Users\BaneBorg\AppData\Local\Temp\build2388517073924832930.tmp\keylayouts.c.o 

C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-gcc -c -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=at90usb162 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -DTEENSYDUINO=118 -DUSB_HID -DLAYOUT_US_ENGLISH -IC:\Program Files (x86)\Arduino\hardware\teensy\cores\teensy C:\Program Files (x86)\Arduino\hardware\teensy\cores\teensy\malloc.c -o C:\Users\BaneBorg\AppData\Local\Temp\build2388517073924832930.tmp\malloc.c.o 

C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-gcc -c -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=at90usb162 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -DTEENSYDUINO=118 -DUSB_HID -DLAYOUT_US_ENGLISH -IC:\Program Files (x86)\Arduino\hardware\teensy\cores\teensy C:\Program Files (x86)\Arduino\hardware\teensy\cores\teensy\pins_teensy.c -o C:\Users\BaneBorg\AppData\Local\Temp\build2388517073924832930.tmp\pins_teensy.c.o 

C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-gcc -c -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=at90usb162 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -DTEENSYDUINO=118 -DUSB_HID -DLAYOUT_US_ENGLISH -IC:\Program Files (x86)\Arduino\hardware\teensy\cores\teensy C:\Program Files (x86)\Arduino\hardware\teensy\cores\teensy\usb.c -o C:\Users\BaneBorg\AppData\Local\Temp\build2388517073924832930.tmp\usb.c.o 

C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-gcc -c -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=at90usb162 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -DTEENSYDUINO=118 -DUSB_HID -DLAYOUT_US_ENGLISH -IC:\Program Files (x86)\Arduino\hardware\teensy\cores\teensy C:\Program Files (x86)\Arduino\hardware\teensy\cores\teensy\WInterrupts.c -o C:\Users\BaneBorg\AppData\Local\Temp\build2388517073924832930.tmp\WInterrupts.c.o 

C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-gcc -c -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=at90usb162 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -DTEENSYDUINO=118 -DUSB_HID -DLAYOUT_US_ENGLISH -IC:\Program Files (x86)\Arduino\hardware\teensy\cores\teensy C:\Program Files (x86)\Arduino\hardware\teensy\cores\teensy\wiring.c -o C:\Users\BaneBorg\AppData\Local\Temp\build2388517073924832930.tmp\wiring.c.o 

C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=at90usb162 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -DTEENSYDUINO=118 -felide-constructors -std=c++0x -DUSB_HID -DLAYOUT_US_ENGLISH -IC:\Program Files (x86)\Arduino\hardware\teensy\cores\teensy C:\Program Files (x86)\Arduino\hardware\teensy\cores\teensy\HardwareSerial.cpp -o C:\Users\BaneBorg\AppData\Local\Temp\build2388517073924832930.tmp\HardwareSerial.cpp.o 

C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=at90usb162 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -DTEENSYDUINO=118 -felide-constructors -std=c++0x -DUSB_HID -DLAYOUT_US_ENGLISH -IC:\Program Files (x86)\Arduino\hardware\teensy\cores\teensy C:\Program Files (x86)\Arduino\hardware\teensy\cores\teensy\IPAddress.cpp -o C:\Users\BaneBorg\AppData\Local\Temp\build2388517073924832930.tmp\IPAddress.cpp.o 

C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=at90usb162 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -DTEENSYDUINO=118 -felide-constructors -std=c++0x -DUSB_HID -DLAYOUT_US_ENGLISH -IC:\Program Files (x86)\Arduino\hardware\teensy\cores\teensy C:\Program Files (x86)\Arduino\hardware\teensy\cores\teensy\main.cpp -o C:\Users\BaneBorg\AppData\Local\Temp\build2388517073924832930.tmp\main.cpp.o 

C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=at90usb162 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -DTEENSYDUINO=118 -felide-constructors -std=c++0x -DUSB_HID -DLAYOUT_US_ENGLISH -IC:\Program Files (x86)\Arduino\hardware\teensy\cores\teensy C:\Program Files (x86)\Arduino\hardware\teensy\cores\teensy\new.cpp -o C:\Users\BaneBorg\AppData\Local\Temp\build2388517073924832930.tmp\new.cpp.o 

C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=at90usb162 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -DTEENSYDUINO=118 -felide-constructors -std=c++0x -DUSB_HID -DLAYOUT_US_ENGLISH -IC:\Program Files (x86)\Arduino\hardware\teensy\cores\teensy C:\Program Files (x86)\Arduino\hardware\teensy\cores\teensy\Print.cpp -o C:\Users\BaneBorg\AppData\Local\Temp\build2388517073924832930.tmp\Print.cpp.o 

C:\Program Files (x86)\Arduino\hardware\teensy\cores\teensy\Print.cpp: In member function 'size_t Print::print(const __FlashStringHelper*)':
C:\Program Files (x86)\Arduino\hardware\teensy\cores\teensy\Print.cpp:90: warning: '__progmem__' attribute ignored
C:\Users\BaneBorg\AppData\Local\Temp/ccJ0gSmS.s: Assembler messages:
C:\Users\BaneBorg\AppData\Local\Temp/ccJ0gSmS.s:198: Error: illegal opcode mul for mcu at90usb162
C:\Users\BaneBorg\AppData\Local\Temp/ccJ0gSmS.s:203: Error: illegal opcode mul for mcu at90usb162
C:\Users\BaneBorg\AppData\Local\Temp/ccJ0gSmS.s:207: Error: illegal opcode mul for mcu at90usb162
C:\Users\BaneBorg\AppData\Local\Temp/ccJ0gSmS.s:211: Error: illegal opcode mul for mcu at90usb162
C:\Users\BaneBorg\AppData\Local\Temp/ccJ0gSmS.s:237: Error: illegal opcode mul for mcu at90usb162



The backstory to this is I was to rescue a macbook i bought time ago, and got blocked like 2 months after i purchased it in a local (i am albanian) craiglist like site, I have send a lot of emails to apple but since I have only emails as a proof of purchase .. they dont even bother (that and the thing I am from a country that many of apple employees hadnt even heard of before)

So .. ANY type of help would be appreciated
Thanks in advance
 
Sorry, can't resist the urge to type something here:

I hope you didn't pay much more than $3 for that nasty little thing you have there. Unless whoever made it also included a neato method to deploy compiled code to it, like PJRC does for their products, the only way I see to program it is via ISP using an AVR or compatible ISP module. That really is nasty tho, is that crystal case resting on the other pads it is covering? Did the maker seriously solder the case of the crystal to that corner pad? (facepalm)

If you told me where you got it I would be tempted to put up an effort to make them feel as ashamed afaict they should be for it.


The code you posted compiles, if I remove the line "keyboard_modifier_keys=0;", for every Teensy target other than the Teensy 1.0; Teensy 1.0 has been discontinued, unless there are a lot of them 'in the wild' there is hardly any point fixing that problem.


I'm gonna recommed you the Teensy 2.0 (http://pjrc.com/store/teensy.html) with which you could fulfill your attempt to crack that laptop and a plethora of other projects which that thing you have just shouldn't be even momentarily considered for.
 
Ok got the point. this little cr*p has been bought time ago for my PS3 (as a jailbraking tool) so i had it lying around so i said why not ..

Now i see the point that i have to buy a teensy3 and get over it

thanks for your time
 
The main point is that Teensies are not sold as jailbreaking tools. They are sold as development platforms.
So feel free to buy one and use it to make a jailbreaking tool (or anything else). But if that fails to jailbreak your target device, you can't then make a claim against PJRC that their jailbreaking device failed to work as you imagned it would. Because their development platform does work as advertised.

A secondary point might be that (unlike how its depicted in the movies) something that accepts a password or a PIN typically doesn't let you try thousands of attempts. On some devices (phones, ATMs) you only get three attempts and then your phone locks/the ATM keeps the card. A bit of research related to your planned task might be worthwhile before making a "type one thousand numbers" device.
 
As much as I'd like to sell a Teensy 3.1, before you waste any more time or money, you might read that other thread (see reply #4). Just because some Youtube video shows something working in a matter of seconds, on the software that existed a long time ago, doesn't mean it will work over long sessions with today's updated software.

PJRC doesn't try to control what you actually do with a Teensy. There's no draconian EULA or ToS, for example.

But if you place an order through the PJRC website and then communicate (before the package ships) that you're going to do something which seems unethical, we can and very likely will cancel your order and fully refund any charge.
 
Status
Not open for further replies.
Back
Top