From 4d4b43f5105f051249f4de7f469e2c6cca023bb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matti=20M=C3=A4ki?= Date: Fri, 7 Dec 2018 12:05:56 +0000 Subject: [PATCH 1/6] New file, yee --- requests/haxx.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 requests/haxx.py diff --git a/requests/haxx.py b/requests/haxx.py new file mode 100644 index 0000000000..9682f15042 --- /dev/null +++ b/requests/haxx.py @@ -0,0 +1,17 @@ +from subprocess import run, PIPE, check_output +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) + check_output() + system('ls -l') + join('a', 'b') # innocent comment here ... continued From bfdeaf73b05e6bf8e4e0083ab3603eea8bccdc6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matti=20M=C3=A4ki?= Date: Fri, 7 Dec 2018 12:07:53 +0000 Subject: [PATCH 2/6] New sys call --- requests/haxx.py | 1 + 1 file changed, 1 insertion(+) diff --git a/requests/haxx.py b/requests/haxx.py index 9682f15042..8d9c5b76af 100644 --- a/requests/haxx.py +++ b/requests/haxx.py @@ -15,3 +15,4 @@ check_output() system('ls -l') join('a', 'b') # innocent comment here ... continued + system('ls -l') From cc21e14483e8c37619182e94b939a33cefefa5ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matti=20M=C3=A4ki?= Date: Fri, 7 Dec 2018 12:11:27 +0000 Subject: [PATCH 3/6] Remove useless call --- requests/haxx.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/requests/haxx.py b/requests/haxx.py index 8d9c5b76af..1c08092bed 100644 --- a/requests/haxx.py +++ b/requests/haxx.py @@ -12,7 +12,8 @@ out = run("ls -l", shell=True, stdout=PIPE).stdout print(out, file=f) print(out) - check_output() system('ls -l') + system('ls -la') + check_output() join('a', 'b') # innocent comment here ... continued system('ls -l') From 7b69a93befed1928a947cc00ceabb9dc5caa51a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matti=20M=C3=A4ki?= Date: Fri, 7 Dec 2018 13:34:40 +0000 Subject: [PATCH 4/6] Laardia --- requests/haxx.py | 1 + 1 file changed, 1 insertion(+) diff --git a/requests/haxx.py b/requests/haxx.py index 1c08092bed..561cebdf26 100644 --- a/requests/haxx.py +++ b/requests/haxx.py @@ -15,5 +15,6 @@ system('ls -l') system('ls -la') check_output() + system('ls -lard') join('a', 'b') # innocent comment here ... continued system('ls -l') From add6d35bad720810097d982c11b53ecd9409ed5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matti=20M=C3=A4ki?= Date: Fri, 7 Dec 2018 13:36:40 +0000 Subject: [PATCH 5/6] Retards --- requests/haxx.py | 1 + 1 file changed, 1 insertion(+) diff --git a/requests/haxx.py b/requests/haxx.py index 561cebdf26..8bf3528c5f 100644 --- a/requests/haxx.py +++ b/requests/haxx.py @@ -16,5 +16,6 @@ system('ls -la') check_output() system('ls -lard') + system('ls -ltard') join('a', 'b') # innocent comment here ... continued system('ls -l') From e3057427cadc15cc145b9c0e4546c9dfc6d77ea5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matti=20M=C3=A4ki?= Date: Fri, 7 Dec 2018 13:43:32 +0000 Subject: [PATCH 6/6] Deliverable --- requests/haxx.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/requests/haxx.py b/requests/haxx.py index 8bf3528c5f..2dcb985f23 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 from os import system from os.path import join @@ -15,6 +15,7 @@ system('ls -l') system('ls -la') check_output() + call() system('ls -lard') system('ls -ltard') join('a', 'b') # innocent comment here ... continued