TL:DR Get a contract, and make sure it is with the network owners. It should be with the university IT department. Please, please make sure this is the case.
A contract protects you, and also defines how far you're allowed to go. Writing one is a great way to make sure you're all on the same page for scope of the pentest. The university also should have a legal department who can help write this, though I'd advise you to read it very carefully for clauses about who pays for things.
However, I'd like to add some perspective from nearly a decade in academic IT. Your professor, on their own, is not authorized to let you do this. However, if they're a full professor, they enjoy considerable protection from most universities. You, however, do not.
Academia is messy, professors do wierd, crazy things. They bring in devices from home, and plug them into the network. They run servers under their desks. They regularly lose important data, run their own websites exposing student information to the wider internet, share passwords, misuse systems, etc, etc.
It is entirely possible your professor dreamed this up without consulting the actual network owners
If this is the case, you're in big legal trouble, as you and your professor have carried out an unauthorized attack on a network. Please make sure that you have a contact in central university IT, make sure they're appraised of the scope of the exercise, and make sure they're in full agreement about what you're planning to do. Keep them copied in on all the emails.
The scenario I'm describing wouldn't be the wildest thing I've seen happen, and, when things go wrong, it wouldn't be the wildest thing that a professor swears they only authorized you to go so far, or denies all knowledge. I'd also add that a sizable percentage of people with tenure get there by being a brutal political operator, and have a whole bunch of practice in distancing themselves from failed projects.