Intercept Phone Calls Using FreePBX and Evil Operator
Introduction
This guide explains how to set up FreePBX, configure a trunk, and use the Evil Operator script to intercept phone calls by spoofing phone numbers and routing them to a conference.
Step 1: Install FreePBX
- Download the FreePBX ISO from the official website: FreePBX Downloads.
- Create a bootable USB drive or set up a virtual machine to install FreePBX.
- Boot the system using the ISO and follow the installation wizard.
- Once installed, access the FreePBX web GUI by visiting
http://
in a browser. - Complete the initial setup, including setting admin credentials and applying updates.
Step 2: Set Up a Trunk
- Sign up with a VoIP provider to get SIP trunk credentials (e.g., username, password, and server details).
- In the FreePBX interface, go to Connectivity > Trunks.
- Click Add Trunk and choose the trunk type (e.g., SIP Trunk).
- Enter the required details for the trunk in the Outgoing and Incoming settings.
- Set up outbound and inbound routes to control call flow.
Step 3: Install Evil Operator Script
- SSH into your FreePBX server.
- Run the following command to clone the Evil Operator repository:
git clone https://github.com/LynxGeekNYC/evil-operator.git
- Navigate to the script directory:
cd evil-operator
- Install any dependencies required by the script.
- Configure the script by editing variables, such as phone numbers, spoofed caller ID, and conference room details.
- Integrate the script with Asterisk by adding the following code to
/etc/asterisk/extensions_custom.conf
:[evil-operator] exten => start,1,AGI(/path/to/evil-operator.py) exten => start,n,Hangup()
- Reload Asterisk to apply changes:
asterisk -rx "dialplan reload"
Step 4: How the Script Works
The Evil Operator script works as follows:
- The script uses the Asterisk Manager Interface (AMI) to place outbound calls.
- The caller ID is spoofed to make the recipient believe the call originates from a specific number.
- The script merges the connected calls into a conference room, allowing monitoring or recording.
- For example, the script can connect a scammer to their victim using spoofed numbers and route both to a conference for monitoring.
Ethical and Legal Considerations
Intercepting calls and spoofing caller IDs must comply with all applicable laws and ethical guidelines. Use this setup responsibly and ensure you have proper authorization for all activities.
Conclusion
By combining FreePBX and the Evil Operator script, you can intercept and monitor calls effectively. Ensure compliance with ethical and legal requirements when using this system.