How to purchase a property prior to sheriff sale

If the property is listed as an estate on the sheriff sale, is it possible to contact the attorney’s office listed to purchase prior to sheriff’s office. Does the executor have any power to sell at this point if it is listed to sell? Any help on this is appreciated.