Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ÎÒÔÚÓÃPYTHONдץ°ü³ÌÐò,Ò»Ö±Ìáʾģ¿éûÓб»µ÷ÓÃ

Ô´³ÌÈçÏÂ:

Python code:

import pcap
import dpkt
pc = pcap.pcap();



µÚÒ»ÐÐ,µÚ¶þÐж¼Ã»ÓÐÎÊÌâ,¾ÍÊǵÚÈýÐб¨´í,°¦,ÕÛÌںþÃÁË,ÕæÏë·ÅÆúPYTHON

E:\cmd>pcap.py
Traceback (most recent call last):
  File "E:\cmd\pcap.py", line 3, in <module>
    import pcap
  File "E:\cmd\pcap.py", line 10, in <module>
    pc = pcap.pcap();
TypeError: 'module' object is not callable
ÄãµÄpcap.pcapÈÔÈ»ÊÇÒ»¸ömodule£¬ÄãÒªÖªµÀËüÓÐʲô·½·¨£¬¾Íhelp(pcap.pcap)»òdir(pcap.pcap)¿´Ò»Ï£¬È»ºóÔÙÕýȷʹÓÃ

pcap.pcap ÊÇÒ»¸ömodule£¬²»Ö§³Ö__call__·½·¨

up

ÓÐÒ»¸ösample µÄ.ÄãÖ±½ÓÓà sample ¾ÍÐÐÁË.

ÎÒÒ²ÓÐÎÊÌâ.
ÎÒʹÓà pcapy µÄʱºò, ×¥²»µ½ËùÓеİü.  Óà tcpdump ¾Í¿ÉÒÔ¿´µ½ËùÓеÄÊý¾Ý°ü.

ÄãÃǶ¼´íÁË,ºóÀ´»¹ÊÇÎÒ×Ô¼º¸ã¶¨ÁË....ÔÚ×°ÁËpcapºÍdpktÖØÆôµçÄÔºó,¾ÍÈ«²¿¸ã¶¨ÁË...

ÔÎ.ÄãÓÖûÓн²ÄãûÓÐÖØÆô...

wincap °²×°ºóÊÇÐèÒªÖØÆô²ÅÐеÄ.

Äã½²ÕÛÌÚÁ˺þÃ.  Ïë±ØÓ¦¸ÃÊÇÊ®Ìì°ë¸öÔÂ.Ó¦¸ÃÒ²ÊÇÖØÆô¹ýµÄÁË.



Ïà¹ØÎÊ´ð£º

eric4ÔõôÔËÐÐpython³ÌÐò£¿

pythonºÍpyqtÒÔ¼°Eric4¶¼ÒѾ­ÅäÖúÃÁË£¬´ò¿ªEric4д¸öpython³ÌÐò±ÈÈç¼òµ¥µÄ
print¡°hello£¬world¡±£¬Ôõô±àÒëÔËÐÐÁË£¬Start²Ëµ¥µÄËùÓÐÃüÁ³öÏÖºÍͼÖв¶àµÄ¶Ô»°¿ò£¬Ó¦µ±ÔõôÔËÐÐÁË£¿

Çó´ó¼ÒÖ¸½Ì

ûÓÐÈËÓà ......

python»ù´¡ÎÊÌ⣬Çë½Ì¸ßÊÖ¡£

ÇëÎʸßÊÖ£¬ÎÒÓõÄÊÇpythonwin2.5µÄ°æ±¾£¬ÔÚ¿ª·¢µÄ¹ý³ÌÖÐÓöµ½ÁËÏÔʾÖÐÎÄÂÒÂëµÄÎÊÌâºÜÍ·ÌÛ£¬Çë¸ßÊִͽ̡£
¼òµ¥µÄ´úÂëÈçÏ£¬±£´æµÄÎļþÃûÊÇÓ¢Îĵģ¬ÎÒÊÇÓÃpythonwinн¨µÄ½Å±¾£¬±£´æµÄʱºòÑ¡ÏîÀïûÓбàÂëÑ¡ÏÔËÐк ......

python PAMIEÎÊÌâÇóÖú

Ä£Äâ´ò¿ªÔÚÏß²éѯÎļþÊÇ·ñÖж¾µÄÍøÕ¾
import PAM30
    ie = PAM30.PAMIE()
    ie.navigate('http://www.virscan.org/')  Æô¶¯IE£¬´ò¿ª¶ÔÓ¦ÍøÕ¾
    ie.cl ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