Author Topic: Virus to crack RSA for nspire? :P  (Read 69752 times)

0 Members and 2 Guests are viewing this topic.

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Virus to crack RSA for nspire? :P
« Reply #210 on: October 09, 2010, 06:33:02 pm »
What would cracking the nSpire RSA codes do? Aren't they simply used for the Certificate?
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline alberthrocks

  • Moderator
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 876
  • Rating: +103/-10
    • View Profile
Re: Virus to crack RSA for nspire? :P
« Reply #211 on: October 09, 2010, 06:35:15 pm »
What would cracking the nSpire RSA codes do? Aren't they simply used for the Certificate?

They are, but the PUBLIC certificate verifies the boot2 and the OS itself.
If we cracked the PRIVATE keys, we can sign our own boot2/OS and make a jailbreak permanent. :)
Withgusto Networks Founder and Administrator
Main Server Status: http://withg.org/status/
Backup Server Status: Not available
Backup 2/MC Server Status: http://mc.withg.org/status/


Proud member of ClrHome!

Miss my old signature? Here it is!
Spoiler For Signature:
Alternate "New" IRC post notification bot (Newy) down? Go here to reset it! http://withg.org/albert/cpuhero/

Withgusto Networks Founder and Administrator
Main Server Status: http://withg.org/status/
Backup Server Status: Not available
Backup 2/MC Server Status: http://mc.withg.org/status/

Activity remains limited due to busyness from school et al. Sorry! :( Feel free to PM, email, or if you know me well enough, FB me if you have a question/concern. :)

Don't expect me to be online 24/7 until summer. Contact me via FB if you feel it's urgent.


Proud member of ClrHome!

Spoiler For "My Projects! :D":
Projects:

Computer/Web/IRC Projects:
C______c: 0% done (Doing planning and trying to not forget it :P)
A_____m: 40% done (Need to develop a sophisticated process queue, and a pretty web GUI)
AtomBot v3.0: 0% done (Planning stage, may do a litmus test of developer wants in the future)
IdeaFrenzy: 0% done (Planning and trying to not forget it :P)
wxWabbitemu: 40% done (NEED MOAR FEATURES :P)

Calculator Projects:
M__ C_____ (an A____ _____ clone): 0% done (Need to figure out physics and Axe)
C2I: 0% done (planning, checking the demand for it, and dreaming :P)

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Virus to crack RSA for nspire? :P
« Reply #212 on: October 09, 2010, 06:40:04 pm »
Oh, so cracking the code would make custom OS patches viable?

So all you would really need is the private key and the encrypted data, correct (it's been a little while since I've worked with RSA)?
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline alberthrocks

  • Moderator
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 876
  • Rating: +103/-10
    • View Profile
Re: Virus to crack RSA for nspire? :P
« Reply #213 on: October 09, 2010, 06:44:34 pm »
Oh, so cracking the code would make custom OS patches viable?

So all you would really need is the private key and the encrypted data, correct (it's been a little while since I've worked with RSA)?

Yup. :)
The private key will let us resign the modified OS, making any changes possible. PLUS - it would also let us create better OSes (hint: Linux calc distro!!), and install them too.

As for this virus idea, I think there was a C program posted.
It would be perfect if there was a simple tray icon to indicate that it's running, and if it ever finds the key, upload it to every single calculator website. :)
Withgusto Networks Founder and Administrator
Main Server Status: http://withg.org/status/
Backup Server Status: Not available
Backup 2/MC Server Status: http://mc.withg.org/status/


Proud member of ClrHome!

Miss my old signature? Here it is!
Spoiler For Signature:
Alternate "New" IRC post notification bot (Newy) down? Go here to reset it! http://withg.org/albert/cpuhero/

Withgusto Networks Founder and Administrator
Main Server Status: http://withg.org/status/
Backup Server Status: Not available
Backup 2/MC Server Status: http://mc.withg.org/status/

Activity remains limited due to busyness from school et al. Sorry! :( Feel free to PM, email, or if you know me well enough, FB me if you have a question/concern. :)

Don't expect me to be online 24/7 until summer. Contact me via FB if you feel it's urgent.


Proud member of ClrHome!

Spoiler For "My Projects! :D":
Projects:

Computer/Web/IRC Projects:
C______c: 0% done (Doing planning and trying to not forget it :P)
A_____m: 40% done (Need to develop a sophisticated process queue, and a pretty web GUI)
AtomBot v3.0: 0% done (Planning stage, may do a litmus test of developer wants in the future)
IdeaFrenzy: 0% done (Planning and trying to not forget it :P)
wxWabbitemu: 40% done (NEED MOAR FEATURES :P)

