Pylibnet.

LIBNET ÆÐŶ ÁÖÀÔ ¶óÀ̺귯¸®ÀÇ ÆÄÀ̽㠷¡ÆÛ
Áö±Ý ´Ù¿î·Îµå

Pylibnet. ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • GPL v3
  • °¡°Ý:
  • FREE
  • °Ô½ÃÀÚ À̸§:
  • Nadeem Douba
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:

Pylibnet. ű×


Pylibnet. ¼³¸í

libnet ÆÐŶ ÁÖÀÔ ¶óÀ̺귯¸®¸¦À§ÇÑ ÆÄÀ̽㠷¡ÆÛ PylibNetÀº LibNet 0.9.8a.the ÇÁ·ÎÁ§Æ®°¡ ¿ø·¡ David Margrave°¡ °³¹ß ÇÑ ÀÌÈÄ David Margrave°¡ ¿ø·¡ °³¹ß ÇÑ LibNet ÆÐŶ ÁÖÀÔ ¶óÀ̺귯¸®¸¦À§ÇÑ ÆÄÀ̽㠸ðµâÀÔ´Ï´Ù. ÀÌÁ¦ ÇÁ·ÎÁ§Æ®´Â libnet 1.1.x¿¡ ´ëÇÑ Áö¿ø ±â´ÉÀ» Á¦°øÇϸç libnet.sample ½ºÅ©¸³Æ®°¡ Á¦°øÇÏ´Â ¸ðµç ÆÐŶ ±¸Ãà ±â´ÉÀ» °¡Áö°í ÀÖÀ¸¸ç Python Çؼ®±â ³»¿¡¼­ PyDoc ¶Ç´Â µµ¿ò¸» (LibNet)À» »ç¿ë ÇÏ¿©ÀÌ ¸ðµâ¿¡ ´ëÇÑ ¼³¸í¼­¸¦ Ç×»ó º¼ ¼ö ÀÖ½À´Ï´Ù. ¾Æ·¡ ½ºÅ©¸³Æ®´Â TCP-SYN ¿äûÀ» À§ÇØ PYLIBNET.CODE·Î ARP ¿äû ÆÐŶÀ» ¸¸µé±âÀ§ÇÑ °ÍÀÌ ¾ó¸¶³ª ½¬¿î ½±½À´Ï´Ù. #! / usr / bin / pythonimport sysimport libnetfrom libnet.constants °¡Á® ¿À±â * # injection types ¸µÅ©, link_adv, raw4, RAW4_ADV, RAW6 ¶Ç´Â RAW6_ADV ## LINK * ÁÖÀÔ À¯ÇüÀº ¿øÇÏ´Â ÀÎÅÍÆäÀ̽º¸¦ # ÆÐŶÀ» ÁÖÀÔÇÏ´Â °ÍÀ» Ãß°¡ ÇÒ ¼ö ÀÖ½À´Ï´Ù. ±×·¯³ª ¸µÅ© °èÃþÀ» ºôµåÇؾßÇÕ´Ï´Ù. ## RAW * ÁÖÀÔ À¯Çü ÆÐŶÀÌ ¿øÇÏ´Â ÀÎÅÍÆäÀ̽º¸¦ Á¾·áÇÏÁö ¾Ê½À´Ï´Ù. # ´ë½Å Ä¿³ÎÀº ÆÐŶÀ» ±×¿¡ µû¶ó ¶ó¿ìÆÃÇÕ´Ï´Ù. ¸µÅ© °èÃþÀº ÀÚµ¿À¸·Î # build.l = libnet.context (RAW4, # Injection Type 'eth0'# ÀåÄ¡ À̸§) # RAW4 ÄÁÅؽºÆ®¿Í AutoBuild / Build ÇÔ¼ö #À» ó¸® ÇÒ ¼ö ÀÖÀ¸¹Ç·Î ¸ñÀûÁö IP¸¦ °¡Á®¿Í¾ßÇÕ´Ï´Ù. restdst_ip = l.name2addr4 ( 'www.google.com', #ÀÌ IP ÇØ°áÀÇ ³×Æ®¿öÅ© ¹ÙÀÌÆ® Á¤·Ä µÈ Ç¥ÇöÀ» °¡Á® ¿À·Á°íÇÕ´Ï´Ù.) # °¡Àå ³ôÀº ·¹À̾¼­ ÆÐŶÀ» ºôµåÇÏ°í °¡Àå ³·Àº # IE TCP-> IPv4- > ÀÌ´õ³Ý. ÁÖ¹® ¹®Á¦! # ¿©±â¼­ TCP Çì´õ·Î ½ÃÀÛÇÒ °ÍÀÔ´Ï´Ù. ¿ì¸®°¡ ¿øÇÏÁö ¾ÊÀ¸¸é ´Ù¸¥ ¸ðµç ºÐ¾ß¸¦ ä¿ì´Â °ÍÀÌ ¾î¶»°ÔµÇÁö ¾Ê¾ÆµµµË´Ï´Ù. ±×µéÀº ÀÚµ¿À¸·Î # ÀÚµ¿À¸·Î ä¿öÁú °ÍÀÔ´Ï´Ù! tcp_tag = l.build_tag = l.build_tcp (dp = 80, # ¸ñÀûÁö Æ÷Æ® ÄÁÆ®·Ñ = th_syn, # Á¦¾î Ç÷¡±×) Àμâ 'TCP Çì´õ :'Àμâ L.getPacket (TCP_TAG) #ÀÌ Çì´õ´Â ¾î¶»°Ô »ý°å½À´Ï±î? # ÀÌÁ¦ IPv4 headeripv4_tag = l.autobuild_ipv4 (len = ipv4_h + tcp_h, # ipv4 ÆÐŶ ±æÀÌ prot = ipproto_tcp, # ÇÁ·ÎÅäÄÝ À¯Çü dst = dst_ip) Àμâ ' IPv4 Çì´õ : 'Print L.GetPacket (IPv4_TAG) # ÀÌÁ¦ ÆÐŶÀ» ÀÛ¼ºÇÏ°í ¿À·ù # TCP SYN Google.coml.write () # SatsPrint'¸¦ »ìÆì º¸°Ú½À´Ï´Ù. ÆÐŶ Åë°è : 'Print l.stats (),ÀÌ Ãâ·ÂÀ» ¾Ë¾Æ¾ßÇÕ´Ï´Ù. TCP Çì´õ : {'th_urp ': 0,'th_x2 ': 0,'th_ece ': 0,'th_win ': 56904,'TH_OFF ': 5, 'th_syn': 1, 'th_cwr': 0, 'th_flags': 0, 'th_rst': 0, 'th_seq': 2078520984, 'th_dport': 80, 'th_fin': 0, 'th_sum': 0, 'th_sport': 25497, 'th_ack': 0, 'th_push': 0} IPv4 Çì´õ : { 'ip_sum': 0, 'ip_v': 4, 'ip_dst': 'iy-in-f99.google.com', 'ip_off': 0, 'ip_p': 6, 'ip_ttl': 64, 'ip_id': 1, 'ip_tos': 0, 'ip_len': 40, 'ip_src': 'u15367794.onlinehome-server.com', 'ip_hl': 5} ÆÐŶ Åë°è : { 'bytes_written': 40, 'packets_sent': 1, 'packet_errors': 0} ¿ä±¸ »çÇ× : ¡¤ ÆÄÀ̽ã


Pylibnet. °ü·Ã ¼ÒÇÁÆ®¿þ¾î