# PHDays10

Был конкурс от Deteact по взлому контрактов. Поднимали на базе платформы OpenZeppelin Ethernaut. Ниже задания.

## May The Force Be With You

A long time ago in a galaxy far, far away... a new DAO was created. Can you steal all the YODA tokens belonging to `MayTheForceBeWithYou` contract?

{% file src="<https://4083725862-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lt55CvEG0Z_iAzSXHZx%2F-MaCyCLbY5VLUFC7NLxF%2F-MaCzjs4Cs3G4mxxEUro%2FMayTheForceBeWithYou_sol.txt?alt=media&token=1821f822-1d73-4c61-bef9-190037d7b355>" %}

**Level author**

Arseny Reutov\
[**me@raz0r.name**](mailto:me@raz0r.name)\
[**https://raz0r.name**](https://raz0r.name/)

## DiscoLP

> DiscoLP is a brand new liquidity mining protocol! You can participate by depositing some JIMBO or JAMBO tokens. All liquidity will be supplied to JIMBO-JAMBO Uniswap pair. By providing liquidity with us you will get DISCO tokens in return!

You have 1 JIMBO and 1 JAMBO, can you get at least 100 DISCO tokens?

{% file src="<https://4083725862-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lt55CvEG0Z_iAzSXHZx%2F-MaCyCLbY5VLUFC7NLxF%2F-MaD-CHGYavlXHwZH4fZ%2FDiscoLP_sol.txt?alt=media&token=2067a516-ef06-421d-bb0f-50c27671f626>" %}

**Level author**

Arseny Reutov\
[**me@raz0r.name**](mailto:me@raz0r.name)\
[**https://raz0r.name**](https://raz0r.name/)

## P2PSwapper

> P2PSwapper is a super convenient zero-trust P2P DEX for any assets! The fee is flat so the whales are welcome! Also, we have a referral program, and all the fees are equally distributed between us and the lead owners.

We've created a sample trade and deposited some money for it. We wanna make sure you cannot withdraw the fees assigned for our trade.

You have to drain all the WETH tokens from the P2PSwapper's balance.

{% file src="<https://4083725862-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lt55CvEG0Z_iAzSXHZx%2F-MaCyCLbY5VLUFC7NLxF%2F-MaD-ddU4rdQkvKjFCBV%2FP2PSwapper_sol.txt?alt=media&token=9e8479a8-f21d-4c6e-8f5a-49950252baf0>" %}

**Level author**

Omar Ganiev\
[**beched@deteact.com**](mailto:beched@deteact.com)\
[**https://defisecurity.io/**](https://defisecurity.io/)

## FakerDAO

> FakerDAO is the best lending protocol! Only at FakerDAO you can borrow a LAMBO if you provide enough collateral in LP tokens!

You have 5000 YIN and 5000 YANG, can you borrow 1 LAMBO?

{% file src="<https://4083725862-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lt55CvEG0Z_iAzSXHZx%2F-MaCyCLbY5VLUFC7NLxF%2F-MaD-ytJcM0fb-JdEMGv%2FFakerDAO_sol.txt?alt=media&token=09d7f840-0234-46f6-8542-bf34170e1311>" %}

**Level author**

Arseny Reutov\
[**me@raz0r.name**](mailto:me@raz0r.name)\
[**https://raz0r.name**](https://raz0r.name/)

## Main Khinkal Chef

MainChef is against slavery! Move from `MasterChef` to `MainChef` and move from `SUSHI`s to `KHINKAL`s!

Please check if you can drain the funds from our main contract.

You have to drain all the KHINKAL tokens from the MainChef's balance.Get new instance

{% file src="<https://4083725862-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lt55CvEG0Z_iAzSXHZx%2F-MaCyCLbY5VLUFC7NLxF%2F-MaD0KDyYkmVRtVfhSzX%2FMainKhinkalChef_sol.txt?alt=media&token=e4107a17-bd8c-46f0-8f40-60e765578690>" %}

**Level author**

Omar Ganiev\
[**beched@deteact.com**](mailto:beched@deteact.com)\
[**https://defisecurity.io/**](https://defisecurity.io/)
