s41r4j / igbf

[ igbf ]: Instagram Brute Forcer --easy-to-use --cross-platform --open-source --no-extl-lib-req
27 stars 6 forks source link

igbf.py error #2

Open lone238523 opened 1 year ago

lone238523 commented 1 year ago

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 commented 1 year ago

Seems like prob with managing csrf token!

Please provide the following details:

sh0xl commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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