Bad idea you don’t want a moldy attic, I exhaust out my dryer vent, it exhausts out the crawl space.
If odor is a security issue you need a filter. You can buy one or build one but the only way to control it is to filter it through something that can capture volatile organic compounds like activated carbon.
depending on the size of your grow space carbon filters are fairly inexpensive to buy and probably even cheaper to build(saw one made out of a coffee can on YouTube, didn’t pay close attention to the details though because I had a filter)