Calculator Projects:
M__ C_____ (an A____ _____ clone): 0% done (Need to figure out physics and Axe)
C2I: 0% done (planning, checking the demand for it, and dreaming :P)

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Virus to crack RSA for nspire? :P
« Reply #214 on: October 09, 2010, 06:49:52 pm »
Oh, so cracking the code would make custom OS patches viable?

So all you would really need is the private key and the encrypted data, correct (it's been a little while since I've worked with RSA)?

Yup. :)
The private key will let us resign the modified OS, making any changes possible. PLUS - it would also let us create better OSes (hint: Linux calc distro!!), and install them too.

Linux on-calc ... so it's really possible?




Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Virus to crack RSA for nspire? :P
« Reply #215 on: October 09, 2010, 06:52:23 pm »
If all you need to find is the private key (I'm assuming someone's already located the encrypted data), why go to the trouble of number sieving? What you have is a situation any code cracker would dream of where you have access to the device itself. Instead of inefficiently using random numbers, use the bits in the memory itself as the random numbers. When you get a combination that works for the private key, then there's your answer. And since I'm fairly sure the nSpire's emulator can run 84+ ASM, just use an Assembly program to look at the bit level data in the memory. In fact, this is exactly what one of my current projects does.

If you know the approximate location in the memory, then the situation gets even better as you can narrow your search.

EDIT: Yep, you could probably get something like Tiny Core Linux to run on-calc.
« Last Edit: October 09, 2010, 06:54:42 pm by Qwerty.55 »
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline alberthrocks

  • Moderator
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 876
  • Rating: +103/-10
    • View Profile
Re: Virus to crack RSA for nspire? :P
« Reply #216 on: October 09, 2010, 06:58:42 pm »
@Deep: ARM processors are fully capable of running Linux. :)

If all you need to find is the private key (I'm assuming someone's already located the encrypted data), why go to the trouble of number sieving? What you have is a situation any code cracker would dream of where you have access to the device itself. Instead of inefficiently using random numbers, use the bits in the memory itself as the random numbers. When you get a combination that works for the private key, then there's your answer. And since I'm fairly sure the nSpire's emulator can run 84+ ASM, just use an Assembly program to look at the bit level data in the memory. In fact, this is exactly what one of my current projects does.

If you know the approximate location in the memory, then the situation gets even better as you can narrow your search.

EDIT: Yep, you could probably get something like Tiny Core Linux to run on-calc.

FYI, the private key is not stored in the memory of the Nspire AT ALL, nor in the OS.
The public key verifies and decrypts it, that's all. Encrypting uses the private key.
Now, if you were saying that this method could find the private key from the PUBLIC key, then you might have a case.
Withgusto Networks Founder and Administrator
Main Server Status: http://withg.org/status/
Backup Server Status: Not available
Backup 2/MC Server Status: http://mc.withg.org/status/


Proud member of ClrHome!

Miss my old signature? Here it is!
Spoiler For Signature:
Alternate "New" IRC post notification bot (Newy) down? Go here to reset it! http://withg.org/albert/cpuhero/

Withgusto Networks Founder and Administrator
Main Server Status: http://withg.org/status/
Backup Server Status: Not available
Backup 2/MC Server Status: http://mc.withg.org/status/

Activity remains limited due to busyness from school et al. Sorry! :( Feel free to PM, email, or if you know me well enough, FB me if you have a question/concern. :)

Don't expect me to be online 24/7 until summer. Contact me via FB if you feel it's urgent.


Proud member of ClrHome!

Spoiler For "My Projects! :D":
Projects:

Computer/Web/IRC Projects:
C______c: 0% done (Doing planning and trying to not forget it :P)
A_____m: 40% done (Need to develop a sophisticated process queue, and a pretty web GUI)
AtomBot v3.0: 0% done (Planning stage, may do a litmus test of developer wants in the future)
IdeaFrenzy: 0% done (Planning and trying to not forget it :P)
wxWabbitemu: 40% done (NEED MOAR FEATURES :P)

Calculator Projects:
M__ C_____ (an A____ _____ clone): 0% done (Need to figure out physics and Axe)
C2I: 0% done (planning, checking the demand for it, and dreaming :P)

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Virus to crack RSA for nspire? :P
« Reply #217 on: October 09, 2010, 07:01:03 pm »
I think I need to look at RSA again :P

