일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
- 운영체제
- 알고리즘
- 화이트햇콘테스트
- WebHacking
- crosssitescripting
- Writeup
- CCE
- web
- XSS
- 상호배제
- 해킹
- 웹해킹
- 프로세스
- SQL
- Los
- hacking
- rubiya
- SQLInjection
- CODEGATE
- lordofsqlinjection
- sqli
- Python
- ctf
- webhacking.kr
- webhackingkr
- SQL Injection
- 시스템프로그래밍
- Linux
- ubuntu
- 시스템
- Today
- Total
목록Ethernaut (2)
One_Blog

상당히 쉬운 문제다. 일단 코드는 다음과 같다. 솔리디티 이전 버전에선 컨트랙트와 동일한 이름의 함수를 만들면 해당 함수가 생성자의 역할을 대신 하곤 했다. Fal1out함수도 위에 constructor까지 적어놓은 거보면 아마 그 생각으로 만들어놓은 것 같은데.. 오타가 나서 컨트랙트 이름은 Fallout인데 함수명은 Fal1out이 되어버렸다. 그래서 그냥 호출이 가능하다. from web3 import Web3, utils import json from solc import * import time account_address = 'REDACTED' private_key = 'REDACTED' contract_address = 'REDACTED' w3 = Web3(Web3.HTTPProvider('..

이번에는 블록체인 워게임 라이트업입니다. Level 1 - FallBack 풀이입니다. 해당 문제의 컨트랙트는 // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; contract Fallback { mapping(address => uint) public contributions; address public owner; constructor() { owner = msg.sender; contributions[msg.sender] = 1000 * (1 ether); } modifier onlyOwner { require( msg.sender == owner, "caller is not the owner" ); _; } function contribute() ..