โ— Shell
clean mode source โ†—

GitHub - Zierax/HackFunction: HackFunction is a opensource python library work as A toolkit for basic security checks and scans

๐Ÿš€ Hackfunc Project

๐ŸŒŸ Overview

The Hackfunc Project is a comprehensive suite of cybersecurity tools and libraries designed to empower security researchers, penetration testers, and bug bounty hunters. It automates essential tasks in:

  • ๐Ÿ•ต๏ธโ€โ™‚๏ธ Reconnaissance
  • ๐Ÿ” Vulnerability Scanning
  • ๐Ÿ” Cryptography
  • ๐Ÿ“Š Blockchain Analysis
  • ๐ŸŒ Network Security

Each module is crafted for flexibility, allowing seamless integration into larger security frameworks or independent use.

๐Ÿ”‘ Key Features

  • ๐Ÿ” Cryptography Module: Secure data encryption, key generation, and hashing algorithms (RSA, AES, HMAC).
  • ๐Ÿ“Š Blockchain Module: Smart contract vulnerability analysis and blockchain data interaction.
  • ๐ŸŒ Infoga Module: Domain and subdomain information gathering (WHOIS, SSL, etc.).
  • ๐Ÿ›ก๏ธ Vuln Module: Web application vulnerability scanning (SQL injection, XSS, CSRF).
  • ๐ŸŒ Network Scans Module: Comprehensive network reconnaissance tools (Nmap, Masscan, traceroute).

๐Ÿ—๏ธ Project Structure

The project is organized into modules, each targeting a specific cybersecurity domain:


hackfunc/
โ”‚
โ”œโ”€โ”€ cryptography/       # Cryptographic functions (e.g., AES, RSA, HMAC)
โ”‚
โ”œโ”€โ”€ blockchain/         # Blockchain analysis tools (e.g., smart contract analysis, etc.)
โ”‚
โ”œโ”€โ”€ infoga/             # Information gathering (e.g., WHOIS, subdomain enumeration, etc.)
โ”‚
โ”œโ”€โ”€ vuln/               # Vulnerability scanning (e.g., SQL injection, XSS, Command Injection, SSRF, etc.)
โ”‚
โ”œโ”€โ”€ network_scans/      # Network scanning tools (e.g., Nmap, Masscan, traceroute, etc.)
โ”‚
โ””โ”€โ”€ utils/              # Utility functions (e.g., logging, argument parsing, etc.)

๐Ÿ” Cryptography

  • Key generation, encryption, and decryption using algorithms like AES, RSA, and HMAC.

๐Ÿ“Š Blockchain

  • Tools for auditing smart contracts and analyzing token transfers.

๐ŸŒ Infoga

  • Domain-related information gathering, including WHOIS and SSL details.

๐Ÿ›ก๏ธ Vuln

  • Automated scans for web application vulnerabilities like SQL injection and XSS.

๐ŸŒ Network Scans

  • Network scanning tools for port scanning, service enumeration, and diagnostics.

๐Ÿ› ๏ธ Installation

To get started with Hackfunc, follow these steps:

  1. Clone the repository:

    git clone https://github.com/yourusername/hackfunc.git
    cd hackfunc
  2. Install dependencies:

    pip install -r requirements.txt
  3. Set up your environment:

    • Ensure external tools (e.g., Nmap, Masscan) are installed.
    • Set up necessary API keys or credentials for services like Shodan, Infoga.

๐Ÿ“š Usage

Each module can be executed independently or integrated into other scripts. Here are some examples:

๐Ÿ” Cryptography

  • Encrypting a file:
    from hackfunc.cryptography import AdvancedCryptography
    
    crypto = AdvancedCryptography()
    crypto.encrypt_file('path/to/file.txt', key='your_secret_key')

๐Ÿ“Š Blockchain

  • Analyze a smart contract:
    from hackfunc.blockchain import BlockchainHacker
    
    hacker = BlockchainHacker()
    vulnerabilities = await hacker.analyze_smart_contract('0xContractAddress')
    print(vulnerabilities)

๐ŸŒ Infoga

  • Perform a WHOIS lookup:
    import whois
    
    domain_info = whois.whois('example.com')
    print(domain_info)

๐Ÿ›ก๏ธ Vuln

  • Scan for vulnerabilities:
    from hackfunc.vuln import VulnerabilityScanner
    
    scanner = VulnerabilityScanner('http://example.com')
    scanner.sql_injection_check()

๐ŸŒ Network Scans

  • Perform a Nmap scan:
    from hackfunc.network_scans import nmap_scan
    
    results = nmap_scan('192.168.1.1', ['TCP_SYN_SCAN', 'SERVICE_VERSION_INTENSITY'])
    print(results)

๐Ÿ† Best Practices

  • ๐Ÿ”‘ API Key Management: Store keys securely using environment variables or configuration files.
  • โš ๏ธ Error Handling: Implement error handling for network issues or API errors.
  • ๐Ÿ”„ Update Dependencies: Regularly update libraries and tools.
  • โš–๏ธ Legal Compliance: Obtain permission before scanning or gathering information from external systems.

๐Ÿ“œ License

  • This project is licensed under the MIT License - see the LICENSE file for details.