1588, 76/80 ȸ¿ø°¡ÀÔ  ·Î±×ÀΠ 
   ÇØÅ·ÀßÇÏ°í½Í´Ù
   http://¾øÀ½
   netdiscover ÆÄÀ̽ãÀ¸·Î ±¸ÇöÇϱâ

http://www.hackerschool.org/HS_Boards/zboard.php?id=Free_Lectures&no=8582 [º¹»ç]


from scapy.all import ARP, Ether, srp, get_if_list

def scan_network(interface, ip_range):
    print(f"Scanning network on interface {interface} for IP range {ip_range}")

    arp = ARP(pdst=ip_range)
    ether = Ether(dst="ff:ff:ff:ff:ff:ff")
    packet = ether/arp

    # ÆÐŶ Àü¼Û ¹× ÀÀ´ä ¼ö½Å
    result = srp(packet, iface=interface, timeout=3, verbose=False)[0]

    devices = []
    for sent, received in result:
        devices.append({'ip': received.psrc, 'mac': received.hwsrc})

    print("IP Address\t\tMAC Address")
    print("-----------------------------------------")
    for device in devices:
        print(f"{device['ip']}\t\t{device['mac']}")

if __name__ == "__main__":
    interfaces = get_if_list()
    print("Available interfaces:")
    for i, iface in enumerate(interfaces):
        print(f"{i}: {iface}")

    # ¿Ã¹Ù¸¥ ³×Æ®¿öÅ© ÀÎÅÍÆäÀ̽º À̸§ ¼±ÅÃ
    # ¿¹¸¦ µé¾î, 'Ethernet' ¶Ç´Â 'Wi-Fi'
    interface = 'Ethernet'  # ½ÇÁ¦ ³×Æ®¿öÅ© ÀÎÅÍÆäÀ̽º À̸§À¸·Î º¯°æ
    ip_range = "192.168.56.1/24"







netdiscover¶õ ÀÚ½ÅÀÌ ¼ÓÇÑ ³×Æ®¿öÅ©ÀÇ ¿¬°áµÇ¾î ÀÖ´Â

½Ã½ºÅÛÀ» ½ºÄµÇÏ°í Ãâ·ÂÇÏ´Â ÇØÅ· ÇÁ·Î±×·¥ÀÌ´Ù.

ÇÏÁö¸¸ ±âÁ¸ÀÇ Ä®¸® ¸®´ª½ºÀÇ netdiscover¸¦ »ç¿ëÇÏ´Â°Ô ´õ Æí¸®ÇÑ °Í °°´Ù.

°øºÎ»ï¾Æ ÀÛ¼ºÇÑ °ÍÀε¥ ¾÷·Îµå¸¦ Çß´Ù.

  Hit : 285     Date : 2024/08/13 05:20



    
88   levitator.c (¾Èµå·ÎÀÌµå ·çÆÃ) °ø°Ý ºÐ¼® ¼Ò½º ÄÚµå °øÀ¯.[4]     scube
08/17 4266
87   ¾È³çÇϼ¼¿ä.     god0631a
03/16 4034
86   ±¸±Û ¹é¸µÅ© ÀÛ¾÷ Áú¹®¿ä     wkatnxka
03/30 3914
85   ½©ÄÚµå ¸ðÀ½     ÇØÅ·ÀßÇÏ°í½Í´Ù
01/15 2136
84   (²Ä¼ö) L.O.B Çѹ濡 Ŭ¸®¾îÇϱâ[2]     ÇØÅ·ÀßÇÏ°í½Í´Ù
01/14 1892
83   Call by value VS Call by Reference     ÇØÅ·ÀßÇÏ°í½Í´Ù
01/15 1491
82   ¸®´ª½º Ä¿³Î 2.6 ¹öÀü ÀÌÈÄÀÇ LKM     jdo
07/25 1307
81   ÆÄÀ̽ã random¸ðµâÀ» ÀÌ¿ëÇÑ ¼ýÀÚ¸ÂÃ߱⠰ÔÀÓ ±¸Çö     ÇØÅ·ÀßÇÏ°í½Í´Ù
05/30 768
80   °í¼ö´ÔµéÀÇ µµ¿òÀ» ¹Þ°í ½Í½À´Ï´Ù     vbnm111
02/11 767
79   ÆÄÀ̽㠼ÒÄÏ ÇÁ·Î±×·¡¹ÖÀÇ ±âÃÊ     ÇØÅ·ÀßÇÏ°í½Í´Ù
05/26 717
78   ÆÄÀ̽ã äÆà ÇÁ·Î±×·¥ ±¸Çö     ÇØÅ·ÀßÇÏ°í½Í´Ù
05/28 672
77   ¸®´ª½º/À©µµ¿ì º¸¾È Àåºñ ·Î±×     ÇØÅ·ÀßÇÏ°í½Í´Ù
05/20 644
76   ¸®´ª½º À¥ ·Î±× ºÐ¼®     ÇØÅ·ÀßÇÏ°í½Í´Ù
05/20 521
  netdiscover ÆÄÀ̽ãÀ¸·Î ±¸ÇöÇϱ⠠   ÇØÅ·ÀßÇÏ°í½Í´Ù
08/13 284
74   ÆÄÀ̽ãÀ» ÀÌ¿ëÇÑ ½ÉÇà À¥ Å©·Ñ·¯     ÇØÅ·ÀßÇÏ°í½Í´Ù
08/13 220
73 ºñ¹Ð±ÛÀÔ´Ï´Ù  °¨À»¸øÀâ°Ú³×¿ä¤Ì¤Ì     À×À×À×
01/15 3
72 ºñ¹Ð±ÛÀÔ´Ï´Ù  2.3 ¸ð´ÏÅÍ¿¡ µ¥ÀÌÅÍ Ãâ·ÂÇϱâ printf()      xownsdk2
08/20 2
71 ºñ¹Ð±ÛÀÔ´Ï´Ù  ÇØÄ¿½ºÄð °ü¸®ÀÚ´Ô²²     packer
03/20 2
70 ºñ¹Ð±ÛÀÔ´Ï´Ù  Áú¹®ÇÕ´Ï´Ù~     ¸¶´©¶ó
08/05 1
69 ºñ¹Ð±ÛÀÔ´Ï´Ù  [re] : ÇØÄ𠱤ÁÖ¿¡¼­ °°ÀÌ °ÏºÎÇϽǺР¼±»ý´Ô & ½º½Â ±¸ÇÕ´Ï´Ù.     ne4760
03/25 1
[1]..[71][72][73][74][75] 76 [77][78][79][80]

Copyright 1999-2024 Zeroboard / skin by Hackerschool.org / Secure Patch by Hackerschool.org