RevoltSecurities / SubProber

Subprober is a powerful and efficient subdomain scanning tool written in Python. With the ability to handle large lists of subdomains. The tool offers concurrent scanning, allowing users to define their preferred concurrency level for faster results. Whether you are on Linux, Windows, or macos
GNU General Public License v3.0
202 stars 25 forks source link

Windows Support #6

Closed bybrtybwterwybertybwetr closed 3 months ago

bybrtybwterwybertybwetr commented 4 months ago

Currently subprober uses uvloop, which does not support windows users. A similar library is winloop, which is specifically designed to work with windows. A simple platform check to switch between the 2 couple be very useful to allow windows compatibility.

Here's A small Example of using winloop when uvloop is not available to us

import sys
import aiohttp
import asyncio

async def main():
    async with aiohttp.ClientSession("https://httpbin.org") as client:
        async with client.get("/ip") as resp:
            print(await resp.json())

if __name__ == "__main__":
    #if user is on a windows platform
    if sys.platform in ('win32', 'cygwin', 'cli'): 
        from winloop import run
    else: 
        # if we're on apple use uvloop instead
        from uvloop import run
    run(main())
RevoltSecurities commented 4 months ago

Hi @bybrtybwterwybertybwetr , We already aware of this issue and we patched in version v2.0.0 and this is latest version of subprober, so we request you to update subprober to its latest version .

Kind regards, @RevoltSecurities