A man has been jailed for four months after he posted videos to Facebook showing himself brandishing two replica guns, nunchucks, capsicum spray and handcuffs, and shooting at cockroaches inside his house.

Rory Guru Torino, 35, from South Granville, pleaded guilty on Wednesday to two counts of possessing an unauthorised firearm and two counts of possessing a prohibited weapon without a permit.

Rory Torino holds a replica pistol in a video posted to Facebook. Credit:Facebook

Police raided his home in March after Torino posted multiple videos to his public Facebook page, including one where he claimed to be an FBI special agent and wore an "FBI" hat as he racked the slide of a black pistol and placed a silencer on the end.

Earlier in the same video he wore a wig as he lifted weights and swung nunchucks.