Closed aleen42 closed 7 years ago
Sorry, I'm not en expert in GSM and I have test it only on a french network.
But first step to investigate is to use wireshark :
sudo wireshark -k -Y '!icmp && gsmtap' -i lo
And if you can send me a wireshark capture, it would be useful to debug.
So, May I ask you a question, and can I also get IMEI from the gsm package?
Ooh IMEI and ISMI are not the same thing. ISMI is used to identify the user (SIM card). It's not link to the phone https://en.wikipedia.org/wiki/International_mobile_subscriber_identity IMEI is a number to identify the phone. And it's not link to the SIM https://en.wikipedia.org/wiki/IMEI
In my wireshark sniffing, I've never seen IMEI.
According to some suggestions, IMEI may not be transmitted with GSM packages and of course we won't get this number in the sniffed package, unless the situation that service providers has asked phones for IMEI. :cry:
Yes. You can found your own ISMI number to track your phone but it's not easy. This is how I process : 1- check that your phone use GSM (2G) network 2- run gqrx (http://gqrx.dk/) 3- with your phone phone, call a second phone and find which frequency is used to upload (phone to antenna, around 876Mhz to 914Mhz) 4- if you get the frequency, add an offset of 45Mhz (ex : 880Mhz->924Mhz) 5- use this frequency with my program and «normally», you will have your ISMI in the list of ISMI found. 6- repeat step 1 to 5 in other network area and check if you have see a common number in the list
good luck
Ok, I'll check your process and see whether it's okay, Thx.
Hello, today published an updated program in GNU Radio release v3.7.10.1, how to you can add your IMSI-Catcher?
Sorry, I don't understand this part "how to you can add your IMSI-Catcher" :-/
Hi,
We need UHF reader with radius-polarisations, up 30 db/m transmit power, up 6-10 m (minimum 5) recommend read range, frequency range -- 860Mhz-875Mhz . With four ports for ANT.
And also we need UHF reader with around (radius) polarisations antenna up 9 dbi.
Their size must be up 250x250.
Must be readed 200-300 tags in one moment.
Can you propose something?
Thank you very much for answers!
Best regards,
Bogdan Parfenyuk,
Embedded developer,
SenseSystems
From: Oros42 [mailto:notifications@github.com] Sent: Wednesday, September 14, 2016 10:20 AM To: Oros42/IMSI-catcher IMSI-catcher@noreply.github.com Subject: Re: [Oros42/IMSI-catcher] there is only wrong imsi numbers (#1)
Sorry, I don't understand this part "how to you can add your IMSI-Catcher" :-/
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Oros42/IMSI-catcher/issues/1#issuecomment-246927514 , or mute the thread https://github.com/notifications/unsubscribe-auth/ALABy2YI8xzv06Ys5UaGsBAqbsMA1zWRks5qp6A5gaJpZM4IX8LR . https://github.com/notifications/beacon/ALABywOj4bFYbbO9Qixzw-O6nr8jsYa2ks5qp6A5gaJpZM4IX8LR.gif
Wooow WTF? I have just made this script for fun with the USB DVB-T key RTL2832U. I didn't sell anything.
:-), WTF, an ad email?
Hello I'm using GNU Radio v3.7.10.1(http://gnuradio.org/news/gnu-radio-v3-7-10-1-release/) installed on the USB, how to add your IMSI-Catcher?
Mmmh I haven't try to setup GNU Radio without using pybombs :-/
@stenroot : I have found a new way to setup gr-gsm :
sudo add-apt-repository -y ppa:ptrkrysik/gr-gsm
sudo apt update
sudo apt install gr-gsm python-numpy python-scipy python-scapy
I have made some fixes in the code.
MCC and MNC are store in mcc-mnc/mcc_codes.json mcc-mnc/update_codes.py is used to update mcc-mnc/mcc_codes.json with data from https://en.wikipedia.org/wiki/Mobile_Network_Code
work perfectly bro... thanks for update your code...
perfect, I can find many IMSI, but also forcing my cell phone in 2G mode I can not find my IMSI. I also tried to analyze with wireshark on the downlink frequency of my phone but nothing. you have ideas?
@onoff0 This catcher will always lose some IMSIs, when it's not included in GSM headers. According to some experts, IMSIs won't be transferred between phones and base stations after the connection at the first time. Therefore, I advise you to try to force to break the connection between them, so that phones can transfer IMSIs again to reconnect.
@onoff0 You should check if 2G and 3G use the same frequency.
thanks for the answers. I make some tests I noticed that the phone in GSM mode when LAC changes or switching on can wait for an update. Just then an SMS to force the network to request a location update, and then take its IMSI.
it would be possible to implement the catcher for TMSI, with a grouping counter of unique values? thanks !!
Work in progress for TMSI since last week ;-) Coming soon.
great !!! good job ;)
@onoff0 During forcing network to request a location update, IMSIs will be transferred in the GSM package?
@aleen42 Yes, personally I have only tried it with phones in GSM. with wireshark you can see in detail the network packets received from mobile phones under a specific frequency assigned by the telephone operators. The IMSIs newly assigned (change LAC, telephone turned on, location update) will be visible in wireshark via a paging request, after which the network will assign to mobile phones in the same area a TMSI that will remain so for some time.
Hello everyone ! I have add the display of TMSI ! :-) And bonus, you can filter IMSIs and follow one special IMSI by using this :
sudo python IMSI-TMSI-catcher.py -m "123 45 6789101112"
or
sudo python IMSI-TMSI-catcher.py -m 123456789101112
great, I'm trying. I do not mean a lot of programming, it would be possible to implement a function that picks up only the TMSI in a given frequency with the possibility to filter only those that repeat more. example, only displays the TMSI that is repeated in 'area for more than 3 or 4 times ++. Congratulations for your work!
Hi, for an NGO project, we are looking a way to determine the number of mobile cells around a radius. We need to count the unique mobiles via detecting their IMSI or something unique. Your tool looks like built for it. How we can implement? Any help appreciated!
@onoff0 : If you displays the TMSI that is repeated X times, you can't have a live TMSI tracking. You should wait X time to sniff GSM network and after that, count each TMSI. I have thinking about filtering one TMSI. But It's not easy. The TMSI could change during the time.
@stevevaius : The variable nb_IMSI already count the number of unique IMSIs (column 1). But I don't known yet how to count mobiles that haven't send IMSI and use only TMSI.
Guys, I am impressed by the quality of your work. @Oros42 , is it possible, based on your experience, to access the SS7 network of the mobile operator? My main concern is privacy (geolocation and packet sniffing and decoding) and I am wondering if we need to worry ONLY from the improper use of the SS7 protocols accessed by an hub provided by the mobile operator or if we should ALSO worry from an "anonymous" access done with this type of technology. Thank you. p.s. I understand this may not be the right place for this conversation and I apologize for it, so please, move this message where it more appropriately fits.
Thanks you @rdarioc :-) This issue is more like a topic than a true issue XD I'm sorry, I don't know yet who does SS7 works but I want to learn it ! I need documentation about SS7.
Ask, and you shall receive:
Signalling System #7, ITU-T Q.700 series: http://www.itu.int/rec/T-REC-Q/e
Mobile Application Part (MAP) specification, 3GPP TS 29.002: http://www.3gpp.org/ftp/Specs/archive/29_series/29.002/
Study into routeing of MT-SMs via the HPLMN, 3GPP TR 23.840: http://www.3gpp.org/ftp/Specs/archive/23_series/23.840/
Support of Optimal Routeing (SOR), 3GPP TS 23.079: http://www.3gpp.org/ftp/Specs/archive/23_series/23.079/
Ooh thanks :-D
Is it possible to retrieve phone numbers or MSIN from IMSI numbers?
You can't have the phone number but you have MSIN in the IMSI number. MSIN is the last part of the IMSI. https://en.wikipedia.org/wiki/International_mobile_subscriber_identity
Thanks Oros42 for your fast response. here is 2 issue 1st issue: I am trying to collect phone number from air. is there any way to collect them? 2nd issue from this link https://en.wikipedia.org/wiki/International_mobile_subscriber_identity For Bangladesh the MSIN number and phone number is same not sure for other countries. at present there is no such type of imsi number in Bangladesh for grammin phone which exampled in wiki.
If it's true that MSIN number and phone number is same in Bangladesh then my IMSI-catcher got it ! In my country (France), the phone number is not in the MSIN.
Good day ... In my opinion it would be nice to add the output log !!!
Hello You can do this :
sudo -s
python IMSI-TMSI-catcher.py > log.csv&
tail -f log.csv
;-)
It is possible and so I agree !!! But I was referring to the script, with the date and time ...
This ?
date > log.csv
python IMSI-TMSI-catcher.py >> log.csv&
tail -f log.csv
:-D
Perhaps esle Could you be able to help me here in this example ...
def write_log(x): file_object = open("./gsm.log", "a+") try: file_object.write(x) finally: file_object.close()
Not like it is impossible to add to your script ((
Add your function in my code and change «print» to «write_log» at lines 172, 174 and 185.
Can add your script log many think it will come in handy in the future ... For Rania sposibo for pomasch !!!
You need to indent your code. This :
# Log Start
def write_log(x):
file_object = open("./gsm.log", "a+")
try:
file_object.write(x)
finally:
file_object.close()
# Log End
should be :
# Log Start
def write_log(x):
file_object = open("./gsm.log", "a+")
try:
file_object.write(x)
finally:
file_object.close()
# Log End
Sorry, but I'm not sure to understand your last message :-s
I mean ... Thank you for helping me ...
Okay ;-)
Currently tuning a script ... If you want I can send you then that ye have put him at ???
Hi Oros42 !!! Thank you for your previous help ... There was such Problem I can not add on your display example (LAC) and (CID) ... Esle Could you not mogliby help ???
p[71:][:2]=='\x08\x29'
andp[62:][:2]=='\x08\x29'
, I have get no any imsi numbers output, and I think I have set the correct frequency.p[71:][:2]=='\x08\x49'
andp[62:][:2]=='\x08\x49'
, there are some numbers output on the screen, but they all do not belong to any devices I want to track. So what can I do with this catcher?