Welcome back, my aspiring cyber warriors!
Social engineering is a key feature of some of the biggest hacks in history! Many novice hackers are so focused on mastering the technical aspects of hacking that they ignore at their peril the power of social engineering. When nation-state actors such as Russia’s Sandworm hacking team (one of the most technically advanced hacker organizations) use social engineering to hack Ukraine’s electrical grid and the US 2016 Presidential election, that should be a sign that social engineering is impocriticalyour hacking toolbox.
In the TV show, Mr. Robot, Elliot and f/society use social engineering to hack Steel Mountain where Evil Corporation stores their backup tapes. Part of that social engineering is an SMS message (sent from a now obsolete feature in the Social Engineering Toolkit (SET)) to a manager that distracts her and enables Elliot to roam free in the facility, eventually leading him to the HVAC system of the vault where the tapes are stored. This is a complex and difficult hack but none of it would be possible without social engineering.
SMS messages or commonly referred to as text messages is a protocol originally developed in the 1980-1980s and first implemented on the European mobile standard GSM in the 1990-1990s has since been implemented into nearly every mobile communication protocol. It allows the users to send a short message (SMS is an acronym for short message service) of less than 160 characters from one person to another over the mobile network. It has become a ubiquitous feature of mobile communication in the 21st century.
Let’s take a look at how you can send fake SMS messages.
Step #1 Download and Install Fake SMS
If wWe can download and install Fake-SMS if we want to send fake SMS messages from Kali’s available on git the hub.
kali > sudo git clone https://github.com/machine1337/fake-sms
Once it has been downloaded, navigate to the new directory;
kali > cd fake-sms
Now, give yourself execute permissions on run.sh
kali > sudo chmod 755 runs.runs
N ow, execute the script
kali > sudo ./run.sh
As you can see above, Fake-SMS opens a screen like that above with a simple menu. To send a SMan message, simply enter 2.
You will now be prompted for a phone number and message as seen below. I found this number among the many scams currently being perpetuated via SMS. This one promises forgiveness of your student loans.
I entered the phone number, hit enter, and, then was prompted for a message. I then entered “Yes! I want student loan forgiveness!”
As you can see, I was able to send my fake SMS message to the scammers! With this script, we are can send one fake SMS daily
We can view the Fake-SMS script with any text editor. In this case, I opened it with a mousepad. When We can see it is a simple BASH script when we do so we scroll down to lines 119–120, we can see a curl command to textbelt.com. AppaThisipt simply uses this SMS site to send text messages.
Let’s see whether we can bypass this script and work directly with this site.
Step #2: Use the curl command to send Fake SMS
First, we need to open an account at textbelt.com. When we open an account, we can send one fake SMS message per day or we can purchase credits and get an API key to use their service.
Now we can generate our messages without the Fake-SMS script directly by creating a curl command in Linux (once you have an API, you can use a variety of scripting languages, but I found this curl command to be the simplest). The syntax for this command is as follows:
curl -X POST https://textbelt.com/text — data-urlencode phone=’phone number with country code’
— data-urlencode= message=’text message’
-d key=Your API Key
I can then construct a command to send a fake text message as seen below using the same info from above and including my API key (blacked out).
This service responds with a message detailing the success of sending my message and the number of messages left in my quota.
Although every hacker wants a nice, clean, technically advanced hack similar to EternalBlue, that is usually not possible except for in a limited number of cases. In reality, nearly all hacks today require an element of social engineering. As mentioned above, even the most sophisticated hacking organizations such as Russia’s Sandworm have used elements of social engineering for some of their most important hacks in history. Being able to send fake SMS messages might be the critical element of your hack!