From cba4f15ded849ed863555b86912c64e6d479d7cf Mon Sep 17 00:00:00 2001 From: QU35T-code Date: Thu, 7 Sep 2023 11:51:54 +0200 Subject: [PATCH 1/3] Fix pwntools pyelftools dependency --- sources/install/package_reverse.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sources/install/package_reverse.sh b/sources/install/package_reverse.sh index 415b11703..9ccc8ca7b 100644 --- a/sources/install/package_reverse.sh +++ b/sources/install/package_reverse.sh @@ -32,8 +32,9 @@ function install_pwntools() { # CODE-CHECK-WHITELIST=add-aliases,add-history colorecho "Installing pwntools" python -m pip install pwntools - python -m pip install pathlib2 + python -m pip install pathlib2 pyelftools==0.29 python3 -m pip install pwntools + python3 -m pip install pathlib2 pyelftools==0.29 add-test-command "python -c 'import pwn'" add-test-command "python3 -c 'import pwn'" add-to-list "pwntools,https://github.com/Gallopsled/pwntools,a CTF framework and exploit development library" From 841812ac7b7dcc79abbae911e7f67a58b0850afe Mon Sep 17 00:00:00 2001 From: QU35T-code Date: Thu, 7 Sep 2023 11:52:20 +0200 Subject: [PATCH 2/3] Remove useless dependency --- sources/install/package_reverse.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/install/package_reverse.sh b/sources/install/package_reverse.sh index 9ccc8ca7b..c181c54ae 100644 --- a/sources/install/package_reverse.sh +++ b/sources/install/package_reverse.sh @@ -34,7 +34,7 @@ function install_pwntools() { python -m pip install pwntools python -m pip install pathlib2 pyelftools==0.29 python3 -m pip install pwntools - python3 -m pip install pathlib2 pyelftools==0.29 + python3 -m pip install pyelftools==0.29 add-test-command "python -c 'import pwn'" add-test-command "python3 -c 'import pwn'" add-to-list "pwntools,https://github.com/Gallopsled/pwntools,a CTF framework and exploit development library" From 98925569a53443c8e38cae08f9320f5801c5d736 Mon Sep 17 00:00:00 2001 From: QU35T-code Date: Thu, 7 Sep 2023 11:54:16 +0200 Subject: [PATCH 3/3] Add comment --- sources/install/package_reverse.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/sources/install/package_reverse.sh b/sources/install/package_reverse.sh index c181c54ae..135cccfa7 100644 --- a/sources/install/package_reverse.sh +++ b/sources/install/package_reverse.sh @@ -32,6 +32,7 @@ function install_pwntools() { # CODE-CHECK-WHITELIST=add-aliases,add-history colorecho "Installing pwntools" python -m pip install pwntools + # Downgrade pyelftools version because : https://github.com/Gallopsled/pwntools/issues/2260 python -m pip install pathlib2 pyelftools==0.29 python3 -m pip install pwntools python3 -m pip install pyelftools==0.29