Lojii / Knot

一款iOS端基于MITM(中间人攻击技术)实现的HTTPS抓包工具,完整的App,核心代码使用SwiftNIO实现
GNU General Public License v3.0
1.74k stars 579 forks source link

VPN error??? #18

Closed MuZiLee closed 2 years ago

MuZiLee commented 3 years ago

Warning(7): is not general line ! Warning(8): is not general line ! Warning(9): is not general line ! Warning(10): is not general line ! ***SFVPNManager startStopToggled starting!!! VPN Status:Connecting getAll error:no such table: session (code: 1) VPN Status:Disconnected getAll error:no such table: session (code: 1)

我点击run之后就会出现以上错误。 请问出现以上的问题应该怎么解决?

League2EB commented 2 years ago

@Lojii @MuZiLee 同样问题,请大神求解,非常谢谢!

Lojii commented 2 years ago

需要设置App Group,数据库是通过App Group在主程序与NetworkExtension之间实现共享的,没有设置App Group会找不到对应的数据库和table

League2EB commented 2 years ago

@Lojii 我有设定,但不确定哪里设置错误,请前辈教导指正

Lojii commented 2 years ago

TunnelServices/MitmService.swift 里16行,也需要修改下

League2EB commented 2 years ago

TunnelServices/MitmService.swift 里16行,也需要修改下

修改后问题仍然存在

0xsunsama commented 2 years ago

TunnelServices/MitmService.swift 里16行,也需要修改下

修改后问题仍然存在

TunnelServices/MitmService.swift 里16行,也需要修改下

修改后问题仍然存在

应该是nio.db 中的session表没有创建,我也遇到这个问题了。好像不是AppGroup的问题

flywithbug commented 2 years ago

group设置 修改过也是一样的问题,

flywithbug commented 2 years ago

@Lojii 大佬有空解答一下疑惑

Tuluobo commented 2 years ago

需要检查 providerBundleIdentifier 属性是否是自己修改的,把这个配置一下就 OK 吧

sdualasijia commented 2 years ago

@Lojii 大佬有空解答一下疑惑

这个问题你解决了吗

orangeboyChen commented 1 year ago

@Lojii 大佬有空解答一下疑惑

这个问题你解决了吗

看了下代码,因为数据库没有建表引起的

Screen Shot 2022-10-25 at 15 43 31

在AppDelegate加入28行暂时解决,暂时未发现副作用,希望作者大大可以解决下~

ByteSecurity commented 7 months ago

getAll error:no such table: session (code: 1)

@orangeboyChen 虽然不报错了, 还是不行. 好奇怪 (ios 14)

` [info]-ASProtocol+Schame.swift[41]:createTable() --> Create Table Task success

***SFVPNManager startStopToggled

starting!!!

VPN Status:Connecting

VPN Status:Disconnected

`