我有两个带有默认网关的接口。wlan0 是我的无线网络,tun0 是我的 VPN 连接(使用该无线网络作为传输)。当 VPN 会话建立时,wlan0 度量增加到 20 - 这就是为什么应使用默认通过 VPN 的原因。
pluton ~ # ip route show
default dev tun0 scope link
default via 10.0.0.1 dev wlan0 metric 20
Run Code Online (Sandbox Code Playgroud)
但似乎 scapy 正在尝试使用 wlan0 发送 L3 数据包(send() 函数)。
你能确认一下吗?我找不到与该行为相关的任何错误。
谢谢,
我需要生成带有空主题字段的证书。我尝试使用配置:
[ req ]
default_bits = 1024 # Size of keys
default_md = md5
algorithm
string_mask = nombstr # permitted characters
#string_mask = pkix # permitted characters
distinguished_name = req_distinguished_name
req_extensions = v3_req
[ policy_match ]
commonName = optional
countryName = optional
emailAddress = optional
[ req_distinguished_name ]
# Variable name Prompt string
#------------------------- ----------------------------------
0.organizationName = Organization Name (company)
organizationalUnitName = Organizational Unit Name (division)
localityName = Locality Name (city, district)
stateOrProvinceName = State or Province Name (full name) …Run Code Online (Sandbox Code Playgroud) 我有:
url="https://mywebpage.com/content"
text=requests.get(url,stream=True).text
for line in text:
print "Line "+line
Run Code Online (Sandbox Code Playgroud)
我将每个字母放在不同的行(而不是行)中。我也不能使用迭代器 req.iter_lines 因为我需要多次处理结果以查找不同的数据。
有什么提示吗?