Giter VIP home page Giter VIP logo

python-bruteforce's Introduction

Simple Brute Force Attack Tools Using Python

Simple Installation

Use the package manager pip to install requests.

pip install requests

Run

python3 bruteforce.py

For more please check this Medium Link

Example Image

alt text

For more password List check This Git Repo

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

python-bruteforce's People

Contributors

antu7 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

python-bruteforce's Issues

TEST-10586: CT600 Intangible Fixed Assets Check and finish message 9114 is no longer valid hub 26162 (Sun-Dec-3-11:36:07-2023)

    [Sun-Dec-3-11:36:07-2023 ](http://localhost/Home/RunID/Sun-Dec-3-11:36:07-2023/)
    [TEST-10586: CT600 Intangible Fixed Assets Check and finish message 9114 is no longer valid hub 26162  ](http://localhost/Home/ManageTestCases/Edit/TEST-10586/)


    |Step Name| Status|
    |--|--|
    |HMRC mode > page 4|Submitted|

|Check and finish > Verify 9114 validation is not appearing|Submitted|
|verify online filing|Submitted|

    ### Fail Reason
    testing

Facebook.com-bruterforce attack

python -m json.tool / jq

After you issue curl, the output of the API call may be difficult to read. Sometimes, you want to pretty-print the JSON output to find a specific entry. Python has a built-in JSON library that can help with this. You use python -m json.tool to indent and organize the JSON. To use Python's JSON module, pipe the output of a JSON file into the python -m json.tool command.



$ cat test.json
{"title":"Person","type":"object","properties":{"firstName":{"type":"string"},"lastName":{"type":"string"},"age":{"description":"Age in years","type":"integer","minimum":0}},"required":["firstName","lastName"]}

Error occurred

This error occurred to me:

Trying Password: 1 Time For => 123456
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 699, in urlopen
    httplib_response = self._make_request(
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 445, in _make_request
    six.raise_from(e, None)
  File "<string>", line 3, in raise_from
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 440, in _make_request
    httplib_response = conn.getresponse()
  File "/usr/lib/python3.10/http/client.py", line 1374, in getresponse
    response.begin()
  File "/usr/lib/python3.10/http/client.py", line 318, in begin
    version, status, reason = self._read_status()
  File "/usr/lib/python3.10/http/client.py", line 287, in _read_status
    raise RemoteDisconnected("Remote end closed connection without"
http.client.RemoteDisconnected: Remote end closed connection without response

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 439, in send
    resp = conn.urlopen(
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 755, in urlopen
    retries = retries.increment(
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 532, in increment
    raise six.reraise(type(error), error, _stacktrace)
  File "/usr/lib/python3/dist-packages/six.py", line 718, in reraise
    raise value.with_traceback(tb)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 699, in urlopen
    httplib_response = self._make_request(
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 445, in _make_request
    six.raise_from(e, None)
  File "<string>", line 3, in raise_from
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 440, in _make_request
    httplib_response = conn.getresponse()
  File "/usr/lib/python3.10/http/client.py", line 1374, in getresponse
    response.begin()
  File "/usr/lib/python3.10/http/client.py", line 318, in begin
    version, status, reason = self._read_status()
  File "/usr/lib/python3.10/http/client.py", line 287, in _read_status
    raise RemoteDisconnected("Remote end closed connection without"
urllib3.exceptions.ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/garshasp/Downloads/python-bruteForce/bruteforce.py", line 69, in <module>
    bruteCracking(username,url,error)
  File "/home/garshasp/Downloads/python-bruteForce/bruteforce.py", line 55, in bruteCracking
    response = requests.post(url, data=data_dict)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 498, in send
    raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))

Not working?

The script can't detect when it guesses the correct password. In other words, the script dont know when it breaks the password. For example: my router have "admin" in username and "password" for password, but, even though the script tries "password", it doesn't detect as correct. Not sure if I'm clear here.

Help Me ! Aidez Moi !

I don't understand
FileNotFoundError: tErrno 21 No such file or directory: 'passwords.
txt '

Defining iCloud Notes Password Field

Not having any luck trying to define the "Notes" password field in iCloud.

So I'm logging onto iCloud online, then selecting the notes stored there and trying to open the locked note.

Is it possible to do this with python-bruteforce?

cheers

Error!

When I finished running the passwords file it turned off automatically and did not show up !!!

Error

got an error since variable z is undefined in line z

TEST-10586: CT600 Intangible Fixed Assets Check and finish message 9114 is no longer valid hub 26162 (Sun-Dec-3-11:36:07-2023)

    [Sun-Dec-3-11:36:07-2023 ](http://localhost/Home/RunID/Sun-Dec-3-11:36:07-2023/)
    [TEST-10586: CT600 Intangible Fixed Assets Check and finish message 9114 is no longer valid hub 26162  ](http://localhost/Home/ManageTestCases/Edit/TEST-10586/)


    |Step Name| Status|
    |--|--|
    |HMRC mode > page 4|Submitted|

|Check and finish > Verify 9114 validation is not appearing|Submitted|
|verify online filing|Submitted|

    ### Fail Reason
    fail reason: undefined

Multi Threading and argparse

I would like to add multi-threading support to your project and argument parsing using argparse package.
I will post my progress on this idea in this thread.

Linked fork for insight

https://github.com/MattTheCoder-W/python-bruteForce

Idea

In my pull request I would like to add:

  • Support for multiple password check threads
  • Option to choose how many threads will be used
  • Argument parsing using argparse package

To Do

  • Create argument parsing (with interactive mode options)
  • Add multi threading
  • Test out new changes

Unclear instructions

Good night.

I would just like to know what I should put in 'target url'. You mean a site's domain, such as instagram.com, github.com or whatever you'd like?
I would just like to know if the code works on Ubuntu Linux as well.

Thanks for your time.

No option for choosing custom POST headers names

There is no option for using custom POST headers names

In original version there are {"LoginID", "Password", "Log In"} headers

Good feature would be to be able to define custom names :)

image

So in my case I would have to use {"login", "pass"} headers.

Ideas

I think the script is great however maybe add a function where it checks your connection before hand something like this would work

import requests
def checker():
       try:
           r = requests.get("https://www.google.com")
           if r.status_code == '200':
                                          pass:
           etc etc 

to where after that it wold do something if it returns a certian code, however i do think this is a decent tool just could use ALOT of changes

passwords.txt

Hi, I'm having a strange error, saying that your "password.txt" is not exist, while it's existing in my directory
image
image

Can you fix it?

TEST-10586: CT600 Intangible Fixed Assets Check and finish message 9114 is no longer valid hub 26162 (Sun-Dec-3-11:36:07-2023)

    [Sun-Dec-3-11:36:07-2023 ](http://localhost/Home/RunID/Sun-Dec-3-11:36:07-2023/)
    [TEST-10586: CT600 Intangible Fixed Assets Check and finish message 9114 is no longer valid hub 26162  ](http://localhost/Home/ManageTestCases/Edit/TEST-10586/)


    |Step Name| Status|
    |--|--|
    |HMRC mode > page 4|Submitted|

|Check and finish > Verify 9114 validation is not appearing|Submitted|
|verify online filing|Submitted|

    ### Fail Reason
    TEST ANTU

Its not working

Hey, i tried this attack on test account on https://vk.com and put password in passwords.txt, but it wrote this: "[!!] password not in list"
U write in code this string: print("[!!] password not in list"), so even if it is right password in .txt file, the program will write this.
Please, contact me in the near future

Traceback (most recent call last)

$ python bruteforce.py
Traceback (most recent call last):
File "C:\Users\Aman\python-bruteForce\bruteforce.py", line 8, in
print ("""
^^^^^^^^^^
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2288.0_x64__qbz5n2kfra8p0\Lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeEncodeError: 'charmap' codec can't encode characters in position 5-11: character maps to

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.