14 Feb
Posted by Harper as General, Technology at 02:28 PM
Tags: Technology
I have cleaned up and commented a little hack i did for my home asterisk server – allowing a person to dial an extension and then be walked through spoofing caller id on a call. It is a ridiculously easy hack to engage. I was surprised and a bit concerned at what this means in regards to trust and telephony. I mean, if a hobbyist is able to spoof caller id on a phone call to anywhere with nothing more than asterisk@home and vmware.. what is to stop someone from setting something like this up and stealing credit cards or social security numbers using some crazy social engineering.. i guess nothing..
So anyway, i released my source code. It is really really simple and based entirely on one small block of code. The basic idea is:
- Prompt user for input (spoofed number)
- Grab 10 digits (spoofed number)
- Prompt user for input (number to call)
- Grab 10 digits (number to call)
- Set caller idea based on input in step 1 and 2
- Make call to number from input in step 3 and 4
As you can see the idea is pretty simple. get input. set callerid. make call. The code is just as simple:
//(step 1) Prompt user for input
$agi->stream_file(‘enter_spoof’); //(step 2) Grab 10 digits
$result = $agi->get_data(‘beep’, 3000, 10);
//set variables and output debug info
$spoofnumber= $result['result'];
$agi->verbose(“Spoof Number:”.$spoofnumber);//(step 3) Prompt user for input
$agi->stream_file(‘call_spoof’);
//(step 4) Grab 10 digits
$result = $agi->get_data(‘beep’, 3000, 10);
//set variables and output debug info
$callnumber= $result['result'];
$agi->verbose(“Number to call:”.$callnumber);//(step 5) Set callerid to whatever the input was in step 2
$agi->set_callerid($spoofnumber);
//(step 6) Make call to number from input in step 3 and 4
$agi->exec(“Dial IAX2/yourpassword@provider/1″.$callnumber);
The agi interface to asterisk obviously hides a lot of the complex stuff that asterisk does in the background – but still – the code is insanely simple. even with user interaction. A lot of features could be added – password; callerid checking to make sure only valid users are using the app; call back – so if you call it and set up your spoof, it calls back your number to make sure you who you say you are. or whatever ;) a lot of options are available.
With a little bit of expansion – i think someone could easily make a robust callerid spoofing application for criminals and not criminals. it is easy enough for anyone to do.
Check out my code here: asterisk_callerspoof
What i have done is nothing new – there is a great article about all this: Automated Caller ID / ANI Spoofing
asterisk and php rule.
Unique visitors to post: 341
8 Responses
derek
February 14th, 2006 at 2:37 pm
1there are times i hate you. you are rocking this phone stuff out nicely.
Tré
February 17th, 2006 at 5:59 pm
2Hi Harper,
i saw you on orkut, and i would ask you something…
are you still using orkut? , i really need your help!
please. answer me.
Thanks guy.
cya!
Ismail
May 9th, 2006 at 10:57 am
3I looked at the lovely code you wrote, but the voip provider I use is dumb to dtmf, cannot dial back easily number, get error
Can you write something, like a web command, giving the number I want to call me back, and also the number where I want the call placed (destination)
Only guys like you can do something like that
Text Grams
August 8th, 2006 at 11:56 pm
4Here is a demo of such a script in action Text Grams and it uses a process on CDyne
LolitochkaBC
May 10th, 2007 at 6:50 am
5?????-?? ??????? ????????!!!
????????????? ?????????? ? ?????????? ????? http://www.nata2.org ))))
??? ?? ?????? ?????? ???? ??????!
Harper
May 12th, 2007 at 3:30 pm
6I have very little idea what you are saying. in fact – i have NO IDEA.
Please use english.
Digilab e Spoofing telefonico: la scoperta dell'acqua calda! « Andy’s Blog
May 26th, 2007 at 3:37 am
7[...] su internet, poi, ci si imbatte in chi ha realizzato addirittura uno script per asterisk che permette, chiamando un numero registrato sul pbx, di digitare il numero dal quale si vuole far [...]
Digilab e Spoofing telefonico « Cristi an Snif Hackingblog’s
September 9th, 2007 at 11:51 am
8[...] su internet, poi, ci si imbatte in chi ha realizzato addirittura uno script per asterisk che permette, chiamando un numero registrato sul pbx, di digitare il numero dal quale si vuole far [...]
Be sure and take a gander at my photos.
If you want to contact me click here to start a chat.
Status
follow me on Twitter
Pictures
Friends
Popular Tags
action awesome blogs books bush cell chicago chris colorado crobar dylan family food games google hacking harper hiromi humor india insane internet iraq job juggle juggling matiss metal movies music nokia phone phones php reed rock school search server sick Sites Technology travel video war
search
Categories
Archives
Recent Entries
Recent Comments
Most Commented
Nata2.org is © 1997-2008 Harper Reed. Theme stoled and inspired by the great BloggingPro theme by: Design Disease