2013년 11월 26일 화요일

ping으로 서버의 운영체제를 알기

윈도우 계열
# ping 192.168.1.34
PING 192.168.1.34 (192.168.1.34): 56 data bytes
64 bytes from 192.168.1.34: icmp_seq=0 ttl=128 time=1.418 ms
64 bytes from 192.168.1.34: icmp_seq=1 ttl=128 time=0.814 ms
64 bytes from 192.168.1.34: icmp_seq=2 ttl=128 time=0.802 ms
64 bytes from 192.168.1.34: icmp_seq=3 ttl=128 time=0.810 ms
64 bytes from 192.168.1.34: icmp_seq=4 ttl=128 time=0.809 ms
64 bytes from 192.168.1.34: icmp_seq=5 ttl=128 time=0.807 ms
--- 192.168.1.34 ping statistics ---
6 packets transmitted, 6 packets received, 0% packet loss
round-trip min/avg/max/std-dev = 0.802/0.910/1.418/0.227 ms
#


유닉스 계열

# ping 192.168.1.32
PING 192.168.1.32 (192.168.1.32): 56 data bytes
64 bytes from 192.168.1.32: icmp_seq=0 ttl=255 time=1.649 ms
64 bytes from 192.168.1.32: icmp_seq=1 ttl=255 time=0.657 ms
64 bytes from 192.168.1.32: icmp_seq=2 ttl=255 time=0.632 ms
64 bytes from 192.168.1.32: icmp_seq=3 ttl=255 time=0.635 ms
64 bytes from 192.168.1.32: icmp_seq=4 ttl=255 time=0.627 ms
64 bytes from 192.168.1.32: icmp_seq=5 ttl=255 time=0.634 ms
--- 192.168.1.32 ping statistics ---
6 packets transmitted, 6 packets received, 0% packet loss
round-trip min/avg/max/std-dev = 0.627/0.805/1.649/0.378 ms
#

제가 핑을 쏘아 봤습니다.
34번의 경우는 윈도우 계열의 서버
32번은 리눅스 서버입니다.

어떻게 구별 할 수 있냐하면 ... 바로 TTL (Time To Live)

ttl 값이 255 는 유닉스 계열
ttl 값이 128 은 윈도우 계열입니다.
ttl값은 라우터를 하나 지날때 마다 1씩 감소 합니다.
그러므로 ttl값이 100번때이면 윈도우 계열
ttl값이 200번때면 유닉스 계열 이겠지요!

Reentrancy Attack: 블록체인 스마트 컨트랙트의 치명적인 취약점

블록체인 기술이 전 세계적으로 주목받으면서 스마트 컨트랙트(Smart Contract)의 사용이 급격히 증가하고 있습니다. 하지만 그만큼 보안 취약점도 함께 늘어나고 있는데, 그 중에서도 Reentrancy Attack(재진입 공격)은 매우 치명적이고...