Firefox:
Windows: C:\user\账户名\AppData\Roaming\Mozilla\Firefox\Profiles\xxxxxxxx.default\cookies.sqlite
cookie以sqlite存储 记得打开查看隐藏文件 xxxx 不固定

Mac:
操作方法如下(摘自官网)参考
Finding your profile without opening Firefox
Click the Finder icon in the dock. On the menu bar, click the Go menu, hold down the option or alt key and select Library. A window will open containing your Library folder.
Open the Application Support folder, then open the Firefox folder, and then the Profiles folder.
Your profile folder is within this folder. If you only have one profile, its folder would have "default" in the name.
简单来说就是 去Finder 点前往,按住option 键 然后点击资源库 ,就会新开一个Finder窗口,然后去Application Support 就能找到FireFox目录了
或者直接去Finder 前往该目录
/Users/huangkaikang/Library/Application Support/Firefox/Profiles
chrome:
Windows: C:\Users\用户名\AppData\Local\Google\Chrome\UserData\Default\
Mac: ~/Library/Application Support/Google/Chrome
Linux: ~/.config/google-chrome