Hacking Tools

Adding A Hardware Profile : A Step-by-Step Tutorial For System Configuration

If you need to add new hardware you have to follow the following process:

  1. Create a hardware profile {name}.yaml file and name it as you wish. For example, default.yaml which should be stored in the hardware directory
  2. Then add variables to the profile description using YAML. Each variable has its role during processing. They are described in “Hardware parameters documentation”
name: "default"
description: "Default Linux/ubuntu profile"
setup_verification: ""
needs_setup_verification: false
working_directory: null
bt_version_min: 1.0
bt_version_max: 5.3
  1. Only If your hardware profile needs setup verification and you set needs_setup_verification: true, then you need to add code that would verify the hardware setup.
    1. As the toolkit is written in Python 3 it should be Python 3 code, but if have already a code snippet that verifies your hardware, then you could use it and just add code that would call your verification tool from the toolkit and then distinguish between “available” and “not available” hardware.
    2. The only file that should be modified is setupverification/setupverfication.py
    3. First you need to add a static method that would return a boolean value to the SetupVerifier class, change {YOURHARDWARENAME} to your hardware profile name, and add your code to {YOUR CODE}
@staticmethod
def check_setup_{YOURHARDWARENAME}() -> bool:
 try:
  {YOUR CODE}
  return True
 except Exception as e:
  logging.info("SetupVerfier -> Error during checking setup")
 return False
  1. Then you need to add your newly created static method to the hardware_verifier dictionary variable, as in the example below.
    • You need to change {YOURHARDWARENAME} to the name of the hardware profile you used. Also don’t forget to add a comma where needed.
hardware_verfier = {
"esp32": SetupVerifier.check_setup_esp32,
"nexus5": SetupVerifier.check_setup_nexus5,
"{YOURHARDWARENAME}": SetupVerfiier.check_setup_{YOURHARDWARENAME}
}
Tamil S

Tamil has a great interest in the fields of Cyber Security, OSINT, and CTF projects. Currently, he is deeply involved in researching and publishing various security tools with Kali Linux Tutorials, which is quite fascinating.

Recent Posts

ShadowDumper – Advanced Techniques For LSASS Memory Extraction

Shadow Dumper is a powerful tool used to dump LSASS (Local Security Authority Subsystem Service)…

13 hours ago

Shadow-rs : Harnessing Rust’s Power For Kernel-Level Security Research

shadow-rs is a Windows kernel rootkit written in Rust, demonstrating advanced techniques for kernel manipulation…

2 weeks ago

ExecutePeFromPngViaLNK – Advanced Execution Of Embedded PE Files via PNG And LNK

Extract and execute a PE embedded within a PNG file using an LNK file. The…

3 weeks ago

Red Team Certification – A Comprehensive Guide To Advancing In Cybersecurity Operations

Embark on the journey of becoming a certified Red Team professional with our definitive guide.…

3 weeks ago

CVE-2024-5836 / CVE-2024-6778 : Chromium Sandbox Escape via Extension Exploits

This repository contains proof of concept exploits for CVE-2024-5836 and CVE-2024-6778, which are vulnerabilities within…

4 weeks ago

Rust BOFs – Unlocking New Potentials In Cobalt Strike

This took me like 4 days (+2 days for an update), but I got it…

4 weeks ago