A “vulnerable” woman who tried to smuggle cannabis into HMP Ranby in her bra admitted she "was f****** stupid for doing it", a court has heard.