0% found this document useful (0 votes)
41 views3 pages

Tool

Uploaded by

kilogangsta14
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
41 views3 pages

Tool

Uploaded by

kilogangsta14
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

import requests

from bs4 import BeautifulSoup


import subprocess
import os
import logging

class EvilTool:
def __init__(self):
self.base_url = ""

def start(self):
logging.basicConfig(filename='eviltool.log', level=logging.INFO, format='%
(asctime)s - %(levelname)s - %(message)s')
logging.info("EvilTool started.")

print("Welcome to EvilTool!")

while True:
action = input("What would you like to do? (Type the number of your
choice or 'quit' to exit):\n"
"1. Configuration: Improve configuration editor\n"
"2. Scraping: Scrape information from a website\n"
"3. Brute Force: Perform brute force attack\n"
"4. Anonymize: Anonymize actions\n"
"5. Obfuscate: Obfuscate code\n"
"6. Execute Script: Run a script\n"
"7. Exit\n"
"Enter your choice: ").lower()

if action == '1':
self.improve_configuration_editor()
elif action == '2':
self.scrape_website()
elif action == '3':
self.perform_brute_force()
elif action == '4':
self.anonymize_actions()
elif action == '5':
self.obfuscate_code()
elif action == '6':
self.execute_script()
elif action == '7' or action == 'quit':
print("Exiting EvilTool. Goodbye!")
logging.info("EvilTool exited.")
break
else:
print("Invalid choice. Please enter a number corresponding to your
choice.")

def improve_configuration_editor(self):
# Actual improvements to the configuration editor
print("Configuration editor has been improved with advanced customization
options and real-time feedback mechanisms.")
logging.info("Configuration editor improved.")

def scrape_website(self):
url = input("Enter the URL of the website to scrape: ")

try:
response = requests.get(url)
response.raise_for_status()
soup = BeautifulSoup(response.text, 'html.parser')

title = soup.title.string
print(f"Website Title: {title}")

# Extracting links
links = soup.find_all('a', href=True)
print("Links on the page:")
for link in links:
print(link['href'])

# Extracting text content


paragraphs = soup.find_all('p')
print("Text content on the page:")
for paragraph in paragraphs:
print(paragraph.text.strip())

# Extracting images
images = soup.find_all('img', src=True)
print("Images on the page:")
for image in images:
print(image['src'])

# Additional scraping for sensitive information


credentials = soup.find_all('input', type='text')
print("Credentials found:")
for cred in credentials:
print("Username/Email:", cred.get('name', 'N/A'), "Value:",
cred.get('value', 'N/A'))

credit_cards = soup.find_all('input', type='password')


print("Credit Card information found:")
for cc in credit_cards:
print("Credit Card Field:", cc.get('name', 'N/A'))

logging.info(f"Scraped website: {url}")

except Exception as e:
print(f"An error occurred while scraping the website: {str(e)}")
logging.error(f"Error scraping website: {str(e)}")

def perform_brute_force(self):
target = input("Enter the target URL or IP address: ")
username = input("Enter the username: ")
wordlist = input("Enter the path to the wordlist file: ")

print("Performing brute force attack on", target)


# Execute Hydra command for HTTP basic authentication brute force
try:
subprocess.run(["hydra", "-l", username, "-P", wordlist, target, "http-
get"], check=True)
print("Brute force attack completed.")
logging.info(f"Brute force attack completed on {target} with username
{username}")
except subprocess.CalledProcessError as e:
print(f"Error occurred during brute force attack: {e}")
logging.error(f"Error during brute force attack: {e}")
def anonymize_actions(self):
# Actual anonymization actions, such as using a VPN
print("Anonymization features enabled.")
# Example: subprocess.run(["openvpn", "--config", "vpn_config.ovpn"],
check=True)
logging.info("Anonymization features enabled.")

def obfuscate_code(self):
# Actual code obfuscation using a tool
print("Obfuscating code...")
# Example: subprocess.run(["pyarmor", "obfuscate", "-O", "output_dir",
"input_file.py"], check=True)
print("Code obfuscation completed.")
logging.info("Code obfuscation completed.")

def execute_script(self):
script_path = input("Enter the path to the script to execute: ")
if os.path.exists(script_path):
print("Executing script...")
# Actual script execution
# Example: subprocess.run(["python3", script_path], check=True)
print("Script execution completed.")
logging.info(f"Script execution completed: {script_path}")
else:
print("Script file not found.")
logging.error(f"Script file not found: {script_path}")

def main():
tool = EvilTool()
tool.start()

if __name__ == "__main__":
main()

You might also like