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

How I can debug or show the command ? #97

Open
hamedsbt opened this issue Oct 28, 2020 · 2 comments
Open

How I can debug or show the command ? #97

hamedsbt opened this issue Oct 28, 2020 · 2 comments

Comments

@hamedsbt
Copy link

I'm working on this .py to modify and use it for other application (ida.exe), but the cookie does not pass. so I need to debug as much as simple method because I'm not python developer.

What is data['Cookies'] structure? How I can use it as semicolon separated string?
such as:
lang=1; __auc=ee93572e1756eba4fd19030b82d; _ga=GA1.2.1558898317.1603880505; _gid=GA1.2.118992954.1603880505;

@Antorell
Copy link

Antorell commented Oct 30, 2020

It breaks down cookies to Netscape cookies format. It's the javascript in the addon that does it, the py just breaks down and export to a text what the javascript addon fed it.

https://docs.funnelback.com/collections/collection-types/web/web-crawler-settings/cookies_txt.html

function parseCookies(cookies_arr) {
    cookies = '';
    for (var i in cookies_arr) {
        cookies += cookies_arr[i].domain + '\t';
        cookies += (cookies_arr[i].httpOnly ? "FALSE" : "TRUE") + '\t';
        cookies += cookies_arr[i].path + '\t';
        cookies += (cookies_arr[i].secure ? "TRUE" : "FALSE") + '\t';
        cookies += Math.round(cookies_arr[i].expirationDate) + '\t';
        cookies += cookies_arr[i].name + '\t';
        cookies += cookies_arr[i].value;
        cookies += '\n';
    }
    message.Cookies = cookies;
    sendMessageToHost(message);
}

https://github.com/ugetdm/uget-extension/blob/b60810f63eed118f71db190f60bd90aea9633f6b/extension/background.js#L623

@hamedsbt
Copy link
Author

hamedsbt commented Nov 1, 2020

Thank you for your reply.
I don't have google account and I'm not interested to enable extension debug mode on my chromium-edge browser.
Can you deploy a version with cookies as semicolon separated string for IDA application please?

example:
ida.exe URL [REFERER] [urloption=value] ... [urloption=value]
ida.exe example.host/file.zip "example.host/host" cookies="lang=1; __auc=ee931756eb; _ga=GA198317"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants