Hansack, born in Pearl Lagoon, Nicaragua, Hansack is an Afro-Nicaraguan. He originally signed with the Houston Astros as a non-drafted free agent on October 21, 1999. He spent 5 seasons with the organization before being released on March 29, 2004. From 2004-, he played professionally in the Nicaraguan Professional Baseball League. Hansack came back to Major League Baseball when he signed with the Red Sox on December 9, 2005. He played for the Red Sox Double-A team, the Portland Sea Dogs where he posted an 8–7 record with a 3.26 ERA in 31 games. His performance earned him a September call up on September 19,. He made his Major League debut against the Toronto Blue Jays on September 23, 2006, pitching 5 innings and allowing 3 runs while recording 2 strikeouts and received the loss. In his next appearance on October 1, 2006, against the Baltimore Orioles in the last game of the season, Hansack pitched a no-hitter for five innings before the remainder of the game was rained out. Because the game was rain-shortened, Hansack did not get the credit for an official no-hitter; however, he did get credit for both a complete game and a shutout. Hansack faced fifteen batters, walking only Fernando Tatís, who was then retired in a double play. Hansack pitched well in spring training, compiling a 2.08 ERA in five appearances. He did not make the major league roster and was optioned to Triple-A Pawtucket for the start of the 2007 season. On May 3, 2007, Hansack was called up to the Red Sox to replace Mike Timlin, who was placed on the DL. He was optioned again to Pawtucket on May 11, 2007, when the Red Sox recalled Javier López. On May 18, he was called up to replace Josh Beckett, who had been placed on the 15-day DL. On May 19, 2007, Hansack pitched the second game of a doubleheader at Fenway Park with the Atlanta Braves. He pitched 4 innings, allowing 6 hits and 4 runs, he struck out 2 and walked 1. He left after the 4th inning due to a bruised finger. The Red Sox lost the game 14–0. In, he started the year in Triple-A Pawtucket where he had a 6–10 record with a 4.08 ERA. On August 19, 2008, he was placed on the DL after being hit in the forearm with a ball. He was called up to the majors on September 7. On April 22, 2009 the Boston Red Sox released Hansack unconditionally. Hansack was re-signed as a minor league free agent by the Red Sox on January 25, 2010. In May 2010, the Red Sox released Hansack.