Skip to content
This repository was archived by the owner on Aug 13, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
16 changes: 8 additions & 8 deletions easy_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import os
import shutil
import urllib2
import urllib.request
import zipfile

import ida_diskio
import ida_loader

# 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/main.zip"

print("[*] Installing IDArling...")
# Install into the user directory on all platforms
Expand All @@ -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:
Expand All @@ -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):
Expand Down