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

igbf.py error #2

Open
lone238523 opened this issue Jun 24, 2023 · 5 comments
Open

igbf.py error #2

lone238523 opened this issue Jun 24, 2023 · 5 comments

Comments

@lone238523
Copy link

hello, when starting brute force I get the following error in the code:

File "igbf.py", line 543, in
main()
File "igbf.py", line 409, in main
csrf_token = get_csrf_token()
File "igbf.py", line 107, in get_csrf_token
return content.cookies['csrftoken']
File "C:\Users\alan2\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\requests\cookies.py", line 334, in getitem
return self._find_no_duplicates(name)
File "C:\Users\alan2\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\requests\cookies.py", line 413, in _find_no_duplicates
raise KeyError(f "name={name!r}, domain={domain!r}, path={path!r}")
KeyError: "name='csrftoken', domain=None, path=None"

@s41r4j
Copy link
Owner

s41r4j commented Jul 5, 2023

Seems like prob with managing csrf token!

Please provide the following details:
- os
- python version
- command used

@sh0xl
Copy link

sh0xl commented Aug 4, 2023

hi i need help with this error

Traceback (most recent call last):
File "/root/igbf/igbf.py", line 543, in
main()
File "/root/igbf/igbf.py", line 409, in main
csrf_token = get_csrf_token()
^^^^^^^^^^^^^^^^
File "/root/igbf/igbf.py", line 107, in get_csrf_token
return content.cookies['csrftoken']
~~~~~~~~~~~~~~~^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/requests/cookies.py", line 334, in getitem
return self._find_no_duplicates(name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/requests/cookies.py", line 413, in _find_no_duplicates
raise KeyError(f"name={name!r}, domain={domain!r}, path={path!r}")
KeyError: "name='csrftoken', domain=None, path=None"

@Mamian1221
Copy link

Traceback (most recent call last):
File "/home/mamian/dox/Social_Rain/igbf/igbf.py", line 543, in
main()
File "/home/mamian/dox/Social_Rain/igbf/igbf.py", line 409, in main
csrf_token = get_csrf_token()
File "/home/mamian/dox/Social_Rain/igbf/igbf.py", line 107, in get_csrf_token
return content.cookies['csrftoken']
File "/usr/local/lib/python3.10/dist-packages/requests/cookies.py", line 334, in getitem
return self._find_no_duplicates(name)
File "/usr/local/lib/python3.10/dist-packages/requests/cookies.py", line 413, in _find_no_duplicates
raise KeyError(f"name={name!r}, domain={domain!r}, path={path!r}")
KeyError: "name='csrftoken', domain=None, path=None"

I need help with this

@Gluchub
Copy link

Gluchub commented Sep 11, 2023

Seems like prob with managing csrf token!

Please provide the following details: - os - python version - command used

os - windows
python version- python 3.9
command used- python igbf.py -u myusername -p rockyou.txt

please reply

@s41r4j
Copy link
Owner

s41r4j commented Sep 12, 2023

The problem is that instagram has changed some functionality the way the csrf tokens load in cookies - this is causing the error!
Seems like this is because of the new update (on there website), but as soon as I find a fix I'll update here!

Meanwhile - if anyone knows/found how to extract csrf token from instagram.com - please paste the solution/code here - it will be appreciated :)

thankyou y'all for being patient

@s41r4j s41r4j mentioned this issue Sep 12, 2023
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

5 participants