MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / execute

Method execute

actions/ble_pentest.py:944–961  ·  view source on GitHub ↗

Execute Bluetooth pentest scan

(self)

Source from the content-addressed store, hash-verified

942 self.pentest = BluetoothPentest(self.logger)
943
944 def execute(self):
945 """Execute Bluetooth pentest scan"""
946 try:
947 self.logger.info("🔴 Starting Bluetooth Penetration Test...")
948
949 # 1. Track beacons
950 beacon_results = self.pentest.start_beacon_tracking(duration=30)
951
952 # 2. Generate report
953 report_file = f"data/output/bluetooth_pentest_{int(time.time())}.json"
954 self.pentest.generate_report(output_file=report_file)
955
956 self.logger.info("✓ Bluetooth pentest complete")
957 return 'success'
958
959 except Exception as e:
960 self.logger.error(f"Bluetooth pentest failed: {e}")
961 return 'failed'
962
963
964if __name__ == "__main__":

Callers

nothing calls this directly

Calls 4

infoMethod · 0.80
start_beacon_trackingMethod · 0.80
generate_reportMethod · 0.80
errorMethod · 0.80

Tested by

no test coverage detected