Разместить объявление
Rukassa - надёжная платёжная система для сайтов и телеграм ботов
Vibix - надеждый видео-балансир
хостинг
хостинг
VIPAdmin / PREMIUM / cod / Help Your Favorite American =(

Help Your Favorite American =(



So i ran into this issue creating diamond sorter and yeah..... im stumped ....This is my code that i have for parsing specfic values from stealer logs

 def display_results(output, console_widget_textedit):
 console_widget_textedit.append(output)
 def extract_ip_variable(directory_path):
 user_info_file = os.path.join(directory_path, "UserInformation.txt")
 ip_variable = "{IP}" # Variable to extract
 if os.path.exists(user_info_file):
 with open(user_info_file, "r") as file:
 for line in file:
 if line.startswith("IP:"):
 ip = line.strip().split(":")[1].strip()
 return ip
 return None
 def parse_button_function(self):
 format_text = self.format_request_textedit.toPlainText() # Get input text from format_request_textedit
 directory_path = self.directoryResultsTextBox_2.toPlainText() # Get the directory path from directoryResultsTextBox
 variables_chosen = f"=====================\n\nEntered Data\n\n================ =====\n{format_text}"
 results_path = self.savedResultsTextBox.toPlainText() # Get the saving results path from savedResultsTextBox
 format_capture = f"Capture Format:\n{format_text}"
 results_path_text = f"\n\nSaving Results to Path: {results_path}"
 self.console_widget_textedit.setPlainText(f"Crawling From:{directory_path}{results_path_text}\n{format_capture}\n{variables_chosen}\n")
 if os.path.isdir(directory_path):
 directory_path = QFileDialog.getExistingDirectory(self, "Select Directory")
 if not directory_path:
 return
 try:
 print("Directory path:", directory_path) # Add this line to print the directory path
 status = "Parsing completed."
 extracted_variables = {}
 # Extract variables
 ip_variable = "{IP}"
 extracted_variables = {}
 # Extract variables
 extracted_variables["IP"] = ip_variable
 for variable in ["CC", "CVC"]:
 value = self.extract_autofill_variable(directory_path, variable)
 if value:
 extracted_variables[variable] = value
 # Define additional variables
 extracted_variables["FULLZ"] = "{FULLZ}"
 extracted_variables["MM"] = "{MM}"
 extracted_variables["YY"] = "{YY}"
 extracted_variables["?"] = "{?}"
 extracted_variables["A"] = "{A}"
 extracted_variables["$"] = "{$}"
 # Process variables
 processed_output = self.process_variables(format_text, extracted_variables)
 # Display results
 output = f"Results:\n{processed_output}\n\nStatus: {status}"
 self.display_results(output)
 except AttributeError:
 error_message = "Error: Invalid directory path!"
 QMessageBox.critical(self, "Error", error_message, QMessageBox.Ok)
 def extract_autofill_variable(self, directory_path, variable):
 autofills_folder = os.path.join(directory_path, "Autofills")
 variable_names = {
 "CC": ["ccName", "cardNumber", "Card", "card-number", "ccnumber", "cc"],
 "CVC": ["cvc", "cvv", "securityCode"],
 }
 value = None
 if os.path.exists(autofills_folder):
 for file_name in os.listdir(autofills_folder):
 file_path = os.path.join(autofills_folder, file_name)
 with open(file_path, "r") as file:
 content = file.read()
 for name in variable_names.get(variable, []):
 pattern = r"Name:\s*{}\s*.*?Value:\s*(.+)".format(name)
 match = re.search(pattern, content, re.IGNORECASE)
 if match:
 value = match.group(1)
 break
 if value:
 break
 return value
 def process_variables(self, format_text, variables):
 result = format_text
 for variable, value in variables.items():
 result = result.replace("{" + variable + "}", str(value))
 return result


the issue im having is that when i set my file directory path - my console_widget_textedit detects it - however it does not crawl and it displays the error that is defined on line 63

Купить PREMIUM-доступ и получите доступ ко многим файлам на сайте, включая этот

Автор: cod

Дата: 27.06.2024 08:00

Просмотров: 13

Оцените статью:

0 0

Партнерки

Обзор RollerAds: умная пуш-сеть с инновационными инструментами
Обзор RollerAds: умная пуш-сеть с инновационными инструментами
-1
Перейти
Huffson Group: премиальная CPA-сеть для iGaming
Huffson Group: премиальная CPA-сеть для iGaming
0
Перейти

Еще немного интересного

Сервисы / Парсинг A-PARSER - парсер сайтов № 1
Сервисы / Сервера и хостинги Хостинг PrivateAlps (Игнорирует DMCA)
Сервисы / Платёжные системы Merchant001- надежный эквайринг для сайта
Статьи Дорвеи 2023-2024
Арбитраж трафика / Статьи Арбитраж трафика на пуш уведомлениях
Статьи / Софт / Антидетект Браузеры Лучшие антидетект браузеры
Сервисы / Трекеры / Клоака Keitaro PRO - трекер для арбитража трафика
Хостинг / Скрипты сайтов / Статьи Как настроить работу почты
Хостинг / Скрипты сайтов / Статьи Урок доступ mysql с любого ip
Хостинг / Скрипты сайтов / Статьи Как сделать моментальную установку сервера? HOSTINPL
Хостинг / Статьи Exim (Восстановление по e-mail)
Скрипты сайтов / Статьи JavaScript - Меняем CSS

Отзывы (0)




To connect permitted only files with the extension: .tpl or .php To connect permitted only files with the extension: .tpl or .php