These ducts should be insulated or replaced with pre fab insulated ductwork or flexduct and a better installation would have shortened that very long duct as much as.
Bathroom echaust duct in attic.
These steps outline how to install a flexible duct with an attic roof vent.
When bathroom exhaust ducts are not properly insulated and vented the warm moist air traveling through them hits the colder section of the duct in the unconditioned attic space causing condensation on the duct work.
You should never exhaust the bathroom fan directly into the attic.
That condensation drips from the duct work in the attic space and the exhaust fan.
Bathroom exhaust fans perform an important function by removing excess moisture from your home.
If you re not comfortable working on a ladder call a professional for help.
No you cannot vent your bathroom exhaust fan into the attic.
When venting a bathroom exhaust fan make sure to vent the air to the outside rather than into your attic where it can cause mold and mildew to form.
Dumping bathroom exhaust into an attic or under roof space invites costly mold contamination frost under the roof in freezing climates moisture damage to roof sheathing possibly even plywood delamination or rot roof failures and shorter roof shingle life.
Your attic is not a temperature controlled environment is never the same temperature as your living space and generally closer to the temperature outside.