2016-09-22 4 views
1

은 본인은 :Scapy 상세 모드 문서

conf.verb = 0 

비활성화 Scapy 상세 모드하지만 문서는이를 확인하는 것입니다?

내 인터넷 검색이 실패했습니다.

답변

1

사실, conf의 문서화 문자열은 conf.verb = 0를 구성하는 것은 그것이 전부를 해제하지 않는 것을 의미하는 거의 음소거에 상세 정보 레벨을 설정하도록 지정합니다. 여기

verb  : level of verbosity, from 0 (almost mute) to 3 (verbose) 

을 전체 문서화 문자열입니다 :

In [1]: from scapy.all import conf 
WARNING: No route found for IPv6 destination :: (no default route?) 

In [2]: conf? 
Type:  Conf 
String Form: 
ASN1_default_codec = <ASN1Codec BER[1]> 
      AS_resolver = <scapy.as_resolvers.AS_resolver_multi insta <...> alse 
      use_pcap = False 
      verb  = 2 
      version = '2.3.2' 
      warning_threshold = 5 
      wepkey  = '' 
File:  /usr/local/lib/python2.7/dist-packages/scapy/config.py 
Docstring: 
This object contains the configuration of scapy. 
session : filename where the session will be saved 
interactive_shell : If set to "ipython", use IPython as shell. Default: Python 
stealth : if 1, prevents any unwanted packet to go out (ARP, DNS, ...) 
checkIPID: if 0, doesn't check that IPID matches between IP sent and ICMP IP citation received 
      if 1, checks that they either are equal or byte swapped equals (bug in some IP stacks) 
      if 2, strictly checks that they are equals 
checkIPsrc: if 1, checks IP src in IP and ICMP IP citation match (bug in some NAT stacks) 
check_TCPerror_seqack: if 1, also check that TCP seq and ack match the ones in ICMP citation 
iff  : selects the default output interface for srp() and sendp(). default:"eth0") 
verb  : level of verbosity, from 0 (almost mute) to 3 (verbose) 
promisc : default mode for listening socket (to get answers if you spoof on a lan) 
sniff_promisc : default mode for sniff() 
filter : bpf filter added to every sniffing socket to exclude traffic from analysis 
histfile : history file 
padding : includes padding in desassembled packets 
except_filter : BPF filter for packets to ignore 
debug_match : when 1, store received packet that are not matched into debug.recv 
route : holds the Scapy routing table and provides methods to manipulate it 
warning_threshold : how much time between warnings from the same place 
ASN1_default_codec: Codec used by default for ASN1 objects 
mib  : holds MIB direct access dictionnary 
resolve : holds list of fields for which resolution should be done 
noenum : holds list of enum fields for which conversion to string should NOT be done 
AS_resolver: choose the AS resolver class to use 
extensions_paths: path or list of paths where extensions are to be looked for 

In [3]: 
+0

내가 문서화 문자열을 찾을 수 있습니다 다음과 같이

문서화 문자열에서 관련 발췌은? – Proletariat

+0

_scapy_의 설치 디렉토리에있는'config.py' 파일에 있습니다. 내 컴퓨터 (_Ubuntu_)에서는/usr/local/lib/python2.7/dist-packages/scapy/config.py에 있습니다. 또는'conf'를 가져 와서'conf .__ doc__'를 출력 할 수도 있습니다. – Yoel