An open API service indexing awesome lists of open source software.

https://github.com/morningstarxcdcode/port-scanner

An advanced iOS app for network security and port scanning featuring real-time scanning, AI-powered predictive analysis, wireless attack simulation, AR visualization, AI security assistant, and comprehensive analytics to help users explore, analyze, and secure networks effectively.
https://github.com/morningstarxcdcode/port-scanner

Last synced: 3 months ago
JSON representation

An advanced iOS app for network security and port scanning featuring real-time scanning, AI-powered predictive analysis, wireless attack simulation, AR visualization, AI security assistant, and comprehensive analytics to help users explore, analyze, and secure networks effectively.

Awesome Lists containing this project

README

          

# ๐Ÿ›ก๏ธ Advanced Port Scanner & Wireless Attack Tool


Python 3.8+
Platform
Status
License

A comprehensive, modular port scanner and wireless attack simulation tool designed for ethical hacking, cybersecurity education, and network security assessments.

## โœจ Features

- ๐ŸŽฏ **Advanced Port Scanning** - Multi-threaded scanning with banner grabbing and vulnerability detection
- ๐Ÿ–ฅ๏ธ **GUI & CLI Interfaces** - Both graphical and command-line interfaces available
- ๐Ÿ“ก **Wireless Attack Simulation** - Educational wireless security testing modules
- ๐ŸŒ **Shodan Integration** - Real-time threat intelligence via Shodan API
- ๐Ÿ“Š **Report Generation** - Automated JSON reports with scan results
- ๐Ÿ”„ **Auto Scan Mode** - Comprehensive automated scanning workflows
- ๐Ÿงต **Multi-threading** - Fast concurrent scanning capabilities
- ๐Ÿ›ก๏ธ **Error Handling** - Robust error handling and graceful failures

## ๐Ÿš€ Quick Start

### Installation

1. **Clone the repository:**
```bash
git clone https://github.com/morningstarxcdcode/port-scanner.git
cd port-scanner
```

2. **Install dependencies:**
```bash
pip install -r requirements.txt
```

3. **For GUI support (optional):**
```bash
# Ubuntu/Debian
sudo apt-get install python3-tk

# CentOS/RHEL
sudo yum install tkinter

# macOS (with Homebrew)
brew install python-tk
```

### Usage

#### Command Line Interface

```bash
# Basic port scan
python3 main.py --target 192.168.1.1 --ports 22,80,443

# Range scanning
python3 main.py --target 192.168.1.1 --ports 1-1000

# Wireless attack simulation
python3 main.py --target 192.168.1.1 --wireless-attack

# GUI mode
python3 main.py --mode gui
```

#### Demo Mode

Run the interactive demo to see all features:

```bash
# Run all demos
python3 demo.py

# Interactive mode
python3 demo.py --interactive
```

## ๐Ÿ“ Project Structure

```
port-scanner/
โ”œโ”€โ”€ main.py # Main entry point
โ”œโ”€โ”€ demo.py # Feature demonstration script
โ”œโ”€โ”€ gui.py # GUI interface
โ”œโ”€โ”€ scanner/ # Core scanning modules
โ”‚ โ”œโ”€โ”€ __init__.py
โ”‚ โ””โ”€โ”€ port_scanner.py # Advanced port scanning logic
โ”œโ”€โ”€ wireless/ # Wireless attack simulations
โ”‚ โ”œโ”€โ”€ __init__.py
โ”‚ โ””โ”€โ”€ wireless_attacks.py
โ”œโ”€โ”€ integrations/ # Third-party integrations
โ”‚ โ”œโ”€โ”€ __init__.py
โ”‚ โ””โ”€โ”€ shodan_integration.py # Shodan API integration
โ”œโ”€โ”€ reports/ # Report generation
โ”‚ โ”œโ”€โ”€ __init__.py
โ”‚ โ””โ”€โ”€ report_generator.py
โ”œโ”€โ”€ utils/ # Utility modules
โ”‚ โ”œโ”€โ”€ __init__.py
โ”‚ โ””โ”€โ”€ logger.py # Logging configuration
โ”œโ”€โ”€ tests/ # Unit tests
โ”‚ โ””โ”€โ”€ test_port_scanner.py
โ”œโ”€โ”€ .github/workflows/ # CI/CD workflows
โ”‚ โ”œโ”€โ”€ ci.yml
โ”‚ โ””โ”€โ”€ release.yml
โ”œโ”€โ”€ requirements.txt # Python dependencies
โ”œโ”€โ”€ setup.py # Package setup
โ””โ”€โ”€ README.md
```

## ๐Ÿ”ง Configuration

### Environment Variables

- `SHODAN_API_KEY` - Your Shodan API key for real threat intelligence

### API Keys

To use Shodan integration:

1. Sign up at [shodan.io](https://shodan.io)
2. Get your API key
3. Set environment variable:
```bash
export SHODAN_API_KEY="your_api_key_here"
```

## ๐Ÿ“Š Examples

### Port Scanning

```python
from scanner.port_scanner import run_scan

# Scan specific ports
run_scan("192.168.1.1", "22,80,443,8080")

# Scan port range
run_scan("192.168.1.1", "1-1000")
```

### Report Generation

```python
from reports.report_generator import generate_report

results = [
{"port": 22, "status": "open", "service": "SSH"},
{"port": 80, "status": "open", "service": "HTTP"}
]
generate_report(results, "scan_results.json")
```

### Auto Scan

```python
from auto_scan import run_auto_scan

# Comprehensive scan with all modules
run_auto_scan("192.168.1.1", "1-1000", wireless=True)
```

## ๐Ÿงช Testing

Run the test suite:

```bash
# All tests
python -m unittest discover tests/ -v

# Specific test
python -m unittest tests.test_port_scanner -v
```

## ๐Ÿ› ๏ธ Development

### Adding New Features

1. Create feature branch
2. Add tests in `tests/`
3. Implement feature
4. Update documentation
5. Submit pull request

### Code Style

- Follow PEP 8
- Use type hints
- Add docstrings
- Include error handling

## ๐Ÿ”’ Security & Ethics

This tool is designed for:
- โœ… Educational purposes
- โœ… Authorized penetration testing
- โœ… Security research on owned systems
- โœ… Network administration

**DO NOT** use for:
- โŒ Unauthorized scanning
- โŒ Malicious activities
- โŒ Attacking systems you don't own

## ๐Ÿ“œ License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

## ๐Ÿค Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

1. Fork the project
2. Create your feature branch (`git checkout -b feature/AmazingFeature`)
3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request

## ๐Ÿ“ž Support

If you encounter any issues or have questions:

1. Check the [Issues](https://github.com/morningstarxcdcode/port-scanner/issues) page
2. Create a new issue if needed
3. Provide detailed information about the problem

## ๐Ÿ™ Acknowledgments

- Built with Python and open-source libraries
- Shodan API for threat intelligence
- The cybersecurity community for inspiration and guidance

---


Made with โค๏ธ by morningstarxcdcode