Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: CLI app - Redirecting output causes invalid cookie file to be generated #93

Open
milnak opened this issue Jan 18, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@milnak
Copy link

milnak commented Jan 18, 2025

What happened?

On Windows:

.\rookie-cli-x86_64-pc-windows-msvc.exe --browser edge --format netscape | Out-File cookies.txt

cookies.txt:

�[2m2025-01-18T02:29:39.052450Z�[0m �[32m INFO�[0m �[2mrookie::windows::shadow_copy�[0m�[2m:�[0m Creating shadow copy to cookies file from C:\Users\jeffm\AppData\Local\Microsoft\Edge\User Data\Default\Network\Cookies to C:\Users\jeffm\AppData\Local\Temp\.tmpszSqhiWrGW    
�[2m2025-01-18T02:29:39.158373Z�[0m �[32m INFO�[0m �[2mrookie::browser::chromium�[0m�[2m:�[0m Creating SQLite connection to C:\Users\jeffm\AppData\Local\Temp\.tmpszSqhiWrGW\Cookies    
# Netscape HTTP Cookie File
# Generated by Rookie 0.5.6 (11d6402)
# Edit at your own risk.

.bing.com	TRUE	/	TRUE	<redacted>
<redacted>

Steps to reproduce

  1. step one...
  2. step two...

What browsers are you seeing the problem on?

Edge

Relevant log output

@milnak milnak added the bug Something isn't working label Jan 18, 2025
@milnak
Copy link
Author

milnak commented Jan 18, 2025

a temporary mitigation might be:

(.\rookie-cli-x86_64-pc-windows-msvc.exe --browser edge --format netscape) | Select-Object -Skip 2 | Where-Object { $_
 -notlike '*#HttpOnly_*' }| Out-File cookies.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant