Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python3
- #
- # This program is free software: you can redistribute it and/or modify
- # it under the terms of the GNU General Public License as published by
- # the Free Software Foundation, either version 3 of the License, or
- # (at your option) any later version.
- #
- # This program is distributed in the hope that it will be useful,
- # but WITHOUT ANY WARRANTY; even without the implied warranty of
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- # GNU General Public License for more details.
- #
- # you should have received a copy of the GNU General Public License
- # along with this program. If not, see <http://www.gnu.org/licenses/>.
- #
- # This program is designed to provide a user with a bruteforce hacking
- # capability. While it does have a slow performance and use a bunch of
- # at this time, expect an update on here soon. This program is meant to
- # be modified to the users needs.
- #
- #
- #
- #
- # To add special characters to the bruteforce list, copy the following
- # to the end of the chrs variable: !@#$%^&*()_+-=?><,./[]{}|\~`
- #
- # This program is slow but with current advancements in cyber security,
- # slower is sometimes better. On that note, threads are coming to this program
- # soon
- #
- import itertools
- import sys
- def checkPass(pass_string):
- """
- Function to check the created password
- according to the users logic
- """
- ##REPLACE WITH OWN LOGIC##
- for letter in pass_string:
- if pass_string.count(letter) >= 3:
- return False
- else:
- return True
- def main():
- chrs = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
- try:
- for xs in itertools.product(chrs, repeat=8):
- pass_acceptable = checkPass(xs)
- if pass_acceptable:
- ##ENTER YOUR OWN PROCESS HERE AND REMOVE 'pass' PYTHON OBJECT##
- pass
- except KeyboardInterrupt:
- print(" ")
- sys.exit()
- except Exception as e:
- print("An error has occured:\n%s" % e)
- sys.exit()
- if __name__ == '__main__':
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement