Projects STRLCPY PCredz Commits a8abb1de
🤬
  • Pcredz can now be runned from any path.

  • Loading...
  • lgandx committed 3 years ago
    a8abb1de
    1 parent 256f2a67
  • ■ ■ ■ ■ ■
    Pcredz
    skipped 67 lines
    68 68  timestamp = options.timestamp
    69 69  start_time = time.time()
    70 70   
    71  -Filename = str(os.path.join(os.path.dirname(__file__),"CredentialDump-Session.log"))
     71 +PcredzPath = os.path.abspath(os.path.join(os.path.dirname(__file__)))+"/"
     72 +Filename = PcredzPath+"CredentialDump-Session.log"
    72 73  l= logging.getLogger('Credential-Session')
    73 74  l.addHandler(logging.FileHandler(Filename,'a'))
    74 75   
    75 76  # Function used to write captured hashs to a file.
    76 77  def WriteData(outfile, data, user):
     78 + outfile = PcredzPath+outfile
    77 79   if type(user) is str:
    78 80   user = user.encode('latin-1')
    79 81   if not os.path.isfile(outfile):
    skipped 728 lines
Please wait...
Page is in error, reload to recover