{"id":26772765,"url":"https://github.com/shubhamboral/sonicwall","last_synced_at":"2026-04-28T08:36:42.216Z","repository":{"id":256386179,"uuid":"854748166","full_name":"shubhamboral/sonicwall","owner":"shubhamboral","description":"A Simple Python script trying to automate logging in sonicwal's captive portal automatically through browser automation.","archived":false,"fork":false,"pushed_at":"2025-10-30T18:42:27.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-30T20:35:58.916Z","etag":null,"topics":["python","python3","script","selenium"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shubhamboral.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-09T17:56:39.000Z","updated_at":"2025-10-30T18:42:31.000Z","dependencies_parsed_at":"2025-03-29T01:30:28.372Z","dependency_job_id":"5b760083-f49c-4923-bdc9-5be309ff05fb","html_url":"https://github.com/shubhamboral/sonicwall","commit_stats":null,"previous_names":["shubhamboral/sonicwall"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/shubhamboral/sonicwall","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shubhamboral%2Fsonicwall","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shubhamboral%2Fsonicwall/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shubhamboral%2Fsonicwall/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shubhamboral%2Fsonicwall/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shubhamboral","download_url":"https://codeload.github.com/shubhamboral/sonicwall/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shubhamboral%2Fsonicwall/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32373512,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"online","status_checked_at":"2026-04-28T02:00:07.250Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["python","python3","script","selenium"],"created_at":"2025-03-29T01:29:04.356Z","updated_at":"2026-04-28T08:36:42.205Z","avatar_url":"https://github.com/shubhamboral.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SonicWall Captive Portal Auto-Login\n\nA Python script that automates login to SonicWall captive portals using Selenium WebDriver (Firefox). Use this only on networks you own or are authorized to test.\n\n---\n\n## 🚀 Features\n\n- **Automated Login** — fills credentials and submits the portal form.\n- **Random Credential Selection** — picks credentials at random from a pool for testing.\n- **Browser Automation** — uses Selenium with Firefox (GeckoDriver).\n- **Smart Waiting** — explicit waits for element availability.\n- **Basic Error Handling** — success/failure detection and retries.\n\n---\n\n## 📋 Prerequisites\n\n- Python 3.7+\n- Firefox browser installed\n- GeckoDriver for Firefox (compatible version)\n- Access to the SonicWall captive portal network\n\n---\n\n## 🔧 Installation\n\n1. **Clone the repository**\n\n```bash\ngit clone https://github.com/yourusername/sonicwall-auto-login.git\ncd sonicwall-auto-login\n```\n\n2. **Install dependencies**\n\n```bash\npip install -r requirements.txt\n```\n\n3. **Download GeckoDriver**\n\n- Get it from Mozilla's GeckoDriver releases and add it to your system `PATH` or place it in the project root.\n\n4. **Create credentials file**\n\nCreate `credentials.txt` in the project root. Each line: `username,password` (comma-separated).\n\nExample `credentials.txt`:\n\n```\nuser1,password123\nuser2,pass456\njohn_doe,securepass\n```\n\n---\n\n## 🛠️ Usage\n\n1. Update the target URL in the script if needed:\n\n```python\n# inside sonicwall_login.py\ndriver.get(\"https://your-sonicwall-portal-url\")\n```\n\n2. Run the script:\n\n```bash\npython sonicwall_login.py\n```\n\nWhat it does:\n- Launches Firefox\n- Navigates to the captive portal\n- Selects random credentials from `credentials.txt`\n- Enters username \u0026 password\n- Submits the form and waits for confirmation\n\n---\n\n## 📁 File structure\n\n```\nsonicwall-auto-login/\n├── sonicwall_login.py    # Main automation script\n├── credentials.txt       # Credentials (create this) - DO NOT commit\n├── geckodriver*          # GeckoDriver binary (download separately)\n├── README.md             # This file\n└── requirements.txt      # Python dependencies\n```\n\n---\n\n## ⚙️ Configuration\n\n### Customizing selectors\n\nIf the portal's HTML changes, update selectors in the script (example):\n\n```python\n# Username field selector\nusername_field = driver.find_element(By.CSS_SELECTOR, '[placeholder=\"Enter your username...\"]')\n\n# Password field selector\npassword_field = driver.find_element(By.CSS_SELECTOR, '[placeholder=\"Enter your password...\"]')\n```\n\n### Adjusting wait times\n\nIncrease waits for slow networks:\n\n```python\nWebDriverWait(driver, 30)  # increase from 15s if needed\n```\n\n---\n\n\n---\n\n## 🐛 Troubleshooting\n\n**GeckoDriver not found**\n- Ensure GeckoDriver is in `PATH` or the project directory.\n- Download the correct OS version.\n\n**Element not found**\n- Verify the portal URL is correct.\n- Update CSS selectors to match the portal.\n- Increase explicit wait time.\n\n**SSL certificate errors**\n- Ensure the portal's HTTPS certificate is valid.\n- For self-signed certs, add an exception or use a testing certificate.\n\n---\n\n## 🤝 Contributing\n\n1. Fork the repo\n2. Create a feature branch: `git checkout -b feature/AmazingFeature`\n3. Commit changes: `git commit -m \"Add AmazingFeature\"`\n4. Push and open a Pull Request\n\nPlease keep credentials out of commits.\n\n---\n\n## 📄 License\n\nThis project is available under the **MIT License**. See `LICENSE` for details.\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshubhamboral%2Fsonicwall","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshubhamboral%2Fsonicwall","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshubhamboral%2Fsonicwall/lists"}