전체 글

Security/암호학(Cryptography)

[CryptoHack] You either know, XOR you don't

설명 https://cryptohack.org/courses/intro/xorkey1/ CryptoHack – Home A fun, free platform to learn about cryptography through solving challenges and cracking insecure code. Can you reach the top of the leaderboard? cryptohack.org 내 비밀키로 암호화 했는데, 당신은 절대 추측할 수 없을 것이다. ! 플래그 형식과 이 과제에 도움이 될 수 있는 방법을 기억하라. 예제 풀이 0e0b213f26041e480b26217f27342e175d0e070a3c5b103e2526217f27342e175d0e077e263451150104 from ..

Security/암호학(Cryptography)

[CryptoHack] Favourite byte

설명 https://cryptohack.org/courses/intro/xorkey0/ CryptoHack – Home A fun, free platform to learn about cryptography through solving challenges and cracking insecure code. Can you reach the top of the leaderboard? cryptohack.org 다음 몇 과제에서는 이전에 배운 내용을 사용하여 XOR 퍼즐을 더 풀어볼 것이다. 단일 바이트로 XOR을 사용하여 데이터를 숨겼지만 그 바이트는 비밀이다. 16진수부터 디코딩하는 것을 잊지 마십시오. 예제 풀이 73626960647f6b206821204f21254f7d694f7624662065622127..

Security/암호학(Cryptography)

[CryptoHack] XOR Properties

개념 설명 https://cryptohack.org/courses/intro/xor1/ CryptoHack – Home A fun, free platform to learn about cryptography through solving challenges and cracking insecure code. Can you reach the top of the leaderboard? cryptohack.org 지난 과제에서는 XOR이 비트 수준에서 어떻게 동작하는지 보았다. 여기서는 XOR 작업의 속성을 다루고 플래그를 암호화한 일련의 작업을 무력화하는데 사용할 것이다. 이것이 어떻게 작동하는지에 대한 직관을 얻는 것은 나중에 특히 블록 암호 범주에서 실제 암호 시스템을 공격할 떄 크게 도움이 될 것이다. X..

Security/암호학(Cryptography)

[CryptoHack] XOR Starter

개념 설명 https://cryptohack.org/courses/intro/xor0/ CryptoHack – Home A fun, free platform to learn about cryptography through solving challenges and cracking insecure code. Can you reach the top of the leaderboard? cryptohack.org XOR은 비트가 같으면 0을 반환하고 그렇지 않으면 1을 반혼하는 비트 연산자이다. 교과서에서 XOR 연산자는 ⊕로 표시되지만, 대부분의 과제와 프로그래밍 언어에서는 caret ^이 대신 사용된다. 더 긴 이진수의 경우 비트별 XOR: 0110 ^ 1010 = 1100이다. 우리는 먼저 정수를 십진법에서..

Write up (Wargame)/Pwnable

[H4CGM] bof

보호되어 있는 글입니다.

Write up (Wargame)/Pwnable

[H4CGM] Qualification

int __cdecl main(int argc, const char **argv, const char **envp) { char s[48]; // [rsp+0h] [rbp-30h] BYREF init(); memset(s, 0, 0x28uLL); puts("Do you know pwnable?"); read(0, s, 0x40uLL); return 0; } main은 이게 전부고 NX만 존재 그냥 RET를 win 함수로 바꾸려 BOF하면 된다. 0x38까지, SFP를 덮고 0x8을 win함수 주소로 채운다. from pwn import * p = remote('pwn.h4ckingga.me', 10001) #p = process('./welcome') p.recvuntil('?\n') win = 0x00..

Write up (Wargame)/Forensic

[H4CGM] Paint 풀이

파일을 다운로드 하고 실행하면 이런 png 파일이 있다. 음 png? 이렇게 가려둔다면 stegsolve를 사용하는 방법을 떠올릴 수 밖에 없다. 이렇게 Red plane 0에 맞춰두면 보인다.

Security/암호학(Cryptography)

[CryptoHack] Bytes and Big Integers

개념 설명 https://cryptohack.org/courses/intro/enc4/ CryptoHack – Home A fun, free platform to learn about cryptography through solving challenges and cracking insecure code. Can you reach the top of the leaderboard? cryptohack.org RSA와 같은 암호 시스템은 숫자로 작동하지만 메세지는 문자로 구성된다. 우리가 어떻게 수학적 연산이 적용되도록 메세지를 숫자로 변환해야 할까? 가장 일반적인 방법은 메세지의 ordinal(서수) 바이트를 가져와 16진수로 변환하고 연결하는 것이다. 이는 base-16/hexadecimal number로..

그믐​
neutrinox4b1