Skip to main content

A simple package for scanning ports on a network.

Project description

Projeto TecHack - Roteiro 1

Descrição

Este projeto é parte do curso TecHack da Insper. O objetivo deste roteiro é introduzir conceitos básicos de programação e desenvolvimento de software.

Funcionalidades

  • Suporte para IPv4
  • Suporte para IPv6
  • Suporte para Porta especifica ou Range
  • Escaneamento de Rede usando CIDR
  • Escaneamento de portas TCP
  • Escaneamento de portas UDP
  • Detecção de sistema operacional
  • Detecção de serviços de rede atravez de Well-Know Ports
  • Suporte para procura de serviço na rede
  • Detecção do STATUS da porta
  • Suporte a argumentos de linha de comando

Estrutura do Projeto

  • scanner/
    • __init__.py: Inicializa o pacote e importa as funções principais.
    • detector.py: Contém funções para detectar serviços de rede e manipular argumentos de requisição.
    • scan_manager.py: Fornece funções para escaneamento TCP e UDP, bem como detecção de sistema operacional.
    • consts.py: Define constantes usadas em todo o pacote.
    • args_parser.py: Analisa e valida os argumentos fornecidos pelo usuário.

Requisitos

  • Python 3.9+
  • scapy

Instalação

  1. Clone o repositório:

    git clone https://github.com/seu-usuario/seu-repositorio.git
    
  2. Navegue até o diretório do projeto:

    cd seu-repositorio
    
  3. Instale as dependências:

    pip install -r requirements.txt
    

    Uso

    Para executar o projeto, utilize o seguinte comando:

    python -m scanner <args>
    

Exemplos de Uso

python -m scanner 192.168.0.1 python -m scanner 192.168.1.1 -p 22,80,443 python -m scanner 192.168.1.1 -p 53,123 --udp python -m scanner 192.168.1.0/24 --service ssh

Contribuição

  1. Faça um fork do projeto
  2. Crie uma branch para sua feature (git checkout -b feature/nova-feature)
  3. Commit suas mudanças (git commit -m 'Adiciona nova feature')
  4. Faça o push para a branch (git push origin feature/nova-feature)
  5. Abra um Pull Request

Licença

Este projeto está licenciado sob a licença MIT. Veja o arquivo LICENSE para mais detalhes.

Contato

Para mais informações, entre em contato com admin@peng1104.net.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

techackportscanner-1.0.2.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

techackportscanner-1.0.2-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file techackportscanner-1.0.2.tar.gz.

File metadata

  • Download URL: techackportscanner-1.0.2.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for techackportscanner-1.0.2.tar.gz
Algorithm Hash digest
SHA256 8c62a61f06b93e31bb18a53b132edec90618fc48937c562e8e71a97cc742bcce
MD5 64414a1aa27f685700f96dfa8c9d9ba3
BLAKE2b-256 8fcc78bd66aab41541be2b60e2f78984d0e540dc65ff5ca52d096d8f7cc0bdf5

See more details on using hashes here.

Provenance

The following attestation bundles were made for techackportscanner-1.0.2.tar.gz:

Publisher: publish-to-pypi.yml on Peng1104/PortScanner

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file techackportscanner-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for techackportscanner-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5bc5fe97f2c1df95ba39ccbc9bdedcf93ed7761574d139876246536cb231cdcb
MD5 1e4cb1d181f4de3db27d0b041daf5084
BLAKE2b-256 d7b3f5aeffa069735f60ab407cfdfa14c95ccbf72ad418d05b8e5c631c877bb7

See more details on using hashes here.

Provenance

The following attestation bundles were made for techackportscanner-1.0.2-py3-none-any.whl:

Publisher: publish-to-pypi.yml on Peng1104/PortScanner

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page