News for hackers. Stuff that matters.
Re:Exploiting Misuse of Python's “Pickle” by sametmax on Monday June 06, 2016 @04:56AM (#11845431)
I use it save my shell session between reboots. Very useful, yet no security concern. There is always a niche for any tech.
Re:Exploiting Misuse of Python's “Pickle” by gaius on Monday June 06, 2016 @05:53AM (#11845590)
Interesting. How are you doing it? Do you do objects individually?
Re:Exploiting Misuse of Python's “Pickle” by sametmax on Monday June 06, 2016 @06:00AM (#11845603)
Yes. Basically I got a python startup file opening a store object at the begining of the session. If you set an attribute to the object, it's saved in the store, and if you read it, it loads it.
Re:Exploiting Misuse of Python's “Pickle” by gaius on Monday June 06, 2016 @06:04AM (#11845615)
Cool. I'd love a way to completely persist a session to disk and reinstate it later, tho'. In other languages too http://stackoverflow.com/q/3966925/447514 - but only languages like Smalltalk or Forth with the concept of an "image" really do what I want.
Re:Exploiting Misuse of Python's “Pickle” by fulafel on Monday June 06, 2016 @09:52AM (#11846729)
OS level support for checkpointing is also a thing that exists: Eg https://criu.org/
Re:Exploiting Misuse of Python's “Pickle” by sametmax on Monday June 06, 2016 @06:15AM (#11845658)
I think we will come to that in the future, but the OS will handle that instead of the language.

Of course, one can argue you can already to it with docker :)

Re:Exploiting Misuse of Python's “Pickle” by PeCaN on Monday June 06, 2016 @04:31PM (#11850073)
The future as in, say, 1979? https://en.wikipedia.org/wiki/System/38
Re:Exploiting Misuse of Python's “Pickle” by gaius on Monday June 06, 2016 @06:24AM (#11845685)
Well you could do it for decades with VMs but that's pretty heavyweight ;-)