04-12-23, 12:47 PM
What is the GSM network.
The GSM network, is a network infrastructure setup for mobile phones. The network includes dedicated devices and protocols (languages) that push GSM data around the network that can include calls, sms and even network management messages.
When you turn on your phone, your phone will listen for the nearest local mobile tower and send the IMSI and IMEI which are stored on your device and SIM card to the network similar to how you login to network. Once registered to the network, you can then send SMS messages or CALL other devices on the network.
1. What is an SMS
An SMS according to wikipedia SMS (short message service) is a text messaging service component of most telephone, Internet, and mobile device systems. It uses standardized communication protocols to enable mobile devices to exchange short text messages. An intermediary service can facilitate a text-to-voice conversion to be sent to landlines.
So basically an SMS is a method of sending short messages to devices over the GSM network and there are two main different types of SMS messages that can be sent via smartphones and dongles. These are normal SMS and binary SMS via and we can do this through crafting a PDU and sending it directly through the GSM modem.
2. What is a GSM modem.
On each android phone, is a GSM modem which controls all aspects of the GSM connection. runs independent of the host os on the device such as Android or Iphone and can be accessed via usb, bluetooth or even from inside the OS on a rooted device.
3. How do we access the GSM modem
Accessing the GSM isnt difficult, it sits on /dev/smd11 and you need to use screen to send commands to it. However, you will need to install termux and type 'pkg install screen' to install screen. Screen is a multiplexing terminal which can be used as a serial connection to the modem. So, once you install termux and screen type 'su' or 'sudo su' depending on how your device is rooted. Next type 'screen /dev/smd11' this will show a blank screen from where you can type 'AT'. Hopefully you should see an 'OK' response meaning the GSM modem is working ok.
4. Generating a PDU to send to the modem.
Now we can access the GSM mode we need to generate a PDU to send, so in termux type 'pkg install python; pip install smspdu' this will install python and the relevent library. Now we need to create a new file using an editor like nano so type 'pkg install nano; nano pduencoder.py' and paste the script below.
replace "sender" with the phone number your want to spoof, and the "recipient" to the phone number of your victim. Now edit the message "hello world" and press CTRL-X to save and exit, then run the script typing 'python pduencoder.py' to get a string similar to the following '010010D0F2F2380D4F97DD7400000CE8329BFD6681EE6F399B0C'. Now we need to find the length of the PDU by counting how many letters and numbers so for this PDU the length is 52 as there are 52 characters.
5. Sending the PDU to the GSM Modem.
Now we have a PDU we can send we need to tell the device we are going to send a pdu so again type the following into termux 'screen /dev/smd11' to access the modem then type 'AT+CMGF=0'. This will change the mode of the modem, and now its ready for your PDU so lets type
NOTE - <CR> means press enter
Now you should of sent your FIRST spoofed message.
The GSM network, is a network infrastructure setup for mobile phones. The network includes dedicated devices and protocols (languages) that push GSM data around the network that can include calls, sms and even network management messages.
When you turn on your phone, your phone will listen for the nearest local mobile tower and send the IMSI and IMEI which are stored on your device and SIM card to the network similar to how you login to network. Once registered to the network, you can then send SMS messages or CALL other devices on the network.
1. What is an SMS
An SMS according to wikipedia SMS (short message service) is a text messaging service component of most telephone, Internet, and mobile device systems. It uses standardized communication protocols to enable mobile devices to exchange short text messages. An intermediary service can facilitate a text-to-voice conversion to be sent to landlines.
So basically an SMS is a method of sending short messages to devices over the GSM network and there are two main different types of SMS messages that can be sent via smartphones and dongles. These are normal SMS and binary SMS via and we can do this through crafting a PDU and sending it directly through the GSM modem.
2. What is a GSM modem.
On each android phone, is a GSM modem which controls all aspects of the GSM connection. runs independent of the host os on the device such as Android or Iphone and can be accessed via usb, bluetooth or even from inside the OS on a rooted device.
3. How do we access the GSM modem
Accessing the GSM isnt difficult, it sits on /dev/smd11 and you need to use screen to send commands to it. However, you will need to install termux and type 'pkg install screen' to install screen. Screen is a multiplexing terminal which can be used as a serial connection to the modem. So, once you install termux and screen type 'su' or 'sudo su' depending on how your device is rooted. Next type 'screen /dev/smd11' this will show a blank screen from where you can type 'AT'. Hopefully you should see an 'OK' response meaning the GSM modem is working ok.
4. Generating a PDU to send to the modem.
Now we can access the GSM mode we need to generate a PDU to send, so in termux type 'pkg install python; pip install smspdu' this will install python and the relevent library. Now we need to create a new file using an editor like nano so type 'pkg install nano; nano pduencoder.py' and paste the script below.
Code:
#!/usr/bin/python
from smspdu import SMS_SUBMIT
pdu = SMS_SUBMIT.create("sender", "recipient", "hello, world")
pdu.toPDU()
Notice 'pdu = SMS_SUBMIT.create("sender", "recipient", "hello, world")'
replace "sender" with the phone number your want to spoof, and the "recipient" to the phone number of your victim. Now edit the message "hello world" and press CTRL-X to save and exit, then run the script typing 'python pduencoder.py' to get a string similar to the following '010010D0F2F2380D4F97DD7400000CE8329BFD6681EE6F399B0C'. Now we need to find the length of the PDU by counting how many letters and numbers so for this PDU the length is 52 as there are 52 characters.
5. Sending the PDU to the GSM Modem.
Now we have a PDU we can send we need to tell the device we are going to send a pdu so again type the following into termux 'screen /dev/smd11' to access the modem then type 'AT+CMGF=0'. This will change the mode of the modem, and now its ready for your PDU so lets type
Code:
'AT+CMGS=52<CR>010010D0F2F2380D4F97DD7400000CE8329BFD6681EE6F399B0C'
NOTE - <CR> means press enter
Now you should of sent your FIRST spoofed message.
HELPFUL LINKS