自習/Network
Network - Ping sweep scaner
태양왕 해킹 (14세)
2021. 7. 12. 21:12
ICMP Echo Request를 이용해 IP 범위를 쓸고 지나가며 존재하는 호스트를 찾아내는 것을 Ping Sweep Scan이라고 해요.
from pythonping import ping
from time import time
def icmp_scan():
for i in range(40, 50, 1):
ip_address = "***.***.***"
ip_address += "." + str(i)
print(f"Ping target -> {ip_address}")
ping(ip_address, timeout=1, count=1, verbose=True)
if __name__ == "__main__":
begin = time()
icmp_scan()
end = time()
print(f"걸린 시간: {end-begin}")
학교 고정 IP 중 공유 프린터만 응답하네요.
연관 있는 문서
https://p1atinum.tistory.com/80
WannaCryptor ~SMB vulnerability
들어가기 전에 445번 포트란? Server Message Block(=Common Internet File System)은 다른 시스템 간의 파일 및 프린터 공유에 사용하는 프로토콜이며 445 포트를 사용한다. TCP/IP 기반의 NetBIOS 프로토콜을..
p1atinum.tistory.com
https://p1atinum.tistory.com/50
Network - Ping
먼저 PING을 이해하기 쉽게 용어를 맞춰보자. Packet은 네트워크를 통해 주고받기 용이하게 자른 데이터의 단위이다. INternet은 처음에 군사용으로 사용되었다. Groper는 물고기인데 바닥을 더듬거리
p1atinum.tistory.com