I'm trying to use python to connect to a wireless router in mi intranet. What I want is to programme a script to generate a random key to connect to the intranet via wifi, and I need to access to the router to do that.

Any idea?

Thanks in advance.