~heckyel/pwndbtorcredentials

d3dc308c594cb7d5c0bbee6b5f2f557a06552776 — Jesús 4 years ago 00ef139
pep8
2 files changed, 25 insertions(+), 17 deletions(-)

M README.md
M pwndb_credentials.py
M README.md => README.md +19 -12
@@ 2,22 2,29 @@
Search for leaked passwords from an email

### Prerequisities
To use in Linux (Kali/Ubuntu/Debian) you should to run make script:
To use in GNU/Linux you should to run make script:

```
chmod +x make.sh
./make.sh
pacman -S python-virtualenv
```
### Require Tor

### Usage
```[python]
python3 pwndb_credentials.py -m mail@mail.com [-p socks5h://localhost:9050]
```bash
pacman -S tor
rc-service tor start
```

```
virtualenv -p python3 venv
source venv/bin/activate
pip install -U -r requeriments.txt
```

 [![twitter][1.1]][1]

[1.1]: http://i.imgur.com/tXSoThF.png (twitter icon with padding)
[1]: http://www.twitter.com/josueencinar

### Usage
```[python]
python3 pwndb_credentials.py -m mail@mail.com
```

<!-- Grab your social icons from https://github.com/carlsednaoui/gitsocial -->
\ No newline at end of file
```[python]
python3 pwndb_credentials.py -m mail@mail.com -p socks5h://localhost:9050
```

M pwndb_credentials.py => pwndb_credentials.py +6 -5
@@ 7,6 7,7 @@ import re
class FindPasswords():
    def __init__(self, mail, proxy):
        self.url = "http://pwndb2am4tzkvold.onion/"
        # self.url = "https://pwndb2am4tzkvold.tor2web.io/"
        name, service = self.__parse_mail(mail)
        self.session = None
        if name and service:


@@ 19,10 20,10 @@ class FindPasswords():
                }
            self.session = requests.session()
            self.session.proxie = {}
            #TOR PROXY
            # TOR PROXY
            self.session.proxies['http'] = proxy
            self.session.proxies['https'] = proxy
        

    def __parse_mail(self, mail):
        name = None
        service = None


@@ 48,9 49,9 @@ class FindPasswords():
                    print(e)

        return result
    

if __name__ == "__main__":
    print("Author: @JosueEncinar")
    print("Descriptor: execute!")
    print("---------------------")
    parser = argparse.ArgumentParser()
    parser.add_argument("-m", "--mail", help="Email to search passwords", required=True)


@@ 67,4 68,4 @@ if __name__ == "__main__":
        print("--------- Passwords list --------")
        print(data)
    else:
        print("Please enter a valid mail")
\ No newline at end of file
        print("Please enter a valid mail")