The Python script to search for useful username and password in your BOT Archive

Napstercrew

51
Rep
228
Likes
Super Carder
Posts
208
Threads
44
Joined
Apr 2020
Sign Up or Login to view this post and enjoy everything our site has to offer!
its still in progress but you can get the idea

Python:
import os
import re
import sys

#global variables
intro='''
============
N4P$73RCR3W
============
'''

lst = open('loglst.txt','r')



print intro

#Function to check if the logins exist in a file
def check_log(file_name, string_to_search):
    """ Check if any line in the file contains given string """
    # Open the file in read only mode
    with open(file_name, 'r') as read_obj:
        # Read all lines in the file one by one
        for line in read_obj:
            # For each line, check if line contains the string
            if string_to_search in line:
                return True
    return False

 
# Look into the archive folder
for dirpath, dirs, files in os.walk('archive'):
  for filename in fnmatch.filter(files, 'password.txt'):
    print "Found the password file :" + os.path.join(dirpath,filename)
    fname = os.path.join(dirpath,filename)
    #reading the password file
    for lg in lst:
      check_log(fname,lg)
      if check_log(fname,lg) == true:
        print "============================"
        print "OH we have found log here: "
        print "============================"
        print lg
        print "----------------------------"

i hope yall can see what's going on there