From df60d1cfa52b5b981593a86573d6427c60985768 Mon Sep 17 00:00:00 2001 From: laqieer Date: Sun, 2 Apr 2023 11:22:56 +0800 Subject: [PATCH 1/3] Fix easy_install.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ModuleNotFoundError: No module named 'urllib2' - urllib2 → urllib.request - IDArlingTeam → fidgetingbits - master → IDArling-main --- easy_install.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/easy_install.py b/easy_install.py index 8f3a6f3..ab8ebe2 100644 --- a/easy_install.py +++ b/easy_install.py @@ -12,7 +12,7 @@ # along with this program. If not, see . import os import shutil -import urllib2 +import urllib.request import zipfile import ida_diskio @@ -20,7 +20,7 @@ # Allow the user to override the download URL if "URL" not in locals(): - URL = "https://github.com/IDArlingTeam/IDArling/archive/master.zip" + URL = "https://github.com/fidgetingbits/IDArling/archive/IDArling-main.zip" print("[*] Installing IDArling...") # Install into the user directory on all platforms @@ -29,15 +29,15 @@ if not os.path.exists(plug_dir): os.makedirs(plug_dir, 493) # 0755 -print("[*] Downloading master.zip archive...") -archive_path = os.path.join(plug_dir, "master.zip") +print("[*] Downloading IDArling-main.zip archive...") +archive_path = os.path.join(plug_dir, "IDArling-main.zip") if os.path.exists(archive_path): os.remove(archive_path) with open(archive_path, "wb") as f: - f.write(urllib2.urlopen(URL).read()) + f.write(urllib.request.urlopen(URL).read()) -print("[*] Unzipping master.zip archive...") -archive_dir = os.path.join(plug_dir, "IDArling-master") +print("[*] Unzipping IDArling-main.zip archive...") +archive_dir = os.path.join(plug_dir, "IDArling-main") if os.path.exists(archive_dir): shutil.rmtree(archive_dir) with zipfile.ZipFile(archive_path, "r") as zip: @@ -57,7 +57,7 @@ shutil.rmtree(dst_dir) shutil.move(src_dir, dst_dir) -print("[*] Removing master.zip archive...") +print("[*] Removing IDArling-main.zip archive...") if os.path.exists(archive_path): os.remove(archive_path) if os.path.exists(archive_dir): From ba397e4ba38b132aebd3c9e377a9f6baf89bc587 Mon Sep 17 00:00:00 2001 From: laqieer Date: Sun, 2 Apr 2023 12:33:37 +0800 Subject: [PATCH 2/3] Fix URL in easy_install.py `404: Not Found` --- easy_install.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/easy_install.py b/easy_install.py index ab8ebe2..a943ecf 100644 --- a/easy_install.py +++ b/easy_install.py @@ -20,7 +20,7 @@ # Allow the user to override the download URL if "URL" not in locals(): - URL = "https://github.com/fidgetingbits/IDArling/archive/IDArling-main.zip" + URL = "https://github.com/fidgetingbits/IDArling/archive/main.zip" print("[*] Installing IDArling...") # Install into the user directory on all platforms From ba72f0b2f11c4e4cedd626494d22cde7bba0c8c1 Mon Sep 17 00:00:00 2001 From: laqieer Date: Sun, 2 Apr 2023 12:39:39 +0800 Subject: [PATCH 3/3] Fix command for easy install in README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8cf3770..c33c5da 100644 --- a/README.md +++ b/README.md @@ -87,7 +87,7 @@ Install the IDArling client into the IDA plugins folder. line into the console: ``` -import urllib2; exec(urllib2.urlopen('https://raw.githubusercontent.com/fidgetingbits/IDArling/master/easy_install.py')).read() +import urllib.request; exec(urllib.request.urlopen('https://raw.githubusercontent.com/fidgetingbits/IDArling/main/easy_install.py').read().decode()) ``` ### Integrated server