DEV Community

Bhilal. Chitou
Bhilal. Chitou

Posted on

Introduction to Bhilal: A Hybrid Language for Developers and Security Researchers

Bhilal is a modern, object-oriented programming language designed to streamline the creation of security tools. It combines a user-friendly syntax with a powerful hybrid engine to bridge
the gap between high-level scripting and low-level network auditing.

The Architecture: Node.js meets Go

The core of Bhilal is built on a hybrid architecture. While the lexer, parser, and high-level logic are handled by Node.js for maximum flexibility, the security-critical modules are
powered by Go. This allows the language to perform multi-threaded tasks, such as port scanning and DNS brute forcing, with native performance.

Key Technical Features

  1. Localized Syntax: Bhilal uses French keywords (soit, montre, si, tantque, classe) making it a unique entry in the world of specialized languages.
  2. Built-in Security Arsenal: Unlike general-purpose languages, Bhilal includes native functions for penetration testing:
    • scan_ports(host, ports)
    • dirbuster(url)
    • dns_resolve(hostname)
    • subnet_scan(cidr)
  3. Full OOP Implementation: It supports classes, inheritance, and clean object instantiation.

Quick Code Example

1 # Simple security audit script
2 montre("Starting network analysis...")
3 soit target = "127.0.0.1"
4 soit results = scan_ports(target, [22, 80, 443, 3306])
5
6 pour chaque res dans results {
7     si res.open {
8         montre("Found open port: " + res.port)
9     }
Enter fullscreen mode Exit fullscreen mode

Resources and Installation

Bhilal can be installed globally via npm:
npm install -g bhilal

Bhilal is an open-source project. We are looking for contributors to help expand the standard library and the Go-based security modules.

Top comments (0)