Skip to content

About

A powerful Google Colab downloader that saves torrents, YouTube videos, playlists, audio, and direct links straight to Google Drive.

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

AzuDL - GC2GD v1.5.0

Azizi Universal Downloader - Google Colab to Google Drive
Security & Privacy Edition

A powerful Google Colab downloader that saves torrents, YouTube videos, playlists, audio, and direct links straight to Google Drive with enhanced security and privacy features.

فارسی: README.fa.md


Version

Version: 1.5.0 - Security Edition
Status: Production Ready ✓
Release: January 2026

🔐 New in v1.5.0: Security & Privacy

Key Security Improvements

  • ✅ BT Encryption Enforced: arc4 encryption mandatory on all torrent connections
  • ✅ IP Blocklists: 3 free sources blocking ~25,000 hostile IP ranges
  • ✅ File Encryption: AES-256-GCM before uploading to Google Drive
  • ✅ Credential Hardening: Owner-only access control (0o600)
  • ✅ Privacy Fingerprinting: Customized user-agent and peer ID
  • ✅ Secure Logging: Complete audit trail with sensitive data masking
  • ✅ OWASP/NIST Compliance: Security standards implemented

Quick Start (3 Steps)

  1. Copy the complete file
  2. Paste into Google Colab
  3. Run - all features auto-enabled
# File: AzuDL_GC2GD_v1.5.0_COMPLETE_COLAB.py
# Already includes:
# ✓ All dependencies
# ✓ All security modules
# ✓ All 3 notebook cells
# ✓ Ready to copy-paste into Colab

Features

Download Support

  • Direct HTTP/HTTPS/FTP links
  • YouTube videos and playlists
  • Torrent magnet links
  • .torrent file downloads
  • Batch link downloads
  • GitHub repository releases
  • Private torrent mode with seeding

Security & Privacy

  • End-to-end file encryption (AES-256-GCM)
  • Mandatory BT encryption (arc4)
  • IP blocklist support
  • Privacy-focused aria2 configuration
  • Secure credential storage
  • Complete audit logging

Google Drive Integration

  • Direct downloads to Google Drive
  • Automatic encryption before upload
  • Folder organization
  • Storage monitoring
  • Verified transfer workflow

File Management

  • Download history tracking
  • SHA256/SHA512 checksums
  • ZIP folder creation
  • Latest file viewer
  • Automatic cleanup options

Installation

Method 1: Copy-Paste (Recommended)

1. Open: https://colab.research.google.com
2. Copy file content from:
   https://github.com/pete000/AzuDL-GC2GD/blob/main/AzuDL_GC2GD_v1.5.0_COMPLETE_COLAB.py
3. Paste into Colab cell
4. Press Ctrl+Enter

Method 2: Direct Link

Simply paste this into Colab:
!git clone https://github.com/pete000/AzuDL-GC2GD.git
%cd AzuDL-GC2GD
!python "AzuDL_GC2GD_v1.5.0_COMPLETE_COLAB.py"

Usage Examples

Download Torrent with Encryption

downloader = TorrentDownloader()
downloader.start_aria2()

# Download torrent
downloader.download_torrent(
    "magnet:?xt=urn:btih:...",
    output_name="my_file"
)

# Encrypt and upload to Drive
downloader.encrypt_and_upload(
    "/content/downloads/my_file",
    password="secure_password",
    cleanup_source=True
)

Encrypt Local Files

from AzuDL_GC2GD_v1.5.0_COMPLETE_COLAB import FileEncryptor

encryptor = FileEncryptor()

# Encrypt
encryptor.encrypt_file(
    "/path/to/file",
    "/path/to/file.enc",
    password="secure_password"
)

# Decrypt
encryptor.decrypt_file(
    "/path/to/file.enc",
    "/path/to/file",
    password="secure_password"
)

Configure Security Level

from AzuDL_GC2GD_v1.5.0_COMPLETE_COLAB import CONFIG_PRESETS

# Maximum privacy (slower)
preset = CONFIG_PRESETS["privacy_maximum"]

# Balanced (recommended)
preset = CONFIG_PRESETS["privacy_balanced"]

# Performance-focused
preset = CONFIG_PRESETS["privacy_performance"]

Storage Structure

AzuDL creates the following folder structure in Google Drive:

/MyDrive/AzuDL-GC2GD/
├── TorrentDownloads/
├── YouTubeDownloads/
├── DirectDownloads/
├── BatchDownloads/
├── GitHubDownloads/
├── Archives/
└── Logs/
    ├── aria2.log
    ├── aria2.session
    ├── azudl_YYYYMMDD_HHMMSS.log
    └── blocklists/