You're right.
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline alberthrocks

  • Moderator
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 876
  • Rating: +103/-10
    • View Profile
Re: Virus to crack RSA for nspire? :P
« Reply #218 on: October 09, 2010, 07:07:25 pm »
I think I need to look at RSA again :P

You're right.

Basically, the ndless devs already decrypted the OS and boot2, which is how they can produce hacks to make ndless itself. :) But the major hurdle is that we can't write back to the OS, since it's encrypted, and writing anything breaks the signature, causing boot2 to reject it and not load it at all. When you turn off your calculator, the ndless portion is still "loaded" in a way. Now, if you pulled batteries or did a true reset, the jailbreak is gone, and you would need to rerun.

In iPod JB terms, it's a tethered jailbreak, but not as bad as an iPod Touch/iPhone tethered jailbreak, in which any reboot/power off (which happens a lot more than a calc) requires a computer to JB again. (Whereas the Nspire doesn't drain that fast, and can be JB via a TI-84+ :))

I still like the "virus" idea, but I wouldn't make it a virus. I'd make it a easy, portable program that can be distributed easily, has a tray icon and simple dialog for progress, and can submit the final factored key to the internet (and spread to every flash drive and such) if it successfully finds it. People can give this to friends, and they can give to others. If we can build a large base with people doing this, the probability of finding the key goes up. It's hard and slow, but it's the best chance we have to knock TI down with a swift knife. :)
« Last Edit: October 09, 2010, 07:09:16 pm by alberthrocks »
Withgusto Networks Founder and Administrator
Main Server Status: http://withg.org/status/
Backup Server Status: Not available
Backup 2/MC Server Status: http://mc.withg.org/status/


Proud member of ClrHome!

Miss my old signature? Here it is!
Spoiler For Signature:
Alternate "New" IRC post notification bot (Newy) down? Go here to reset it! http://withg.org/albert/cpuhero/

Withgusto Networks Founder and Administrator
Main Server Status: http://withg.org/status/
Backup Server Status: Not available
Backup 2/MC Server Status: http://mc.withg.org/status/

Activity remains limited due to busyness from school et al. Sorry! :( Feel free to PM, email, or if you know me well enough, FB me if you have a question/concern. :)

Don't expect me to be online 24/7 until summer. Contact me via FB if you feel it's urgent.


Proud member of ClrHome!

Spoiler For "My Projects! :D":
Projects:

Computer/Web/IRC Projects:
C______c: 0% done (Doing planning and trying to not forget it :P)
A_____m: 40% done (Need to develop a sophisticated process queue, and a pretty web GUI)
AtomBot v3.0: 0% done (Planning stage, may do a litmus test of developer wants in the future)
IdeaFrenzy: 0% done (Planning and trying to not forget it :P)
wxWabbitemu: 40% done (NEED MOAR FEATURES :P)

Calculator Projects:
M__ C_____ (an A____ _____ clone): 0% done (Need to figure out physics and Axe)
C2I: 0% done (planning, checking the demand for it, and dreaming :P)

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: Virus to crack RSA for nspire? :P
« Reply #219 on: October 09, 2010, 07:11:54 pm »
First an 84 jb's a ps3, now (possibly) an NSpire. Nice.  This is looking looking interesting.
Vy'o'us pleorsdti thl'e gjaemue

Offline alberthrocks

  • Moderator
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 876
  • Rating: +103/-10
    • View Profile
Re: Virus to crack RSA for nspire? :P
« Reply #220 on: October 09, 2010, 07:14:10 pm »
First an 84 jb's a ps3, now (possibly) an NSpire. Nice.  This is looking looking interesting.
Possibly? It's already done! :) http://www.ticalc.org/archives/files/fileinfo/426/42627.html

Anyway, I need to find that lovely C source and repost about it here. :P
Withgusto Networks Founder and Administrator
Main Server Status: http://withg.org/status/
Backup Server Status: Not available
Backup 2/MC Server Status: http://mc.withg.org/status/


Proud member of ClrHome!

Miss my old signature? Here it is!
Spoiler For Signature:
Alternate "New" IRC post notification bot (Newy) down? Go here to reset it! http://withg.org/albert/cpuhero/

Withgusto Networks Founder and Administrator
Main Server Status: http://withg.org/status/
Backup Server Status: Not available
Backup 2/MC Server Status: http://mc.withg.org/status/

