Skip to content

Commit 5a231a3

Browse files
committed
Fixes jobroche#3 and uses getpass library so password is not shown
1 parent 74ce6fb commit 5a231a3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

credcrack.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
# Version: 1.0
2626
# Date: 2015-08-09
2727

28-
import subprocess, os, argparse, time, datetime, socket, base64, threading, Queue, hashlib, binascii, signal, sys
28+
import subprocess, os, argparse, time, datetime, socket, base64, threading, Queue, hashlib, binascii, signal, sys, getpass
2929
from shlex import split
3030
from shutil import rmtree, copy
3131

@@ -327,13 +327,14 @@ def main():
327327
required = parser.add_argument_group("Required")
328328
required.add_argument('-d', '--domain', required=True, help='Domain or Workstation')
329329
required.add_argument('-u', '--user', required=True, help='Domain username')
330-
required.add_argument('-p', '--passwd', required=True, help='Domain user password')
330+
#required.add_argument('-p', '--passwd', required=True, help='Domain user password')
331331
parser.add_argument('-f', '--file', help='File containing IPs to harvest creds from. One IP per line.')
332332
parser.add_argument('-r', '--rhost', help='Remote host IP to harvest creds from.')
333333
parser.add_argument('-es', '--enumshares', help='Examine share access on the remote IP(s)', action='store_true')
334334
parser.add_argument('-l', '--lhost', help='Local host IP to launch scans from.')
335335
parser.add_argument('-t', '--threads', help='Number of threads (default: 10)', default=10, type=int)
336336
args = parser.parse_args()
337+
args.passwd = getpass.getpass()
337338

338339
print "\n " + "-" * 69 + "\n " + colors.white + " CredCrack v1.0 by Jonathan Broche (@g0jhonny)\n " + colors.normal + "-" * 69 + "\n "
339340

0 commit comments

Comments
 (0)