Skip to content

Script for extracting certain information from a Sonicwall firewall API using Python

Notifications You must be signed in to change notification settings

lehnertz85/sonicwall_export

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sonicwall_export

Script for extracting certain information from a Sonicwall firewall API using Python and extracting them into a CSV.

Info

I made this script in a pinch to export my Sonicwall's info for migration to Palo Alto. It was used against SonicOS 6.5. Some items may not fit your firewalls. As such, security wasn't a priority. For connecting to the SW, you just need a username and password.

Files

sonicos.py - The main script. You will need to edit the connection information on line 8. SonicOS/SonicAPI - Contains a class for the API object. Nothing should be edited here unless you want to add more endpoints for extrations. The existing endpoints are all I needed.

Requirements

  • Tested against python 3.9
  • requests - module for making http calls.

Be sure to run pip install -r requirements.txt to install from the requirements file.

About

Script for extracting certain information from a Sonicwall firewall API using Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages