Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

mechanize._response.httperror_seek_wrapper: HTTP Error 404: Not Found

Tags:

python

I am trying to using the program fbruteforcer.py. I compiled it and it seems to work but not at all.

The following works:

./wpbruteforcer.py -t www.pillolhacking.net -u admin -w wordlist

But when I try to change the destination site and the name of the user, I get the following traceback:

Traceback (most recent call last):
  File "./fbruteforcer.py", line 253, in <module>
    main()
  File "./fbruteforcer.py", line 247, in main
    releaser()
  File "./fbruteforcer.py", line 183, in releaser
    bruteforce(word.replace("\n",""))
  File "./fbruteforcer.py", line 152, in bruteforce
    opensite = br.open(targetsite)
  File "/usr/local/lib/python2.7/dist-packages/mechanize/_mechanize.py", line 203, in open
    return self._mech_open(url, data, timeout=timeout)
  File "/usr/local/lib/python2.7/dist-packages/mechanize/_mechanize.py", line 255, in 
_mech_open
    raise response
mechanize._response.httperror_seek_wrapper: HTTP Error 404: Not Found

I tried to search for a solution, but all I could find was this post.

Please someone help me idk what to do. Maybe I must download another mechanize package?

like image 515
user1804001 Avatar asked Nov 06 '12 18:11

user1804001


1 Answers

looks like the first thing it does is try to connect to:

"http://www."+target+"/wp-login.php"

Where target is what you inputed.

http://www.google.com/wp-login.php does not exist, hence the 404 
like image 76
James Robinson Avatar answered Oct 24 '22 02:10

James Robinson