zdgtl 11 months ago
zdgtl

Check File

This script will help you efficiently check for the existence of file across multiple URLs while skipping any that are unreachable.

import requests

# Read the list of URLs from a file
with open('myweb.txt', 'r') as file:
    urls = file.readlines()

# Check each URL for the existence of uploadwp.php with a timeout
for url in urls:
    url = url.strip()  # Remove whitespace
    if not url:
        continue  # Skip empty lines

    # Construct the full URL to check
    check_url = f"{url}/uploadwp.php"

    try:
        response = requests.head(check_url, timeout=5)  # Set timeout to 5 seconds
        if response.status_code == 200:
            print(f"{check_url} - File exists.")
        else:
            print(f"{check_url} - File does not exist (status code: {response.status_code}).")
    except requests.exceptions.Timeout:
        print(f"{check_url} - Request timed out, skipping.")
    except requests.exceptions.RequestException as e:
        print(f"{check_url} - Unable to access URL: {e}")
0
516
Bulk Remove line containing

Bulk Remove line containing

1743468932.jpg
zdgtl
11 months ago
How to move the post title below content wordpress

How to move the post title below content wordpress

1743468932.jpg
zdgtl
11 months ago
Wordpress Auto Post via XMLRPC

Wordpress Auto Post via XMLRPC

1743468932.jpg
zdgtl
11 months ago
Unix Timestamp Converter

Unix Timestamp Converter

1743468932.jpg
zdgtl
11 months ago
Woodmart Content modify

Woodmart Content modify

1743468932.jpg
zdgtl
11 months ago