Exploit database

GH-adcac68a6dcb784533fdbac030214b5f

schooldropout1337/cve-2024-3400

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2024-3400

24 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files7
schooldropout1337/cve-2024-3400Revision 08efeba65516

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

fofax3r.py

Python · 1,764 bytes
import requests
from bs4 import BeautifulSoup
import time

def scrape_page(url, cookie):
    # Set up the cookies
    cookies = {
        'fofa_token': cookie
    }
    
    # Send a GET request to the URL with the cookies
    response = requests.get(url, cookies=cookies)

    # Check if the request was successful
    if response.status_code == 200:
        # Parse the HTML content of the page
        soup = BeautifulSoup(response.text, 'html.parser')

        # Find all elements with the key "data-clipboard-text"
        clipboard_elements = soup.find_all(attrs={"data-clipboard-text": True})

        # Extract the values of the elements
        values = sorted([element['data-clipboard-text'] for element in clipboard_elements])

        return values
    else:
        print("Failed to retrieve page:", response.status_code)
        return None

# Base URL
base_url = "https://en.fofa.info/result?qbase64=YmFubmVyPSJHbG9iYWwgUHJvdGVjdCI%3D&page="

# Cookie - Create an account on en.fofa.info, login and view cookies (use devtools or cookie editor plugin). copy fofa_token andpaste it here.

#cookie = "fofa_token_jwt_token"
cookie = "eyJhbGciOiJIUzUxMiIsImtpZCI6Ik5XWTVZakF4TVRkalltSTJNRFZsWXpRM05EWXdaakF3TURVMlkyWTNZemd3TUdRd1pUTmpZUT09IiwidHlwIjoiSldUIn0.egg.yolk"

# Iterate over pages from 1 to 3
for page_number in range(1, 4):
    # Construct URL for the current page
    url = base_url + str(page_number) + "&page_size=20"

    # Scrape the page
    print(f"Global Protect {page_number}:")
    data_values = scrape_page(url, cookie)
    if data_values:
        print("\n".join(data_values))
        print()  # Add an empty line between pages

    # Add a delay before scraping the next page
    time.sleep(3)  # Adjust the delay time as needed