본문 바로가기

hacking sorcerer

(392)
solidity로 토큰 만들기 pragma solidity ^0.6.0; import " uint256) public balanceOf; mapping(address => mapping(address => uint256)) public allowance; constructor(string memory _name, string memory _symbol, uint8 _decimals, uint256 _totalSupply) public { name = _name; symbol = _symbol; decimals = _decimals; totalSupply = _totalSupply; balanceOf[msg.sender] = totalSupply; } function transfer(address _to, uint256 _value) ..
난 몰러요 그런 거 나는 잘 몰러유~ #!/bin/bash echo "~ gnu/screenroot ~" echo "[+] First, we create our shell and library..." cat > /tmp/libhax.c
Put my sneakers on '''(lambda _, __, ___: _(_, __, ___))(lambda _, __, ___: chr(___ % __) + _(_, __, ___ // __), *(lambda _: _(_ - 1))(100)) f=lambda:[[int(c)for c in s.strip()]for s in open("life.txt")] g=lambda m,x,y:sum(m[x+i][y+j]for i in(-1,0,1)for j in(-1,0,1)if(i or j)and m[x+i][y+j]) h=lambda m:[[g(m,x,y)in(3,2)and m[x]여기 처음 나오는 코드는 IOCCC 코드를 참고하였는데 처음에 이런 걸 시도했다가는 주화입마에 빠질 수 있으니 참고만 하시는 걸로 큐큐[y]or g(m,x,y..
2023년이 왔어요 #각 자리수 대로 합을 구하는 프로그램 #예 1) 1234 => 1+2+3+4=10 #예 2) 364 => 3+6+4=13 p = int(input()) def add_digits(n): sum = 0 while n > 0: sum += n % 10 n //= 10 return sum #print(add_digits(1234)) #print(add_digits(364)) print(add_digits(p)) import time current_time = time.time() print(current_time) seconds_since_2023 = current_time - time.mktime(time.strptime("2023-01-01 00:00:00", "%Y-%m-%d %H:%M:%S")) pr..
쿠키 한 사바리 드시고 가유~ class FunctionProblem: _test_cases = [] _solution = "" def check(self, function): for x_in, expected in self._test_cases: if function(*x_in) != expected: return False return True class EqualityCheckProblem: _vars = [] _default_values = [] def check(self, **kwargs): for var, default in zip(self._vars, self._default_values): if var not in kwargs or kwargs[var] == default: return False return True ..
데시멀바 #10진수를 입력받아 2진수로 출력 p = int(input()) def decimal_to_binary(decimal): binary = [] while decimal > 0: binary.append(decimal % 2) decimal //= 2 for item in reversed(binary): print(item, end="") decimal_to_binary(p) ''' p = int(input()) s = [] for i in (0, 100): s.append(p % 2) p = p // 2 i += 1 if p == 1: s.append(1) quit() if p == 0: quit() for item in reversed(s): # Print the item without any bla..
쿠푸 왕의 피라미드 for i in range(20): for j in range(20 - i - 1): print(" ", end="") for j in range(2 * i + 1): print("*", end="") print() for i in range(20): print("{:^40}".format("*" * (2 * i + 1)))
Tryhackme Road 이번에는 제가 아주 재미있게 풀었던 Tryhackme Road를 리뷰해보겠습니다 저는 짧은 시간을 쪼개서 리뷰에 중점을 두는 것이므로 자세한 설명은 다루지 않습니다. 자세한 설명은 다른 블로그를 참고해주세요 ~* 일단 뭐 이건 기본이죠? 그 다음 비밀번호를 바꾸어주는 곳에서 admin의 비밀번호를 버프스위트를 이용하여 바꿔버립니다 그 다음 다음 shell.php를 profile 안쪽에 넣어줍니다 오우야 재미있네요 mongo와 mysql이 있습니다. 안으로 파고듭니다. 야미 야미 대충 요로코롬 root 권한까지 탈취하면 모든 플래그를 얻을 수 있습니다.

반응형