From 02eaf063f0d3eabb3677b4c86fb26604ce336117 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matti=20M=C3=A4ki?= Date: Tue, 27 Nov 2018 12:58:34 +0000 Subject: [PATCH 1/8] Try haxxing Softagram --- requests/haxx.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 requests/haxx.py diff --git a/requests/haxx.py b/requests/haxx.py new file mode 100644 index 0000000000..6b6eac9e12 --- /dev/null +++ b/requests/haxx.py @@ -0,0 +1,12 @@ +from subprocess import run, PIPE + +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) From 1208f26d932cecc4bfecbc68623a413f21656079 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matti=20M=C3=A4ki?= Date: Tue, 27 Nov 2018 15:06:14 +0000 Subject: [PATCH 2/8] fixup --- requests/haxx.py | 1 + 1 file changed, 1 insertion(+) diff --git a/requests/haxx.py b/requests/haxx.py index 6b6eac9e12..d51ca07986 100644 --- a/requests/haxx.py +++ b/requests/haxx.py @@ -7,6 +7,7 @@ print(msg) if not i % 100: + # run ls -ls and print to file and stdout out = run("ls -l", shell=True, stdout=PIPE).stdout print(out, file=f) print(out) From 62e0a416a034c06580dcfbd857dbf195b6537ab9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matti=20M=C3=A4ki?= Date: Mon, 3 Dec 2018 14:15:21 +0000 Subject: [PATCH 3/8] An overall useless comment --- requests/haxx.py | 1 + 1 file changed, 1 insertion(+) diff --git a/requests/haxx.py b/requests/haxx.py index d51ca07986..1388361f17 100644 --- a/requests/haxx.py +++ b/requests/haxx.py @@ -8,6 +8,7 @@ if not i % 100: # run ls -ls and print to file and stdout + # an overall useless comment out = run("ls -l", shell=True, stdout=PIPE).stdout print(out, file=f) print(out) From 1197c32d34491aedf1cca4322e6bc2d37d5263a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matti=20M=C3=A4ki?= Date: Tue, 4 Dec 2018 14:31:18 +0000 Subject: [PATCH 4/8] This comment might be even more useless --- requests/haxx.py | 1 + 1 file changed, 1 insertion(+) diff --git a/requests/haxx.py b/requests/haxx.py index 1388361f17..da110c5ca9 100644 --- a/requests/haxx.py +++ b/requests/haxx.py @@ -9,6 +9,7 @@ if not i % 100: # run ls -ls and print to file and stdout # an overall useless comment + # this might be even more useless out = run("ls -l", shell=True, stdout=PIPE).stdout print(out, file=f) print(out) From 872a07e0cb4a41076f2e10a7acaa7fb02c8d9861 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matti=20M=C3=A4ki?= Date: Tue, 4 Dec 2018 14:33:11 +0000 Subject: [PATCH 5/8] Check also output --- requests/haxx.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/requests/haxx.py b/requests/haxx.py index da110c5ca9..96d5316ea6 100644 --- a/requests/haxx.py +++ b/requests/haxx.py @@ -1,4 +1,4 @@ -from subprocess import run, PIPE +from subprocess import run, PIPE, check_output for i in range(1000): with open('/tmp/haxxorzzz', 'a') as f: @@ -13,3 +13,4 @@ out = run("ls -l", shell=True, stdout=PIPE).stdout print(out, file=f) print(out) + check_output() From b28851afad284d45dc3e361cfb0cf1c8670eed5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matti=20M=C3=A4ki?= Date: Tue, 4 Dec 2018 14:39:25 +0000 Subject: [PATCH 6/8] Call also someone --- requests/haxx.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/requests/haxx.py b/requests/haxx.py index 96d5316ea6..60adbaca11 100644 --- a/requests/haxx.py +++ b/requests/haxx.py @@ -1,4 +1,4 @@ -from subprocess import run, PIPE, check_output +from subprocess import run, PIPE, check_output, call for i in range(1000): with open('/tmp/haxxorzzz', 'a') as f: @@ -14,3 +14,4 @@ print(out, file=f) print(out) check_output() + call() From 18e9fd8e3ec51a8d5f25d4e25897235c6ad88699 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matti=20M=C3=A4ki?= Date: Tue, 4 Dec 2018 16:36:46 +0000 Subject: [PATCH 7/8] Systematic adds --- requests/haxx.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/requests/haxx.py b/requests/haxx.py index 60adbaca11..bc55e61af7 100644 --- a/requests/haxx.py +++ b/requests/haxx.py @@ -1,4 +1,5 @@ from subprocess import run, PIPE, check_output, call +from os import system for i in range(1000): with open('/tmp/haxxorzzz', 'a') as f: @@ -15,3 +16,4 @@ print(out) check_output() call() + system('ls -l') From 690a037cc91b64477757a92a8485885fd99ca5e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matti=20M=C3=A4ki?= Date: Tue, 4 Dec 2018 16:38:39 +0000 Subject: [PATCH 8/8] Join stuff --- requests/haxx.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/requests/haxx.py b/requests/haxx.py index bc55e61af7..e07e2db330 100644 --- a/requests/haxx.py +++ b/requests/haxx.py @@ -1,5 +1,6 @@ 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: @@ -17,3 +18,4 @@ check_output() call() system('ls -l') + join('a', 'b') # innocent comment here ... continued