Yes, you could definitely get in trouble.First and foremost, it is very likely--almost certain, in fact--that a transaction like the one you describe would be correctly seen as a deliberate attempt to defraud a creditor and would therefore be disallowed from the bankruptcy; so this debt would likely not be discharged and the bank could sue you and use all the normal processes to collect.Second, it is possible that under some circumstances, it could even be seen as a criminal act--a form of theft by deception, by taking out a loan (which is what a cash advance is) under false pretenses, when you had no intention of repaying it. While less likely than the above consequences, it's not impossible you could face criminal charges.