2 ms·
Python 2.7 didn't have much love to give :-) Traceback (most recent call last): File "<pyshell#1>", line 1, in <module> from pickle import loads; l
by mehrdadn 9y ago
Python 2.7 didn't have much love to give :-)
Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
from pickle import loads; loads(payload) # don't do it...!
File "...\lib\pickle.py", line 1388, in loads
return Unpickler(file).load()
File "...\lib\pickle.py", line 864, in load
dispatch[key](self)
File "...\lib\pickle.py", line 1139, in load_reduce
value = func(*args)
ValueError: bad marshal data (unknown type code)
- icebraining 9y agoPython 3 uses a new pickling format (protocol) by default. That doesn't mean Python 2 isn't vulnerable.
- mehrdadn 9y agoI just left a tongue in cheek comment and you just killed it with a dry reply :( yes, I'm well aware...
- icebraining 9y agoSorry! :)