# Emergency Withdraw

The MasterChef contract has an Emergency Withdraw function that can be executed from [BSCscan](https://bscscan.com/) site. This can come handy in case of a DDoS attack where the website remains unaccesible.

Calling Emergency Withdraw Function from BSCscan

![](https://miro.medium.com/max/295/1*4i2BDZB4fXmirDeNXbxNfQ.png)

You only need to know is the [pid number of your pool ](https://docs.thelab.finance/farming-and-pools/list-of-pools-and-farms)and then execute the transaction by clicking “Write” and your funds will be withdrawn.
