Bankrupt and "a guest of Her Majesty", Salim Mehajer is busy representing himself in court from prison.

After years of unrelenting headlines, thanks to a big wedding in August 2015 and a raft of court cases, the colourful former deputy mayor of Auburn returned to relative obscurity in June after he was sentenced to 11 months in prison for electoral fraud.

Salim Mehajer outside the Federal Court in April. Credit:AAP

But on Wednesday, Mehajer returned to the limelight and the Federal Court in Sydney via audiovisual link from Cooma Correctional Centre.

Dressed in prison greens and surrounded by court documents, Mehajer told Justice Michael Lee he would be "out of custody in three to four months" and would make a fresh bid to overturn his bankruptcy "the moment I'm out of custody".