Activity remains limited due to busyness from school et al. Sorry! :( Feel free to PM, email, or if you know me well enough, FB me if you have a question/concern. :)

Don't expect me to be online 24/7 until summer. Contact me via FB if you feel it's urgent.


Proud member of ClrHome!

Spoiler For "My Projects! :D":
Projects:

Computer/Web/IRC Projects:
C______c: 0% done (Doing planning and trying to not forget it :P)
A_____m: 40% done (Need to develop a sophisticated process queue, and a pretty web GUI)
AtomBot v3.0: 0% done (Planning stage, may do a litmus test of developer wants in the future)
IdeaFrenzy: 0% done (Planning and trying to not forget it :P)
wxWabbitemu: 40% done (NEED MOAR FEATURES :P)

Calculator Projects:
M__ C_____ (an A____ _____ clone): 0% done (Need to figure out physics and Axe)
C2I: 0% done (planning, checking the demand for it, and dreaming :P)

Offline alberthrocks

  • Moderator
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 876
  • Rating: +103/-10
    • View Profile
Re: Virus to crack RSA for nspire? :P
« Reply #221 on: October 09, 2010, 07:39:19 pm »
Found the source code! :)

http://ourl.ca/62360
Post #64, 65 - READ them, then peek at source code from downloading from the attachment, or from here:
http://dl.dropbox.com/u/1016340/NspireRSACrackingPrograms/cspire.zip
http://dl.dropbox.com/u/1016340/NspireRSACrackingPrograms/cspire_lfsr.zip

Happy hacking! :) Remember, implement a simple dialog to track progress, stop, etc., then make it minimizable w/tray icon, then add support for posting on internet/infecting HDDs with the factored key file/etc., and finally add support for only running when no CPU hogging process is on.

AND - it must be cross-platform. We want to run this on every computer on the planet (or at least try to).

If you can do all of these, or at least contributed to parts, you get 1024 cookies. :P
« Last Edit: October 09, 2010, 07:39:42 pm by alberthrocks »
Withgusto Networks Founder and Administrator
Main Server Status: http://withg.org/status/
Backup Server Status: Not available
Backup 2/MC Server Status: http://mc.withg.org/status/


Proud member of ClrHome!

Miss my old signature? Here it is!
Spoiler For Signature:
Alternate "New" IRC post notification bot (Newy) down? Go here to reset it! http://withg.org/albert/cpuhero/

Withgusto Networks Founder and Administrator
Main Server Status: http://withg.org/status/
Backup Server Status: Not available
Backup 2/MC Server Status: http://mc.withg.org/status/

Activity remains limited due to busyness from school et al. Sorry! :( Feel free to PM, email, or if you know me well enough, FB me if you have a question/concern. :)

Don't expect me to be online 24/7 until summer. Contact me via FB if you feel it's urgent.


Proud member of ClrHome!

Spoiler For "My Projects! :D":
Projects:

Computer/Web/IRC Projects:
C______c: 0% done (Doing planning and trying to not forget it :P)
A_____m: 40% done (Need to develop a sophisticated process queue, and a pretty web GUI)
AtomBot v3.0: 0% done (Planning stage, may do a litmus test of developer wants in the future)
IdeaFrenzy: 0% done (Planning and trying to not forget it :P)
wxWabbitemu: 40% done (NEED MOAR FEATURES :P)

Calculator Projects:
M__ C_____ (an A____ _____ clone): 0% done (Need to figure out physics and Axe)
C2I: 0% done (planning, checking the demand for it, and dreaming :P)

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Virus to crack RSA for nspire? :P
« Reply #222 on: October 09, 2010, 09:10:24 pm »
And you double-posted :P
* DJ Omnimaga eats alberthrocks

I wonder how many computers will be needed to crack the keys x.x

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: Virus to crack RSA for nspire? :P
« Reply #223 on: October 09, 2010, 09:51:07 pm »
how much time would it take to do every key possible?
there is one correct solution out of 'blank' possible?
maybe we can each take 10000 possibilities or what ever and split it up so we don't repeat the same number. 
(sorry for bad wording)
School: East Central High School
 
Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Lent out, and never returned
____________________________________________________________

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Virus to crack RSA for nspire? :P
« Reply #224 on: October 09, 2010, 10:00:12 pm »
If I understand correctly, there're 1.8×10308 (that's a googol cubed and then some) different combinations, so it's gonna take a while if we were to do it like that ;)
« Last Edit: October 09, 2010, 10:05:31 pm by Deep Thought »