From e81765ab6d517e79f9b3013c0ae7038cd8db7870 Mon Sep 17 00:00:00 2001 From: Kalivarapubindusree Date: Thu, 10 Aug 2023 18:31:07 +0530 Subject: [PATCH 01/26] Folder Locker and Hider script added --- .../Folder_locker_and_Hider .py | 46 +++++++++++++++++++ Folder_locker_and_Hider/README.md | 14 ++++++ 2 files changed, 60 insertions(+) create mode 100644 Folder_locker_and_Hider/Folder_locker_and_Hider .py create mode 100644 Folder_locker_and_Hider/README.md diff --git a/Folder_locker_and_Hider/Folder_locker_and_Hider .py b/Folder_locker_and_Hider/Folder_locker_and_Hider .py new file mode 100644 index 0000000000..c757bba299 --- /dev/null +++ b/Folder_locker_and_Hider/Folder_locker_and_Hider .py @@ -0,0 +1,46 @@ +import os + +def xor_encrypt_decrypt(data, key): + return bytes([byte ^ key for byte in data]) + +def lock_file(file_path, key): + try: + with open(file_path, 'rb') as file: + data = file.read() + + encrypted_data = xor_encrypt_decrypt(data, key) + + with open(file_path, 'wb') as file: + file.write(encrypted_data) + + except Exception as e: + print(f'Error locking the file: {e}') + +def hide_file(file_path): + try: + os.rename(file_path, '.' + file_path) + except Exception as e: + print(f'Error hiding the file: {e}') + +def lock_and_hide_folder(folder_path, key): + try: + for root, dirs, files in os.walk(folder_path): + for file in files: + file_path = os.path.join(root, file) + lock_file(file_path, key) + hide_file(file_path + '.locked') + + os.rename(folder_path, '.' + folder_path) + print(f'Folder locked and hidden as .{folder_path}') + + except Exception as e: + print(f'Error locking and hiding the folder: {e}') + +def main(): + folder_path = input("Enter the folder path: ") + key = int(input("Enter the encryption key (an integer): ")) + + lock_and_hide_folder(folder_path, key) + +if __name__ == "__main__": + main() \ No newline at end of file diff --git a/Folder_locker_and_Hider/README.md b/Folder_locker_and_Hider/README.md new file mode 100644 index 0000000000..c8cef7f817 --- /dev/null +++ b/Folder_locker_and_Hider/README.md @@ -0,0 +1,14 @@ +# Folder_Locker_And_Hider + +Short description of package/script + +- This Script Was simple to setup +- Need import os + +## Setup instructions + +Just Need to Import os then run the Folder_Locker_And_Hider.py file and for running python3 is must be installed! + +## Detailed explanation of script, if needed + +This Script Is Only for Folder_Locker_And_Hider use only! \ No newline at end of file From dd74c3966a8a9196d1565cf01c5cb745e363443c Mon Sep 17 00:00:00 2001 From: Kalivarapubindusree Date: Thu, 10 Aug 2023 18:45:45 +0530 Subject: [PATCH 02/26] Create_And_Manage_Heroku_App added --- .../Create_And_Manage_Heroku_App.py | 40 +++++++++++++++++++ Create_And_Manage_Heroku_App/README.md | 15 +++++++ 2 files changed, 55 insertions(+) create mode 100644 Create_And_Manage_Heroku_App/Create_And_Manage_Heroku_App.py create mode 100644 Create_And_Manage_Heroku_App/README.md diff --git a/Create_And_Manage_Heroku_App/Create_And_Manage_Heroku_App.py b/Create_And_Manage_Heroku_App/Create_And_Manage_Heroku_App.py new file mode 100644 index 0000000000..9591533cea --- /dev/null +++ b/Create_And_Manage_Heroku_App/Create_And_Manage_Heroku_App.py @@ -0,0 +1,40 @@ +import heroku3 + +def create_heroku_app(app_name): + heroku_conn = heroku3.from_key('YOUR_HEROKU_API_KEY') # Replace with your Heroku API key or use heroku3.from_key(heroku_api_key) + app = heroku_conn.create_app(name=app_name) + return app + +def list_heroku_apps(): + heroku_conn = heroku3.from_key('YOUR_HEROKU_API_KEY') # Replace with your Heroku API key or use heroku3.from_key(heroku_api_key) + apps = heroku_conn.apps() + return apps + +def delete_heroku_app(app_name): + heroku_conn = heroku3.from_key('YOUR_HEROKU_API_KEY') # Replace with your Heroku API key or use heroku3.from_key(heroku_api_key) + app = heroku_conn.apps().get(app_name) + if app: + app.delete() + print(f"App '{app_name}' deleted successfully.") + else: + print(f"App '{app_name}' not found.") + +def main(): + app_name = input("Enter the name of the Heroku app: ") + + # Create a new Heroku app + new_app = create_heroku_app(app_name) + print(f"Heroku app '{new_app.name}' created successfully.") + + # List all Heroku apps + print("\nList of all Heroku apps:") + apps = list_heroku_apps() + for app in apps: + print(app.name) + + # Delete a Heroku app + delete_app = input("Enter the name of the app to delete: ") + delete_heroku_app(delete_app) + +if __name__ == "__main__": + main()s \ No newline at end of file diff --git a/Create_And_Manage_Heroku_App/README.md b/Create_And_Manage_Heroku_App/README.md new file mode 100644 index 0000000000..04193f315b --- /dev/null +++ b/Create_And_Manage_Heroku_App/README.md @@ -0,0 +1,15 @@ +# Create_And_Manage_Heroku_Apps + +Short description of package/script + +- This Script Was simple to setup +- Need import heroku3 + +## Setup instructions + +Just Need to run this command " pip install heroku3 " + then run the Create_And_Manage_Heroku_Apps.py file and for running python3 is must be installed! + +## Detailed explanation of script, if needed + +This Script Is Only for Create and manage Heroku apps use only! \ No newline at end of file From 9fca4010fe6d4b164655fabbd2423c4d81394aeb Mon Sep 17 00:00:00 2001 From: Kalivarapubindusree Date: Thu, 10 Aug 2023 18:55:03 +0530 Subject: [PATCH 03/26] Filter_Text added --- Filter_Text/Filter_Text.py | 27 +++++++++++++++++++++++++++ Filter_Text/README.md | 18 ++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 Filter_Text/Filter_Text.py create mode 100644 Filter_Text/README.md diff --git a/Filter_Text/Filter_Text.py b/Filter_Text/Filter_Text.py new file mode 100644 index 0000000000..f5b5aaf117 --- /dev/null +++ b/Filter_Text/Filter_Text.py @@ -0,0 +1,27 @@ +import re + +def filter_text(text, pattern): + filtered_text = re.findall(pattern, text) + return filtered_text + +def main(): + sample_text = """ + Lorem ipsum dolor sit amet, consectetur adipiscing elit. + Phone numbers: +1 (123) 456-7890, 555-1234, 9876543210 + Emails: john.doe@example.com, jane_smith@gmail.com + """ + + # Filter phone numbers + phone_pattern = r'\+?1? ?\(\d{3}\) ?\d{3}-\d{4}|\d{10}' + phone_numbers = filter_text(sample_text, phone_pattern) + print("Phone numbers found:") + print(phone_numbers) + + # Filter emails + email_pattern = r'[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}' + emails = filter_text(sample_text, email_pattern) + print("\nEmail addresses found:") + print(emails) + +if __name__ == "__main__": + main() \ No newline at end of file diff --git a/Filter_Text/README.md b/Filter_Text/README.md new file mode 100644 index 0000000000..2e1a82ee78 --- /dev/null +++ b/Filter_Text/README.md @@ -0,0 +1,18 @@ +# Filter_Text + +Short description of package/script + +- This Script Was simple to setup +- Need import re + +## Setup instructions + +Just Need to Import re then run the Filter_Text.py file and for running python3 is must be installed! + +## Detailed explanation of script, if needed + +This Script Is Only for Filter text use only! + +## Author(s) + +Kalivarapubindusree \ No newline at end of file From be54e9904e7013b50172c86cc5b04b8c5d344147 Mon Sep 17 00:00:00 2001 From: Kalivarapubindusree Date: Thu, 10 Aug 2023 19:06:24 +0530 Subject: [PATCH 04/26] Get_Content_From_Wikipedia added --- .../Get_Content_From_Wikipedia.py | 20 +++++++++++++++++++ Get_Content_From_Wikipedia/README.md | 17 ++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 Get_Content_From_Wikipedia/Get_Content_From_Wikipedia.py create mode 100644 Get_Content_From_Wikipedia/README.md diff --git a/Get_Content_From_Wikipedia/Get_Content_From_Wikipedia.py b/Get_Content_From_Wikipedia/Get_Content_From_Wikipedia.py new file mode 100644 index 0000000000..bc2b48eec7 --- /dev/null +++ b/Get_Content_From_Wikipedia/Get_Content_From_Wikipedia.py @@ -0,0 +1,20 @@ +import wikipediaapi + +def get_wikipedia_content(page_title): + wiki_wiki = wikipediaapi.Wikipedia('en') + page = wiki_wiki.page(page_title) + + if page.exists(): + return page.text + else: + return f"Page '{page_title}' does not exist on Wikipedia." + +def main(): + page_title = input("Enter the Wikipedia page title: ") + content = get_wikipedia_content(page_title) + + print(f"\nContent from Wikipedia for '{page_title}':\n") + print(content) + +if __name__ == "__main__": + main() \ No newline at end of file diff --git a/Get_Content_From_Wikipedia/README.md b/Get_Content_From_Wikipedia/README.md new file mode 100644 index 0000000000..aeb5f6b32d --- /dev/null +++ b/Get_Content_From_Wikipedia/README.md @@ -0,0 +1,17 @@ +# Get_Content_From_Wikipedia + +Short description of package/script + +- This Script Was simple to setup +- Need import wikipedia-api + + +## Setup instructions + + +Just Need to run this command "pip install wikipedia-api +" then run the Get_Content_From_Wikipedia.py file and for running python3 is must be installed! + +## Detailed explanation of script, if needed + +This Script Is Only for Dirbrute_Script use only! \ No newline at end of file From dd335c454ebd4096fcce8445eb08eda04996e94b Mon Sep 17 00:00:00 2001 From: Kalivarapubindusree Date: Thu, 10 Aug 2023 19:33:41 +0530 Subject: [PATCH 05/26] Forced_Browse script added --- Forced_Browse/Forced_Browse.py | 104 +++++++++++++++++++++++++++++++++ Forced_Browse/README.md | 0 2 files changed, 104 insertions(+) create mode 100644 Forced_Browse/Forced_Browse.py create mode 100644 Forced_Browse/README.md diff --git a/Forced_Browse/Forced_Browse.py b/Forced_Browse/Forced_Browse.py new file mode 100644 index 0000000000..a6a9558fff --- /dev/null +++ b/Forced_Browse/Forced_Browse.py @@ -0,0 +1,104 @@ + +import sys +import time +import requests +from concurrent.futures import ThreadPoolExecutor as executor +from optparse import OptionParser + +def printer(word): + sys.stdout.write(word + " \r") + sys.stdout.flush() + return True + +yellow = "\033[93m" +green = "\033[92m" +blue = "\033[94m" +red = "\033[91m" +bold = "\033[1m" +end = "\033[0m" + +def check_status(domain, url): + if not url or url.startswith("#") or len(url) > 30: + return False + + printer("Testing: " + domain + url) + try: + link = domain + url + req = requests.head(link) + st = str(req.status_code) + if st.startswith(("2", "1")): + print(green + "[+] " + st + " | Found: " + end + "[ " + url + " ]" + " \r") + elif st.startswith("3"): + link = req.headers['Location'] + print(yellow + "[*] " + st + " | Redirection From: " + end + "[ " + url + " ]" + yellow + " -> " + end + "[ " + link + " ]" + " \r") + elif st.startswith("4"): + if st != '404': + print(blue + "[!] " + st + " | Found: " + end + "[ " + url + " ]" + " \r") + return True + except Exception: + return False + +def presearch(domain, ext, url): + if ext == 'Null' or ext == 'None': + check_status(domain, url) + elif url and not url.isspace(): + ext_list = [ext] if ext != "None" else [""] + for i in ext_list: + link = url if not i else url + "." + str(i) + check_status(domain, link) + +def main(): + parser = OptionParser(green + """ +#Usage:""" + yellow + """ + -t target host + -w wordlist + -d thread number (Optional, Default: 10) + -e extensions (Optional, ex: html,php) +""" + green + """ +#Example:""" + yellow + """ + python3 dirbrute.py -t domain.com -w dirlist.txt -d 20 -e php,html +""" + end) + + try: + parser.add_option("-t", dest="target", type="string", help="the target domain") + parser.add_option("-w", dest="wordlist", type="string", help="wordlist file") + parser.add_option("-d", dest="thread", type="int", help="the thread number") + parser.add_option("-e", dest="extension", type="string", help="the extensions") + (options, _) = parser.parse_args() + + if not options.target or not options.wordlist: + print(parser.usage) + exit(1) + + target = options.target + wordlist = options.wordlist + thread = options.thread if options.thread else 10 + ext = options.extension if options.extension else "Null" + + target = target if target.startswith("http") else "http://" + target + target = target if target.endswith("/") else target + "/" + + print("[" + yellow + bold + "Info" + end + "]:\n") + print(blue + "[" + red + "+" + blue + "] Target: " + end + target) + print(blue + "[" + red + "+" + blue + "] File: " + end + wordlist) + print(blue + "[" + red + "+" + blue + "] Thread: " + end + str(thread)) + print(blue + "[" + red + "+" + blue + "] Extension: " + end + str(ext)) + print("\n[" + yellow + bold + "Start Searching" + end + "]:\n") + + ext_list = ext.split(",") if ext != "Null" else ["Null"] + with open(wordlist, 'r') as urls: + with executor(max_workers=int(thread)) as exe: + jobs = [exe.submit(presearch, target, ext, url.strip('\n')) for url in urls] + + took = (time.time() - start) / 60 + print(red + "Took: " + end + f"{round(took, 2)} m" + " \r") + + print("\n\t* Happy Hacking *") + + except Exception as e: + print(red + "#Error: " + end + str(e)) + exit(1) + +if __name__ == '__main__': + start = time.time() + main() diff --git a/Forced_Browse/README.md b/Forced_Browse/README.md new file mode 100644 index 0000000000..e69de29bb2 From 4c809a0a889c3fec8ddc52d45de03cc2aae26101 Mon Sep 17 00:00:00 2001 From: Kalivarapubindusree Date: Thu, 10 Aug 2023 20:07:39 +0530 Subject: [PATCH 06/26] OS_interaction script added --- OS_interaction/OS_interaction.py | 20 ++++++++++++++++++++ OS_interaction/README.md | 16 ++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 OS_interaction/OS_interaction.py create mode 100644 OS_interaction/README.md diff --git a/OS_interaction/OS_interaction.py b/OS_interaction/OS_interaction.py new file mode 100644 index 0000000000..a50764c956 --- /dev/null +++ b/OS_interaction/OS_interaction.py @@ -0,0 +1,20 @@ +import psutil +import time +import os + +def monitor_cpu_threshold(threshold): + while True: + cpu_percent = psutil.cpu_percent(interval=1) + print(f"Current CPU Usage: {cpu_percent}%") + + if cpu_percent > threshold: + print("CPU usage exceeds threshold!") + # You can add more actions here, such as sending an email or notification. + # For simplicity, we'll just print an alert message. + os.system("say 'High CPU usage detected!'") # macOS command to speak the message + + time.sleep(10) # Wait for 10 seconds before checking again + +if __name__ == "__main__": + threshold_percent = 80 # Define the CPU usage threshold in percentage + monitor_cpu_threshold(threshold_percent) diff --git a/OS_interaction/README.md b/OS_interaction/README.md new file mode 100644 index 0000000000..fd70588ed9 --- /dev/null +++ b/OS_interaction/README.md @@ -0,0 +1,16 @@ +# OS_interaction script + +Short description of package/script + +- This Script Was simple to setup +- Need import psutil,time,os + + +## Setup instructions + + +Just Need to import psutil,time,os then run the OS_interaction.py file and for running python3 is must be installed! + +## Detailed explanation of script, if needed + +This Script Is Only for OS_interaction use only! \ No newline at end of file From 8da6e06f0efc3d503dd43e88e0fe2d0982a3db00 Mon Sep 17 00:00:00 2001 From: Kalivarapubindusree Date: Thu, 10 Aug 2023 20:20:02 +0530 Subject: [PATCH 07/26] version_control_automation script added --- version_control_automation_script/README.md | 12 +++++++++++ .../version_control_automation_script.py | 21 +++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 version_control_automation_script/README.md create mode 100644 version_control_automation_script/version_control_automation_script.py diff --git a/version_control_automation_script/README.md b/version_control_automation_script/README.md new file mode 100644 index 0000000000..66d11ac393 --- /dev/null +++ b/version_control_automation_script/README.md @@ -0,0 +1,12 @@ +# Version_control_automation_script + +Short description of package/script + +- This Script Was simple to setup +- Need import subprocess module to interact + + +## Setup instructions + + +Just Need to import subprocess module and then run the Version_control_automation_script.py file and for running python3 is must be installed! \ No newline at end of file diff --git a/version_control_automation_script/version_control_automation_script.py b/version_control_automation_script/version_control_automation_script.py new file mode 100644 index 0000000000..b325184ff7 --- /dev/null +++ b/version_control_automation_script/version_control_automation_script.py @@ -0,0 +1,21 @@ +import subprocess + +def create_and_commit_branch(branch_name, commit_message): + # Create a new branch + subprocess.run(["git", "checkout", "-b", branch_name]) + + # Make changes to files (modify, add, remove) + # ... + + # Commit the changes + subprocess.run(["git", "add", "."]) + subprocess.run(["git", "commit", "-m", commit_message]) + + # Push the changes to the remote repository + subprocess.run(["git", "push", "origin", branch_name]) + +if __name__ == "__main__": + new_branch_name = "feature/awesome-feature" + commit_msg = "Added an awesome feature" + + create_and_commit_branch(new_branch_name, commit_msg) From ea8a3ac7f41d28c966c89141bac125bc1b8241e4 Mon Sep 17 00:00:00 2001 From: Kalivarapubindusree Date: Thu, 10 Aug 2023 21:13:52 +0530 Subject: [PATCH 08/26] Network_Monitor script added --- Network_Monitor/Network_Monitor.py | 24 ++++++++++++++++++++++++ Network_Monitor/README.md | 16 ++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 Network_Monitor/Network_Monitor.py create mode 100644 Network_Monitor/README.md diff --git a/Network_Monitor/Network_Monitor.py b/Network_Monitor/Network_Monitor.py new file mode 100644 index 0000000000..cd68b93cdb --- /dev/null +++ b/Network_Monitor/Network_Monitor.py @@ -0,0 +1,24 @@ +import ping3 +import time + +def ping_servers(server_list): + while True: + for server in server_list: + response_time = ping3.ping(server) + if response_time is not None: + print(f"{server} is up (Response Time: {response_time} ms)") + else: + print(f"{server} is down! ALERT!") + + time.sleep(60) # Ping every 60 seconds + +if __name__ == "__main__": + servers_to_monitor = ["google.com", "example.com", "localhost"] + + print("Network Monitoring Script") + print("Press Ctrl+C to stop monitoring") + + try: + ping_servers(servers_to_monitor) + except KeyboardInterrupt: + print("\nMonitoring stopped.") diff --git a/Network_Monitor/README.md b/Network_Monitor/README.md new file mode 100644 index 0000000000..4f16f4cc2f --- /dev/null +++ b/Network_Monitor/README.md @@ -0,0 +1,16 @@ +# Network_Monitor + +Short description of package/script + +- This Script Was simple to setup +- Need import ping3 + + +## Setup instructions + + +Just Need to run this command "pip install ping3" then run the Network_Monitor.py file and for running python3 is must be installed! + +## Detailed explanation of script, if needed + +This Script Is Only for Network_Monitoring use only! \ No newline at end of file From ab8919d66d18b22d8c6cc03672f7c08f978bc951 Mon Sep 17 00:00:00 2001 From: Kalivarapubindusree Date: Thu, 10 Aug 2023 21:26:15 +0530 Subject: [PATCH 09/26] Network_Monitoring script added --- .../Network_Monitoring.py | 0 {Network_Monitor => Network_Monitoring}/README.md | 8 ++++---- 2 files changed, 4 insertions(+), 4 deletions(-) rename Network_Monitor/Network_Monitor.py => Network_Monitoring/Network_Monitoring.py (100%) rename {Network_Monitor => Network_Monitoring}/README.md (54%) diff --git a/Network_Monitor/Network_Monitor.py b/Network_Monitoring/Network_Monitoring.py similarity index 100% rename from Network_Monitor/Network_Monitor.py rename to Network_Monitoring/Network_Monitoring.py diff --git a/Network_Monitor/README.md b/Network_Monitoring/README.md similarity index 54% rename from Network_Monitor/README.md rename to Network_Monitoring/README.md index 4f16f4cc2f..9d28519e09 100644 --- a/Network_Monitor/README.md +++ b/Network_Monitoring/README.md @@ -1,16 +1,16 @@ -# Network_Monitor +# Network_Monitoring Short description of package/script - This Script Was simple to setup -- Need import ping3 +- Need import ping3,time ## Setup instructions -Just Need to run this command "pip install ping3" then run the Network_Monitor.py file and for running python3 is must be installed! +Just Need to run this command "pip install ping3" then run the Network_Monitoring.py file and for running python3 is must be installed! ## Detailed explanation of script, if needed -This Script Is Only for Network_Monitoring use only! \ No newline at end of file +This Script Is Only for Network_Monitoring use only! \ No newline at end of file From 00d7660c26e7902de8032dccbe4e3e468d4660c5 Mon Sep 17 00:00:00 2001 From: Kalivarapubindusree Date: Thu, 10 Aug 2023 22:32:32 +0530 Subject: [PATCH 10/26] Database_Interaction script added --- Database_Interaction/Databse_Interaction.py | 53 +++++++++++++++++++++ Database_Interaction/README.md | 16 +++++++ 2 files changed, 69 insertions(+) create mode 100644 Database_Interaction/Databse_Interaction.py create mode 100644 Database_Interaction/README.md diff --git a/Database_Interaction/Databse_Interaction.py b/Database_Interaction/Databse_Interaction.py new file mode 100644 index 0000000000..74e3c51570 --- /dev/null +++ b/Database_Interaction/Databse_Interaction.py @@ -0,0 +1,53 @@ +import sqlite3 + +def create_table(connection): + cursor = connection.cursor() + cursor.execute('''CREATE TABLE IF NOT EXISTS employees ( + id INTEGER PRIMARY KEY, + name TEXT, + position TEXT, + salary REAL + )''') + connection.commit() + +def insert_data(connection, name, position, salary): + cursor = connection.cursor() + cursor.execute("INSERT INTO employees (name, position, salary) VALUES (?, ?, ?)", + (name, position, salary)) + connection.commit() + +def update_salary(connection, employee_id, new_salary): + cursor = connection.cursor() + cursor.execute("UPDATE employees SET salary = ? WHERE id = ?", (new_salary, employee_id)) + connection.commit() + +def query_data(connection): + cursor = connection.cursor() + cursor.execute("SELECT * FROM employees") + rows = cursor.fetchall() + + print("\nEmployee Data:") + for row in rows: + print(f"ID: {row[0]}, Name: {row[1]}, Position: {row[2]}, Salary: {row[3]}") + +if __name__ == "__main__": + database_name = "employee_database.db" + + connection = sqlite3.connect(database_name) + print(f"Connected to {database_name}") + + create_table(connection) + + insert_data(connection, "John Doe", "Software Engineer", 75000.0) + insert_data(connection, "Jane Smith", "Data Analyst", 60000.0) + + print("\nAfter Insertions:") + query_data(connection) + + update_salary(connection, 1, 80000.0) + + print("\nAfter Update:") + query_data(connection) + + connection.close() + print(f"Connection to {database_name} closed.") diff --git a/Database_Interaction/README.md b/Database_Interaction/README.md new file mode 100644 index 0000000000..aebea4f45b --- /dev/null +++ b/Database_Interaction/README.md @@ -0,0 +1,16 @@ +# Database_Interaction + +Short description of package/script + +- This Script Was simple to setup +- Need import sqlite3 + + +## Setup instructions + + +Just Need to run this command "pip install sqlite3" then run Databse_Interaction.py file and for running python3 is must be installed! + +## Detailed explanation of script, if needed + +This Script Is Only for Database_Interaction use only! \ No newline at end of file From 5471fb206b2429c341da1e9640fe3536d223f64e Mon Sep 17 00:00:00 2001 From: Bindusree kalivarapu <114821855+Kalivarapubindusree@users.noreply.github.com> Date: Thu, 10 Aug 2023 22:35:36 +0530 Subject: [PATCH 11/26] Delete Create_And_Manage_Heroku_App.py --- .../Create_And_Manage_Heroku_App.py | 40 ------------------- 1 file changed, 40 deletions(-) delete mode 100644 Create_And_Manage_Heroku_App/Create_And_Manage_Heroku_App.py diff --git a/Create_And_Manage_Heroku_App/Create_And_Manage_Heroku_App.py b/Create_And_Manage_Heroku_App/Create_And_Manage_Heroku_App.py deleted file mode 100644 index 9591533cea..0000000000 --- a/Create_And_Manage_Heroku_App/Create_And_Manage_Heroku_App.py +++ /dev/null @@ -1,40 +0,0 @@ -import heroku3 - -def create_heroku_app(app_name): - heroku_conn = heroku3.from_key('YOUR_HEROKU_API_KEY') # Replace with your Heroku API key or use heroku3.from_key(heroku_api_key) - app = heroku_conn.create_app(name=app_name) - return app - -def list_heroku_apps(): - heroku_conn = heroku3.from_key('YOUR_HEROKU_API_KEY') # Replace with your Heroku API key or use heroku3.from_key(heroku_api_key) - apps = heroku_conn.apps() - return apps - -def delete_heroku_app(app_name): - heroku_conn = heroku3.from_key('YOUR_HEROKU_API_KEY') # Replace with your Heroku API key or use heroku3.from_key(heroku_api_key) - app = heroku_conn.apps().get(app_name) - if app: - app.delete() - print(f"App '{app_name}' deleted successfully.") - else: - print(f"App '{app_name}' not found.") - -def main(): - app_name = input("Enter the name of the Heroku app: ") - - # Create a new Heroku app - new_app = create_heroku_app(app_name) - print(f"Heroku app '{new_app.name}' created successfully.") - - # List all Heroku apps - print("\nList of all Heroku apps:") - apps = list_heroku_apps() - for app in apps: - print(app.name) - - # Delete a Heroku app - delete_app = input("Enter the name of the app to delete: ") - delete_heroku_app(delete_app) - -if __name__ == "__main__": - main()s \ No newline at end of file From 2aaf8d24deff61ae3faf32b8f9a53ff6a27e3f1d Mon Sep 17 00:00:00 2001 From: Bindusree kalivarapu <114821855+Kalivarapubindusree@users.noreply.github.com> Date: Thu, 10 Aug 2023 22:35:49 +0530 Subject: [PATCH 12/26] Delete README.md --- Create_And_Manage_Heroku_App/README.md | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 Create_And_Manage_Heroku_App/README.md diff --git a/Create_And_Manage_Heroku_App/README.md b/Create_And_Manage_Heroku_App/README.md deleted file mode 100644 index 04193f315b..0000000000 --- a/Create_And_Manage_Heroku_App/README.md +++ /dev/null @@ -1,15 +0,0 @@ -# Create_And_Manage_Heroku_Apps - -Short description of package/script - -- This Script Was simple to setup -- Need import heroku3 - -## Setup instructions - -Just Need to run this command " pip install heroku3 " - then run the Create_And_Manage_Heroku_Apps.py file and for running python3 is must be installed! - -## Detailed explanation of script, if needed - -This Script Is Only for Create and manage Heroku apps use only! \ No newline at end of file From 26e66f424e4c5bf2abc8042221827d7e5cff5602 Mon Sep 17 00:00:00 2001 From: Bindusree kalivarapu <114821855+Kalivarapubindusree@users.noreply.github.com> Date: Thu, 10 Aug 2023 22:36:02 +0530 Subject: [PATCH 13/26] Delete Filter_Text.py --- Filter_Text/Filter_Text.py | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 Filter_Text/Filter_Text.py diff --git a/Filter_Text/Filter_Text.py b/Filter_Text/Filter_Text.py deleted file mode 100644 index f5b5aaf117..0000000000 --- a/Filter_Text/Filter_Text.py +++ /dev/null @@ -1,27 +0,0 @@ -import re - -def filter_text(text, pattern): - filtered_text = re.findall(pattern, text) - return filtered_text - -def main(): - sample_text = """ - Lorem ipsum dolor sit amet, consectetur adipiscing elit. - Phone numbers: +1 (123) 456-7890, 555-1234, 9876543210 - Emails: john.doe@example.com, jane_smith@gmail.com - """ - - # Filter phone numbers - phone_pattern = r'\+?1? ?\(\d{3}\) ?\d{3}-\d{4}|\d{10}' - phone_numbers = filter_text(sample_text, phone_pattern) - print("Phone numbers found:") - print(phone_numbers) - - # Filter emails - email_pattern = r'[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}' - emails = filter_text(sample_text, email_pattern) - print("\nEmail addresses found:") - print(emails) - -if __name__ == "__main__": - main() \ No newline at end of file From 0cbb629e17efdbfee30520c078c0d8f60c251f00 Mon Sep 17 00:00:00 2001 From: Bindusree kalivarapu <114821855+Kalivarapubindusree@users.noreply.github.com> Date: Thu, 10 Aug 2023 22:36:13 +0530 Subject: [PATCH 14/26] Delete README.md --- Filter_Text/README.md | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 Filter_Text/README.md diff --git a/Filter_Text/README.md b/Filter_Text/README.md deleted file mode 100644 index 2e1a82ee78..0000000000 --- a/Filter_Text/README.md +++ /dev/null @@ -1,18 +0,0 @@ -# Filter_Text - -Short description of package/script - -- This Script Was simple to setup -- Need import re - -## Setup instructions - -Just Need to Import re then run the Filter_Text.py file and for running python3 is must be installed! - -## Detailed explanation of script, if needed - -This Script Is Only for Filter text use only! - -## Author(s) - -Kalivarapubindusree \ No newline at end of file From c5c8ec38f7a114b45adbdfa8c999b1b6f7655f04 Mon Sep 17 00:00:00 2001 From: Bindusree kalivarapu <114821855+Kalivarapubindusree@users.noreply.github.com> Date: Thu, 10 Aug 2023 22:36:27 +0530 Subject: [PATCH 15/26] Delete Folder_locker_and_Hider .py --- .../Folder_locker_and_Hider .py | 46 ------------------- 1 file changed, 46 deletions(-) delete mode 100644 Folder_locker_and_Hider/Folder_locker_and_Hider .py diff --git a/Folder_locker_and_Hider/Folder_locker_and_Hider .py b/Folder_locker_and_Hider/Folder_locker_and_Hider .py deleted file mode 100644 index c757bba299..0000000000 --- a/Folder_locker_and_Hider/Folder_locker_and_Hider .py +++ /dev/null @@ -1,46 +0,0 @@ -import os - -def xor_encrypt_decrypt(data, key): - return bytes([byte ^ key for byte in data]) - -def lock_file(file_path, key): - try: - with open(file_path, 'rb') as file: - data = file.read() - - encrypted_data = xor_encrypt_decrypt(data, key) - - with open(file_path, 'wb') as file: - file.write(encrypted_data) - - except Exception as e: - print(f'Error locking the file: {e}') - -def hide_file(file_path): - try: - os.rename(file_path, '.' + file_path) - except Exception as e: - print(f'Error hiding the file: {e}') - -def lock_and_hide_folder(folder_path, key): - try: - for root, dirs, files in os.walk(folder_path): - for file in files: - file_path = os.path.join(root, file) - lock_file(file_path, key) - hide_file(file_path + '.locked') - - os.rename(folder_path, '.' + folder_path) - print(f'Folder locked and hidden as .{folder_path}') - - except Exception as e: - print(f'Error locking and hiding the folder: {e}') - -def main(): - folder_path = input("Enter the folder path: ") - key = int(input("Enter the encryption key (an integer): ")) - - lock_and_hide_folder(folder_path, key) - -if __name__ == "__main__": - main() \ No newline at end of file From eb1da28163cf7924610285fc25edf86267cabbf6 Mon Sep 17 00:00:00 2001 From: Bindusree kalivarapu <114821855+Kalivarapubindusree@users.noreply.github.com> Date: Thu, 10 Aug 2023 22:36:40 +0530 Subject: [PATCH 16/26] Delete README.md --- Folder_locker_and_Hider/README.md | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 Folder_locker_and_Hider/README.md diff --git a/Folder_locker_and_Hider/README.md b/Folder_locker_and_Hider/README.md deleted file mode 100644 index c8cef7f817..0000000000 --- a/Folder_locker_and_Hider/README.md +++ /dev/null @@ -1,14 +0,0 @@ -# Folder_Locker_And_Hider - -Short description of package/script - -- This Script Was simple to setup -- Need import os - -## Setup instructions - -Just Need to Import os then run the Folder_Locker_And_Hider.py file and for running python3 is must be installed! - -## Detailed explanation of script, if needed - -This Script Is Only for Folder_Locker_And_Hider use only! \ No newline at end of file From 24862320b77ccb59ff5e25b08e336d3e142177e2 Mon Sep 17 00:00:00 2001 From: Bindusree kalivarapu <114821855+Kalivarapubindusree@users.noreply.github.com> Date: Thu, 10 Aug 2023 22:36:52 +0530 Subject: [PATCH 17/26] Delete Forced_Browse.py --- Forced_Browse/Forced_Browse.py | 104 --------------------------------- 1 file changed, 104 deletions(-) delete mode 100644 Forced_Browse/Forced_Browse.py diff --git a/Forced_Browse/Forced_Browse.py b/Forced_Browse/Forced_Browse.py deleted file mode 100644 index a6a9558fff..0000000000 --- a/Forced_Browse/Forced_Browse.py +++ /dev/null @@ -1,104 +0,0 @@ - -import sys -import time -import requests -from concurrent.futures import ThreadPoolExecutor as executor -from optparse import OptionParser - -def printer(word): - sys.stdout.write(word + " \r") - sys.stdout.flush() - return True - -yellow = "\033[93m" -green = "\033[92m" -blue = "\033[94m" -red = "\033[91m" -bold = "\033[1m" -end = "\033[0m" - -def check_status(domain, url): - if not url or url.startswith("#") or len(url) > 30: - return False - - printer("Testing: " + domain + url) - try: - link = domain + url - req = requests.head(link) - st = str(req.status_code) - if st.startswith(("2", "1")): - print(green + "[+] " + st + " | Found: " + end + "[ " + url + " ]" + " \r") - elif st.startswith("3"): - link = req.headers['Location'] - print(yellow + "[*] " + st + " | Redirection From: " + end + "[ " + url + " ]" + yellow + " -> " + end + "[ " + link + " ]" + " \r") - elif st.startswith("4"): - if st != '404': - print(blue + "[!] " + st + " | Found: " + end + "[ " + url + " ]" + " \r") - return True - except Exception: - return False - -def presearch(domain, ext, url): - if ext == 'Null' or ext == 'None': - check_status(domain, url) - elif url and not url.isspace(): - ext_list = [ext] if ext != "None" else [""] - for i in ext_list: - link = url if not i else url + "." + str(i) - check_status(domain, link) - -def main(): - parser = OptionParser(green + """ -#Usage:""" + yellow + """ - -t target host - -w wordlist - -d thread number (Optional, Default: 10) - -e extensions (Optional, ex: html,php) -""" + green + """ -#Example:""" + yellow + """ - python3 dirbrute.py -t domain.com -w dirlist.txt -d 20 -e php,html -""" + end) - - try: - parser.add_option("-t", dest="target", type="string", help="the target domain") - parser.add_option("-w", dest="wordlist", type="string", help="wordlist file") - parser.add_option("-d", dest="thread", type="int", help="the thread number") - parser.add_option("-e", dest="extension", type="string", help="the extensions") - (options, _) = parser.parse_args() - - if not options.target or not options.wordlist: - print(parser.usage) - exit(1) - - target = options.target - wordlist = options.wordlist - thread = options.thread if options.thread else 10 - ext = options.extension if options.extension else "Null" - - target = target if target.startswith("http") else "http://" + target - target = target if target.endswith("/") else target + "/" - - print("[" + yellow + bold + "Info" + end + "]:\n") - print(blue + "[" + red + "+" + blue + "] Target: " + end + target) - print(blue + "[" + red + "+" + blue + "] File: " + end + wordlist) - print(blue + "[" + red + "+" + blue + "] Thread: " + end + str(thread)) - print(blue + "[" + red + "+" + blue + "] Extension: " + end + str(ext)) - print("\n[" + yellow + bold + "Start Searching" + end + "]:\n") - - ext_list = ext.split(",") if ext != "Null" else ["Null"] - with open(wordlist, 'r') as urls: - with executor(max_workers=int(thread)) as exe: - jobs = [exe.submit(presearch, target, ext, url.strip('\n')) for url in urls] - - took = (time.time() - start) / 60 - print(red + "Took: " + end + f"{round(took, 2)} m" + " \r") - - print("\n\t* Happy Hacking *") - - except Exception as e: - print(red + "#Error: " + end + str(e)) - exit(1) - -if __name__ == '__main__': - start = time.time() - main() From ae5179d6274c7132b3823650e74a45651606ef26 Mon Sep 17 00:00:00 2001 From: Bindusree kalivarapu <114821855+Kalivarapubindusree@users.noreply.github.com> Date: Thu, 10 Aug 2023 22:37:08 +0530 Subject: [PATCH 18/26] Delete README.md --- Forced_Browse/README.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 Forced_Browse/README.md diff --git a/Forced_Browse/README.md b/Forced_Browse/README.md deleted file mode 100644 index e69de29bb2..0000000000 From aef10907a51c60045e9bb776d7dbc228340344e1 Mon Sep 17 00:00:00 2001 From: Bindusree kalivarapu <114821855+Kalivarapubindusree@users.noreply.github.com> Date: Thu, 10 Aug 2023 22:37:19 +0530 Subject: [PATCH 19/26] Delete Get_Content_From_Wikipedia.py --- .../Get_Content_From_Wikipedia.py | 20 ------------------- 1 file changed, 20 deletions(-) delete mode 100644 Get_Content_From_Wikipedia/Get_Content_From_Wikipedia.py diff --git a/Get_Content_From_Wikipedia/Get_Content_From_Wikipedia.py b/Get_Content_From_Wikipedia/Get_Content_From_Wikipedia.py deleted file mode 100644 index bc2b48eec7..0000000000 --- a/Get_Content_From_Wikipedia/Get_Content_From_Wikipedia.py +++ /dev/null @@ -1,20 +0,0 @@ -import wikipediaapi - -def get_wikipedia_content(page_title): - wiki_wiki = wikipediaapi.Wikipedia('en') - page = wiki_wiki.page(page_title) - - if page.exists(): - return page.text - else: - return f"Page '{page_title}' does not exist on Wikipedia." - -def main(): - page_title = input("Enter the Wikipedia page title: ") - content = get_wikipedia_content(page_title) - - print(f"\nContent from Wikipedia for '{page_title}':\n") - print(content) - -if __name__ == "__main__": - main() \ No newline at end of file From 30604907e133faddd8cd35c89b889c4c255cb769 Mon Sep 17 00:00:00 2001 From: Bindusree kalivarapu <114821855+Kalivarapubindusree@users.noreply.github.com> Date: Thu, 10 Aug 2023 22:37:42 +0530 Subject: [PATCH 20/26] Delete README.md --- Get_Content_From_Wikipedia/README.md | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 Get_Content_From_Wikipedia/README.md diff --git a/Get_Content_From_Wikipedia/README.md b/Get_Content_From_Wikipedia/README.md deleted file mode 100644 index aeb5f6b32d..0000000000 --- a/Get_Content_From_Wikipedia/README.md +++ /dev/null @@ -1,17 +0,0 @@ -# Get_Content_From_Wikipedia - -Short description of package/script - -- This Script Was simple to setup -- Need import wikipedia-api - - -## Setup instructions - - -Just Need to run this command "pip install wikipedia-api -" then run the Get_Content_From_Wikipedia.py file and for running python3 is must be installed! - -## Detailed explanation of script, if needed - -This Script Is Only for Dirbrute_Script use only! \ No newline at end of file From 2786c0d1b57165b9f1e7209ed908848c91acce1b Mon Sep 17 00:00:00 2001 From: Bindusree kalivarapu <114821855+Kalivarapubindusree@users.noreply.github.com> Date: Thu, 10 Aug 2023 22:37:57 +0530 Subject: [PATCH 21/26] Delete Network_Monitoring.py --- Network_Monitoring/Network_Monitoring.py | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 Network_Monitoring/Network_Monitoring.py diff --git a/Network_Monitoring/Network_Monitoring.py b/Network_Monitoring/Network_Monitoring.py deleted file mode 100644 index cd68b93cdb..0000000000 --- a/Network_Monitoring/Network_Monitoring.py +++ /dev/null @@ -1,24 +0,0 @@ -import ping3 -import time - -def ping_servers(server_list): - while True: - for server in server_list: - response_time = ping3.ping(server) - if response_time is not None: - print(f"{server} is up (Response Time: {response_time} ms)") - else: - print(f"{server} is down! ALERT!") - - time.sleep(60) # Ping every 60 seconds - -if __name__ == "__main__": - servers_to_monitor = ["google.com", "example.com", "localhost"] - - print("Network Monitoring Script") - print("Press Ctrl+C to stop monitoring") - - try: - ping_servers(servers_to_monitor) - except KeyboardInterrupt: - print("\nMonitoring stopped.") From 21d2b2c36ea82335d62316633b9e9ec247651e5f Mon Sep 17 00:00:00 2001 From: Bindusree kalivarapu <114821855+Kalivarapubindusree@users.noreply.github.com> Date: Thu, 10 Aug 2023 22:38:10 +0530 Subject: [PATCH 22/26] Delete README.md --- Network_Monitoring/README.md | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 Network_Monitoring/README.md diff --git a/Network_Monitoring/README.md b/Network_Monitoring/README.md deleted file mode 100644 index 9d28519e09..0000000000 --- a/Network_Monitoring/README.md +++ /dev/null @@ -1,16 +0,0 @@ -# Network_Monitoring - -Short description of package/script - -- This Script Was simple to setup -- Need import ping3,time - - -## Setup instructions - - -Just Need to run this command "pip install ping3" then run the Network_Monitoring.py file and for running python3 is must be installed! - -## Detailed explanation of script, if needed - -This Script Is Only for Network_Monitoring use only! \ No newline at end of file From ee5d4960686c01e84a2ec73d222be22a69fd7105 Mon Sep 17 00:00:00 2001 From: Bindusree kalivarapu <114821855+Kalivarapubindusree@users.noreply.github.com> Date: Thu, 10 Aug 2023 22:38:21 +0530 Subject: [PATCH 23/26] Delete OS_interaction.py --- OS_interaction/OS_interaction.py | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 OS_interaction/OS_interaction.py diff --git a/OS_interaction/OS_interaction.py b/OS_interaction/OS_interaction.py deleted file mode 100644 index a50764c956..0000000000 --- a/OS_interaction/OS_interaction.py +++ /dev/null @@ -1,20 +0,0 @@ -import psutil -import time -import os - -def monitor_cpu_threshold(threshold): - while True: - cpu_percent = psutil.cpu_percent(interval=1) - print(f"Current CPU Usage: {cpu_percent}%") - - if cpu_percent > threshold: - print("CPU usage exceeds threshold!") - # You can add more actions here, such as sending an email or notification. - # For simplicity, we'll just print an alert message. - os.system("say 'High CPU usage detected!'") # macOS command to speak the message - - time.sleep(10) # Wait for 10 seconds before checking again - -if __name__ == "__main__": - threshold_percent = 80 # Define the CPU usage threshold in percentage - monitor_cpu_threshold(threshold_percent) From 77f242ef095ed8fe1d3577fd9a09a3a471fe4c6f Mon Sep 17 00:00:00 2001 From: Bindusree kalivarapu <114821855+Kalivarapubindusree@users.noreply.github.com> Date: Thu, 10 Aug 2023 22:38:33 +0530 Subject: [PATCH 24/26] Delete README.md --- OS_interaction/README.md | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 OS_interaction/README.md diff --git a/OS_interaction/README.md b/OS_interaction/README.md deleted file mode 100644 index fd70588ed9..0000000000 --- a/OS_interaction/README.md +++ /dev/null @@ -1,16 +0,0 @@ -# OS_interaction script - -Short description of package/script - -- This Script Was simple to setup -- Need import psutil,time,os - - -## Setup instructions - - -Just Need to import psutil,time,os then run the OS_interaction.py file and for running python3 is must be installed! - -## Detailed explanation of script, if needed - -This Script Is Only for OS_interaction use only! \ No newline at end of file From 7eca6fe13058bd43878b1d7a1c005a190c4e5ae4 Mon Sep 17 00:00:00 2001 From: Bindusree kalivarapu <114821855+Kalivarapubindusree@users.noreply.github.com> Date: Thu, 10 Aug 2023 22:38:47 +0530 Subject: [PATCH 25/26] Delete README.md --- version_control_automation_script/README.md | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 version_control_automation_script/README.md diff --git a/version_control_automation_script/README.md b/version_control_automation_script/README.md deleted file mode 100644 index 66d11ac393..0000000000 --- a/version_control_automation_script/README.md +++ /dev/null @@ -1,12 +0,0 @@ -# Version_control_automation_script - -Short description of package/script - -- This Script Was simple to setup -- Need import subprocess module to interact - - -## Setup instructions - - -Just Need to import subprocess module and then run the Version_control_automation_script.py file and for running python3 is must be installed! \ No newline at end of file From 28de39befe0399c1df3af8e11f678bc7c5f40ba6 Mon Sep 17 00:00:00 2001 From: Bindusree kalivarapu <114821855+Kalivarapubindusree@users.noreply.github.com> Date: Thu, 10 Aug 2023 22:38:58 +0530 Subject: [PATCH 26/26] Delete version_control_automation_script.py --- .../version_control_automation_script.py | 21 ------------------- 1 file changed, 21 deletions(-) delete mode 100644 version_control_automation_script/version_control_automation_script.py diff --git a/version_control_automation_script/version_control_automation_script.py b/version_control_automation_script/version_control_automation_script.py deleted file mode 100644 index b325184ff7..0000000000 --- a/version_control_automation_script/version_control_automation_script.py +++ /dev/null @@ -1,21 +0,0 @@ -import subprocess - -def create_and_commit_branch(branch_name, commit_message): - # Create a new branch - subprocess.run(["git", "checkout", "-b", branch_name]) - - # Make changes to files (modify, add, remove) - # ... - - # Commit the changes - subprocess.run(["git", "add", "."]) - subprocess.run(["git", "commit", "-m", commit_message]) - - # Push the changes to the remote repository - subprocess.run(["git", "push", "origin", branch_name]) - -if __name__ == "__main__": - new_branch_name = "feature/awesome-feature" - commit_msg = "Added an awesome feature" - - create_and_commit_branch(new_branch_name, commit_msg)