Configuration

Aria2 Configuration

Default configuration includes:

bt-require-crypto=true          # Mandatory encryption
bt-min-crypto-level=arc4        # Minimum arc4 encryption
bt-force-encryption=true        # Force all connections
bt-max-peers=55                 # Limit peer connections
enable-dht=true                 # DHT enabled
enable-peer-exchange=true       # PEX enabled

Blocklist Support

Automatic IP blocklist downloads from:

  • Level 1: Spyware, adware, throttlers
  • Level 2: Malware, trojans, botnets
  • BadPeers: Malicious peers, honey pots

Encryption Algorithm

Algorithm: AES-256-GCM
Key Derivation: PBKDF2-SHA256
Iterations: 100,000 (OWASP compliant)
Authentication: HMAC-SHA256

Security Considerations

✓ Do's

  • Use strong passwords (16+ characters, mixed case, symbols)
  • Store passwords in secure password manager
  • Encrypt sensitive files before uploading
  • Keep session logs secure
  • Use privacy-focused presets for sensitive content

✗ Don'ts

  • Don't share passwords via email/chat
  • Don't disable BT encryption
  • Don't trust unverified torrent sources
  • Don't leave Colab notebooks unattended
  • Don't commit credentials to Git

Limitations

  • Google Colab Timeout: Colab may disconnect idle sessions
  • File Size Limits: Google Drive API has rate limits
  • Bandwidth: Shared Colab resources may throttle transfers
  • Legal: Only download content you have rights to download

Supported Link Types

Type Support Notes
HTTP/HTTPS Direct ✅ Full support with custom headers
FTP Links ✅ Direct download
YouTube Videos ✅ Quality selection, audio-only
YouTube Playlists ✅ Batch video download
Magnet Links ✅ With encryption enforcement
.torrent URLs ✅ Remote or local files
Private Torrents ✅ Seeding support
GitHub Releases ✅ Repository download

Troubleshooting

Aria2 Won't Start

# Check if aria2 is installed
!which aria2c

# Reinstall
!apt-get update && apt-get install -y aria2

Encryption Failed

# Check password strength
# Verify file permissions
# Check disk space

Google Drive Upload Failed

# Re-authenticate
drive.mount('/content/drive', force_remount=True)

# Check quotas
# Verify folder permissions

Low Download Speed

# Switch to performance preset
# Reduce concurrent downloads
# Check network quality

Advanced Features

Custom RPC Control

# Enable RPC for advanced control
# Configuration: enable-rpc=true
# RPC Port: 6800 (default)

Session Persistence

# Aria2 automatically saves session to:
# /content/drive/MyDrive/AzuDL-GC2GD/Logs/aria2.session
# Resume downloads on Colab restart

Batch Processing

links = [
    "https://example.com/file1.zip",
    "magnet:?xt=urn:btih:...",
    "https://youtube.com/watch?v=..."
]
# Download all in sequence

Documentation Files

File Purpose
README.md This file - Main documentation
SECURITY_AUDIT.md Detailed security analysis (10 vulnerabilities fixed)
README_SECURITY.md Complete security guide
CHANGELOG.md Version history and roadmap
azudl_security.py Standalone security module
azudl_blocklists.py Standalone blocklist module

Performance Metrics

Metric Value
Overhead ~2-3% CPU
Memory Usage ~150-200 MB
Encryption Speed ~300-500 MB/s
Decryption Speed ~300-500 MB/s
BT Connection Time ~2-5 seconds
Blocklist Load Time ~1-2 seconds

Compliance & Standards

Standard Status Notes
OWASP Top 10 ✅ CWE-22, CWE-209, CWE-327 addressed
NIST SP 800-132 ✅ PBKDF2 100k iterations
Cryptography.io ✅ Best practices implemented
ISO 27001 ✅ Security controls
GDPR ✅ User-controlled, local processing

License

MIT License - See LICENSE file


Support & Contributing


Author


Acknowledgments

  • Aria2: High-speed download utility
  • yt-dlp: YouTube downloader
  • Google Colab: Free cloud computing
  • Cryptography.io: Secure crypto library
  • Community: Contributors and testers

Last Updated: January 2026
Version: 1.5.0 - Security Edition
Status: ✅ Production Ready

About

A powerful Google Colab downloader that saves torrents, YouTube videos, playlists, audio, and direct links straight to Google Drive.

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages