Skip to content
KitploitKITPLOIT
FerramentasExploitsBlog
Log in
Enviar
FerramentasExploitsBlog
Enviar

Ferramentas de Hacking, PenTest e Cibersegurança para o seu Arsenal de Segurança!

Kitploit é um diretório de ferramentas de hacking, cibersegurança e pentesting. Descubra as últimas atualizações de projetos para encontrar vulnerabilidades, analisar sistemas, automatizar testes e fortalecer sua segurança.

FeedsContatoPrivacidade© 2026 Kitploit

Diretório de Ferramentas

Categorias

Ver todas as categorias
Loading categories
playwright-blocker — A plugin library for any Playwright-based library that allows blocking ads, domains, and resource types through injectors. | Kitploit
Ferramentas/GitHubGitHub/d4vinci/playwright-blocker
Web SecurityPrivacyUtilities & FrameworksCrawlerAnti-Bot
GitHubd4vinci/playwright-blocker

playwright-blocker

A plugin library for any Playwright-based library that allows blocking ads, domains, and resource types through injectors.

Ver Repositório
45 de dez. de 2026Ainda não revisado

Ferramentas relacionadas

  • zaproxy

    Scanner de segurança de aplicações web de código aberto para detecção automatizada de vulnerabilidades, testes de penetração manuais e testes de segurança de API com um motor de intercepção baseado em proxy.

  • nuclei

    Scanner de vulnerabilidades rápido baseado em YAML, com motor de detecção orientado por templates para testes de segurança automatizados em aplicações web, APIs, redes, DNS e infraestrutura em nuvem.

  • sqlmap

Mais Populares

Ver todos →

Descubra as ferramentas mais usadas pela nossa comunidade.

  • 1

    Callisto

    jetp1ane/callisto

    Ferramenta automatizada de análise de vulnerabilidades binárias que descompila executáveis via Ghidra, verifica código pseudo-C com Semgrep e valida descobertas usando GPT-3.5-Turbo para reduzir falsos positivos.

    2.1k
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    # Aplicativo de Execução em Um Toque GhostLock (CVE-2026-43499)

    759
  • 3

    IMSIcatcher

    28zaaky/imsicatcher

    Plataforma IMSI Catcher que implanta uma célula GSM falsa para intercetar SMS, injetar mensagens e rastrear dispositivos móveis

    625
  • 4

    DFRoot

    a2333c/dfroot

    Ferramenta de root para Android para Samsung Galaxy S25 Ultra (SM-S938B) que encadeia DirtyFrag CVE-2026-43284 e CVE-2026-43499 para obter root automaticamente no boot via KernelSU.

    451
  • 5

    ARTEX

    baarai/artex

    Plataforma autônoma de testes de penetração multiagente com LLM, com agentes planejador/executor, grafos de ativos e de exploração, registro de tráfego MITM e reteste de vulnerabilidades.

    415
  • 6

    opencti

    opencti-platform/opencti

    Plataforma Aberta de Inteligência de Ameaças Cibernéticas

    374

Explore todas as ferramentas

Navegue pela nossa coleção de ferramentas

Ver todas as ferramentas →
Compartilhar
Conteúdo não disponível no idioma solicitado. Mostrando versão em inglês.

playwright-blocker

A plugin library for any Playwright-based library that allows blocking ads, domains, and resource types through injectors. Supports sync and async pages.

This library was ported from the blocking code inside Scrapling.

The package uses only the Python standard library.

Install

Requires Python 3.10 or newer.

python -m pip install playwright-blocker

Sync

from playwright.sync_api import sync_playwright
from playwright_blocker import inject

with sync_playwright() as playwright:
    browser = playwright.chromium.launch()
    try:
        context = browser.new_context(service_workers="block")
        page = context.new_page()
        inject(page)
        page.goto("https://example.com")
        print(page.title())
    finally:
        browser.close()

Async

import asyncio

from playwright.async_api import async_playwright
from playwright_blocker import inject_async


async def main():
    async with async_playwright() as playwright:
        browser = await playwright.chromium.launch()
        try:
            context = await browser.new_context(service_workers="block")
            page = await context.new_page()
            await inject_async(page)
            await page.goto("https://example.com")
            print(await page.title())
        finally:
            await browser.close()


asyncio.run(main())

These examples use Playwright. The same inject and inject_async calls work with pages from any Playwright-based library.

Options

Both functions take a page as their first argument. Set the other arguments by name.

ArgumentDefaultEffect
block_adsTrueBlock the bundled ad and tracking domains.
blocked_domainsNoneAdd domain names to block. Accepts a set or another iterable of strings.
disable_resourcesFalseBlock the resource types listed below.

Logging is automatic. Blocked requests are logged at DEBUG level.

handler = inject(
    page,
    blocked_domains={"ads.example.com", "tracker.example.net"},
    disable_resources=True,
)

Use lowercase hostnames without a scheme, path or port. A domain also blocks its subdomains: example.com matches cdn.example.com, but does not match notexample.com. Input sets are copied and are not changed.

Bundled ad domains are allowed when navigating the main page. Ad scripts, images, and iframes are still blocked. Domains passed in blocked_domains also block main-page navigation.

disable_resources=True blocks these resource types: font, image, media, beacon, object, imageset, texttrack, websocket, csp_report, and stylesheet. Only resource types reported by the driver's HTTP route API can be blocked. This option does not intercept WebSocket connections.

To use only your own domains, pass block_ads=False. If all options are off, no route is added.

Development

From this directory:

python -m pip install -e ".[test]" mypy pyright ruff build twine tox
python -m playwright install chromium
python -m patchright install chromium
python -m pytest
mypy src/
pyright
ruff check .
ruff format --check .
python -m build
python -m twine check dist/*

The browser tests run in sequence and use a local HTTP server. They check sync and async page routing and reject browser contexts.

Domain list and license

The bundled domains were extracted from Peter Lowe's ad and tracking server list, using its plain hostname format. Source credit is also kept in the data module.

The code is under the BSD 3-Clause license.


Designed & crafted with ❤️ by Karim Shoair.

Baixar ferramenta

Ferramenta automática de injeção SQL e tomada de controle de banco de dados