본문 바로가기

hacking sorcerer

(373)
으아아아아앙 쏠 수 있어 !! 지쨔 쏠 수 있어 !!! import pygame pygame.init() screen = pygame.display.set_mode((800, 600)) player_image = pygame.image.load("player.png") monster_image = pygame.image.load("monster.png") player_pos = [100, 100] monster_pos = [500, 100] player_speed = 5 monster_speed = 2 bullet_speed = 10 running = True shooting = False while running: for event in pygame.event.get(): if event.type == pygame.QUIT: running = False e..
투표하세용~ 열러분~ from web3 import Web3 from eth_abi import encode_abi web3 = Web3(Web3.HTTPProvider("http://localhost:8545")) contract_address = "0x1234567890abcdef" with open("voting.abi") as f: abi = json.load(f) contract = web3.eth.contract(abi=abi, address=contract_address) def cast_vote(voter, candidate): data = contract.functions.vote(voter, candidate).buildTransaction( { "from": web3.eth.accounts[0], "gas..
아주 간단하면서 깔끔한 논리 data = input().split() data_set = list(data) count = 0 for i in range(0, 3): max_number = max(data_set) while max_number in data_set: data_set.remove(max_number) count += 1 print(count)
아주 간단한 해킹 리뷰 Tryhackme Bounty Hacker 아주 간단한 해킹을 리뷰해보겠습니다 Tryhackme Bounty Hacker 입니다 포트 조사부터 해주고 ftp로 파고드는데 passive mode 오류가 발생했군요 음 고치면 되죠 뭐 ㅇㅋ 단서가 될만한 파일들을 전부 확보하였군요 msfconsole을 불러옵니다 ssh로 찾아봅니다 쓸만한 것을 찾았네요 공격을 했더니 ssh id와 password를 얻었습니다 이런 식으로 root 권한을 탈취해주시면 됩니다
간단한 오름차순 #어떤 숫자들이 입력되었을 때 그게 오름차순인지 파악 def is_ascending(numbers): for i in range(1, len(numbers)): if (numbers[i]
지구를 지켜라 #include #include #include #include #include using namespace std; torch::Tensor Normalize(torch::Tensor x) { x = x.div(255); x = x.sub(0.5).div(0.5); return x; } int main() { auto trainset = torch::data::datasets::MNIST("PATH_TO_STORE_TRAINSET") .map(Normalize); auto train_loader = torch::data::make_data_loadertorch::data::samplers::SequentialSampler( std::move(trainset), /batch_size=/64); class..
빨간약 먹을래? 파란약 먹을래? ''' The question Among the children's toys sold by Starlink, the most popular product is Bead Escape. Ball escape is a game in which red beads and blue beads are put one by one on a rectangular board, and then red beads are pulled out through a hole. The vertical size of the board is N and the horizontal size is M, and for convenience, it is divided into 1×1 compartments. The outermost rows and ..
컴퓨터와 디악초프라 from typing import List, Tuple class Computer: def __init__(self, num: int): self.num = num self.connections = [] def add_connection(self, other: 'Computer', cost: int): self.connections.append((other, cost)) def find_min_cost(n: int, p: int, k: int, connections: List[Tuple[int, int, int]]) -> int: computers = {num: Computer(num) for num in range(1, n+1)} for a, b, cost in connections: computers..