Home » Script to decode Asus router configuration backup file

Script to decode Asus router configuration backup file

by Vlad Drumea
0 comment

I’ve been messing around with routers this weekend, and I’ve decided to write a PowerShell script to decode Asus router configuration backup files.

The script is inspired by this Bash script that I’ve used in my previous blog post.

You can find the PowerShell script in my Asus-Router-Config-Decoder GitHub repository.

Why?

Because I wanted to understand how Asus routers encode and decode their configuration backups.
I already had the previously mentioned Bash script as a starting point.
And I considered that it would be a nice PowerShell exercise, since I haven’t done any work on PSBlitz for a while.

What it does?

  1. decodes the provided .cfg file
  2. writes the decoded content to a text file
  3. outputs the following to the console:
    • Web GUI admin username and password
    • Wi-Fi network names (SSIDs)
    • Wi-Fi passwords (WPA PSKs)

How to use it?

Execute it in PowerShell (version 5.1 and up) and pass the name of the .cfg file you want to decode.

At the moment, I’ve successfully tested the script with the following Asus router models:

  • Asus RT-AX86U Pro
  • Asus RT-AC86U

Usage examples

PowerShell window showing the execution of the script and its output. PowerShell decode Asus router configuration backup

Conclusion

I just figured I’d share the result of my weekend PowerShell exercise in case anyone might need it.

You may also like

Leave a Comment

* By using this form you agree with the storage and handling of your data by this website.

This site uses Akismet to reduce spam. Learn how your comment data is processed.