Exemple #1
0
        target = arg
    elif opt == "-d":  #data for the POST requet
        requestFlag = True
        data = arg
    elif opt == "-c":  #copy output to the clipboard
        copyFlag = True
    elif opt == "-g":  #text to be searched for in POST response
        requestFlag = True
        text = arg
    # elif opt == "-e": #append extra character
    # 	letters.append(dummyCharacters)
    elif opt == "-n":  #append numbers to end
        numbersFlag = True

#load full or basic password list based on arguments passed in
passwords = fullSub(password) if fullFlag else basicSub(password)
if fullFlag:
    passwords = fullSub(password)
elif numbersFlag:
    passwords = appendNumbers(password)
else:
    passwords = basicSub(password)

#save passwords to file
if outputFile != '':
    f = open(outputFile, 'w')
    for password in passwords:
        f.write("".join(password) + '\n')
    f.close()
#copy passwords to clipboard
elif copyFlag:
Exemple #2
0
if __name__ == '__main__':
	parser.add_argument("-o", "--outputFile", help="The file that the password list will be written to.")
	parser.add_argument("-f", "--full", help="Full password list flag.  This can generate a very large password", action="store_true")
	parser.add_argument("-c", "--copy", help="Copy password list result to the clipboard.", action="store_true")
	parser.add_argument("-n", "--numbers", help="Append numbers flag.", action="store_true")
	parser.add_argument("-t", "--target", help="The target of the HTTP POST request.")
	parser.add_argument("-d", "--data", help="The data for the post request.")
	parser.add_argument("-g", "--search", help="The text to search for in POST respose that will indicate a successful login.")
	parser.add_argument("password",nargs="*")
	args = parser.parse_args()

	password = args.password[0]

	#load full or basic password list based on arguments passed in
	if args.full:
		passwords = fullSub(password)
	elif args.numbers:
		passwords = appendNumbers(password)
	else:
		passwords = basicSub(password)

	#save passwords to file
	if args.outputFile != None:
		writePasswordsToFile(args.outputFile, passwords)
	#copy passwords to clipboard
	elif args.copy:
		writePasswordsToClipboard(passwords)
	#make request using passwords
	elif args.target != None:
		#make sure all required values were passed in
		if args.data == None:
Exemple #3
0
		target = arg
	elif opt == "-d": #data for the POST requet
		requestFlag = True
		data = arg
	elif opt == "-c": #copy output to the clipboard
		copyFlag = True
	elif opt == "-g": #text to be searched for in POST response
		requestFlag = True
		text = arg
	# elif opt == "-e": #append extra character
	# 	letters.append(dummyCharacters)
	elif opt == "-n": #append numbers to end
		numbersFlag = True

#load full or basic password list based on arguments passed in
passwords = fullSub(password) if fullFlag else basicSub(password)
if fullFlag:
	passwords = fullSub(password)
elif numbersFlag:
	passwords = appendNumbers(password)
else:
	passwords = basicSub(password)

#save passwords to file
if outputFile != '':
	f = open(outputFile, 'w')
	for password in passwords:
		f.write("".join(password) + '\n')
	f.close()
#copy passwords to clipboard
elif copyFlag:
Exemple #4
0
                        help="The target of the HTTP POST request.")
    parser.add_argument("-d", "--data", help="The data for the post request.")
    parser.add_argument(
        "-g",
        "--search",
        help=
        "The text to search for in POST respose that will indicate a successful login."
    )
    parser.add_argument("password", nargs="*")
    args = parser.parse_args()

    password = args.password[0]

    #load full or basic password list based on arguments passed in
    if args.full:
        passwords = fullSub(password)
    elif args.numbers:
        passwords = appendNumbers(password)
    else:
        passwords = basicSub(password)

    #save passwords to file
    if args.outputFile != None:
        writePasswordsToFile(args.outputFile, passwords)
    #copy passwords to clipboard
    elif args.copy:
        writePasswordsToClipboard(passwords)
    #make request using passwords
    elif args.target != None:
        #make sure all required values were passed in
        if args.data == None:
Exemple #5
0
 def test_full_passwords(self):
   passwords = fullSub('smith')
   self.assertEqual(672, len(passwords))
   self.assertEqual('smith', passwords[0])
   self.assertEqual('5M!7#', passwords[671])