Metadata-Version: 2.2
Name: TecHackPortScanner
Version: 1.0.2
Summary: A simple package for scanning ports on a network.
Author-email: Lucas Hix <admin@peng1104.net>
License: Copyright © 2025 Lucas Hix <admin@peng1104.net>
        
        Permission is hereby granted, free of charge, to any person obtaining a
        copy of this software and associated documentation files (the "Software"),
        to deal in the Software without restriction, including without limitation
        the rights to use, copy, modify, merge, publish, distribute, sublicense,
        and/or sell copies of the Software, and to permit persons to whom the
        Software is furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice (including the next
        paragraph) shall be included in all copies or substantial portions of the
        Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
        THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
        FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
        DEALINGS IN THE SOFTWARE.
Project-URL: changelog, https://github.com/Peng1104/PortScanner/releases/latest
Project-URL: issues, https://github.com/Peng1104/PortScanner/issues
Project-URL: source, https://github.com/Peng1104/PortScanner
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: scapy

# 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:
    ```sh
    git clone https://github.com/seu-usuario/seu-repositorio.git
    ```
2. Navegue até o diretório do projeto:
    ```sh
    cd seu-repositorio
    ```
3. Instale as dependências:
    ```sh
    pip install -r requirements.txt
    ```

    ## Uso
    Para executar o projeto, utilize o seguinte comando:
    ```sh
    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](LICENSE) para mais detalhes.

## Contato
Para mais informações, entre em contato com [admin@peng1104.net](mailto:admin@peng1104.net).
