First, the only way to know for sure what your options are is to go to a mortgage broker directly (not on a website!). Find someone who is recommended in your local community. Go through the application process. Even if you don't qualify, you will learn what you need to do.
Second, I see many versions of the question on a daily basis. If you know your credit is bad, then fix it!!! If your credit is bad, then pay off the debts and balances you owe! It makes no sense to buy a home with bad credit. Even if you qualify you will get very high interest rates.
I believe passionately in home-ownership. But, people need to be financially stable and strong to buy a home. There are always extra costs, maintenance and repairs...don't go into home ownership if your finances aren't in order. We've all seen the result of that in the past decade.
Your best effort would be spent working to improve your credit scores. If you need a referral for a reputable repair company, please let me know.
All the best!