答案 0 :(得分:1)
一周后我发现了! :)
g = "GET / HTTP/1.1\r\nHost: " + url + "Connection: keep-alive\r\n\r\n"
pac = IP(dst=find_ip(url), flags=0x02) / TCP(dport=80, sport=3567, flags='A') / g
pac.show()
ans = sr1(pac)
是Android中Chrome自定义标签的模拟,可以帮助您处理它。
例如:
SFSafariViewController
按钮代码:
import SafariServices
用动画解散:
let bookmark = NSURL(string: "http://www.apple.com")!
let safari = SFSafariViewController(URL: bookmark)
presentViewController(safari, animated: true, completion: nil)
Swift 4
func safariViewControllerDidFinish(controller: SFSafariViewController) {
controller.dismissViewControllerAnimated(true, completion: nil)
}