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
-
Clone o repositório:
git clone https://github.com/seu-usuario/seu-repositorio.git
-
Navegue até o diretório do projeto:
cd seu-repositorio
-
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
- Faça um fork do projeto
- Crie uma branch para sua feature (
git checkout -b feature/nova-feature) - Commit suas mudanças (
git commit -m 'Adiciona nova feature') - Faça o push para a branch (
git push origin feature/nova-feature) - 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c62a61f06b93e31bb18a53b132edec90618fc48937c562e8e71a97cc742bcce
|
|
| MD5 |
64414a1aa27f685700f96dfa8c9d9ba3
|
|
| BLAKE2b-256 |
8fcc78bd66aab41541be2b60e2f78984d0e540dc65ff5ca52d096d8f7cc0bdf5
|
Provenance
The following attestation bundles were made for techackportscanner-1.0.2.tar.gz:
Publisher:
publish-to-pypi.yml on Peng1104/PortScanner
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
techackportscanner-1.0.2.tar.gz -
Subject digest:
8c62a61f06b93e31bb18a53b132edec90618fc48937c562e8e71a97cc742bcce - Sigstore transparency entry: 175305867
- Sigstore integration time:
-
Permalink:
Peng1104/PortScanner@43587d98f3211106c82c493e22eed2b6dd14c8e8 -
Branch / Tag:
refs/tags/1.0.2 - Owner: https://github.com/Peng1104
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@43587d98f3211106c82c493e22eed2b6dd14c8e8 -
Trigger Event:
release
-
Statement type:
File details
Details for the file techackportscanner-1.0.2-py3-none-any.whl.
File metadata
- Download URL: techackportscanner-1.0.2-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5bc5fe97f2c1df95ba39ccbc9bdedcf93ed7761574d139876246536cb231cdcb
|
|
| MD5 |
1e4cb1d181f4de3db27d0b041daf5084
|
|
| BLAKE2b-256 |
d7b3f5aeffa069735f60ab407cfdfa14c95ccbf72ad418d05b8e5c631c877bb7
|
Provenance
The following attestation bundles were made for techackportscanner-1.0.2-py3-none-any.whl:
Publisher:
publish-to-pypi.yml on Peng1104/PortScanner
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
techackportscanner-1.0.2-py3-none-any.whl -
Subject digest:
5bc5fe97f2c1df95ba39ccbc9bdedcf93ed7761574d139876246536cb231cdcb - Sigstore transparency entry: 175305870
- Sigstore integration time:
-
Permalink:
Peng1104/PortScanner@43587d98f3211106c82c493e22eed2b6dd14c8e8 -
Branch / Tag:
refs/tags/1.0.2 - Owner: https://github.com/Peng1104
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@43587d98f3211106c82c493e22eed2b6dd14c8e8 -
Trigger Event:
release
-
Statement type: