This program searches for Ethereum contracts on the Binance Smart Chain blockchain that may be vulnerable to reentrancy attacks. The script scans the latest blocks of the chain to find newly created contracts and analyzes their source code for patterns associated with possible reentrancy vulnerabilities.
Python 3.7 or higher
Requests library
Make sure you have Python 3.7 or higher installed on your system. Install the requests library by running the following command:
pip install requests
Get a free BscScan API key and replace "YOUR_APY_KEY_HERE" in the code with your own API key. If you want to change the number of blocks that are scanned, adjust the value of BLOCKS_TO_SCAN in the script.
Run the script using the following command:
python BSCVulnScanner.py
The script will continuously scan the latest blocks for newly created contracts and check if they are vulnerable to reentrancy attacks. The results will be printed in the console.
Este programa busca contratos de Ethereum en la blockchain de Binance Smart Chain que puedan ser vulnerables a ataques de reentrancy. El script escanea los últimos bloques de la cadena para encontrar contratos recién creados y analiza su código fuente en busca de patrones asociados con posibles vulnerabilidades de reentrancy.
Python 3.7 o superior
Biblioteca requests
Asegúrese de tener Python 3.7 o superior instalado en su sistema. Instale la biblioteca requests ejecutando el siguiente comando:
pip install requests
Obtenga una API key gratuita de BscScan y reemplace "YOUR_APY_KEY_HERE" en el código con su propia API key. Si desea cambiar la cantidad de bloques que se escanean, ajuste el valor de BLOCKS_TO_SCAN en el script.
Ejecute el script utilizando el siguiente comando:
python BSCVulnScanner.py
El script escaneará continuamente los últimos bloques en busca de contratos recién creados y verificará si son vulnerables a ataques de reentrancy. Los resultados se imprimirán en la consola.