분류 전체보기

문제 설명이 영어로되어있기도 하고 뭐라는지 모르겠어서 푸는데 애먹었다;; 대충 설명하자면 king을 빼앗는게 목표인데 instance 제출할때 다시 문제에서 king을 탈취할려고 시도할 것이다.이거를 방해하기 까지 하면 성공이다.// SPDX-License-Identifier: MITpragma solidity ^0.8.0;contract King { address king; uint256 public prize; address public owner; constructor() payable { owner = msg.sender; king = msg.sender; prize = msg.value; } receive() external ..
// SPDX-License-Identifier: MITpragma solidity ^0.8.0;contract Vault { bool public locked; bytes32 private password; constructor(bytes32 _password) { locked = true; password = _password; } function unlock(bytes32 _password) public { if (password == _password) { locked = false; } }}password를 알아내면 되는 문제이다.password가 private이여서 일반적인 접근은 안된다.다만..
보호되어 있는 글입니다.
· etc
그냥 기뻐서 써봤습니다...달다 달아~
나 같은 경우엔 Docker Desktop을 사용해서 WSL2랑 연결하여 사용하고 있다. 그런데 아주 가끔가다가 아래와 같은 에러를 마주칠 수 있었다.Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?대충 WSL과 연결이 안됐다는 건데 구글링 해본 결과sudo systemctl stop docker를 하고 restart하면 된다는 것이었다. 하지만 내 환경의 wsl에선 docker.service 자체가 없었고 혹시 몰라 docker.service를 설치하고 한 결과 docker desktop과 분리 된 wsl내에서만 사용 가능한 도커환경이 되었다. 이렇게 하면 근본적인 문제가 해결이..
프레딕
'분류 전체보기' 카테고리의 글 목록 (5 Page)