Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions requests/haxx.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
from subprocess import run, PIPE, check_output, call
from os import system
from os.path import join

for i in range(1000):
with open('/tmp/haxxorzzz', 'a') as f:
msg = "I AM A HAXX0RR, BEWARE!!"
print(msg, file=f)
print(msg)

if not i % 100:
out = run("ls -l", shell=True, stdout=PIPE).stdout
print(out, file=f)
print(out)
system('ls -l')
system('ls -la')
check_output()
call()
system('ls -lard')
system('ls -ltard')
join('a', 'b') # innocent comment here ... continued
system('ls -l')