Git Product home page Git Product logo

gsmevil2's People

Contributors

ninjhacks avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gsmevil2's Issues

Unable to capture Sms

I try a lot of time but it unable to capture Sms and I use drogon os operating system please solve this issue

gsmevil crash

Installing using gsmevil2 works fine till it seems to crash after a certain volume of data entries.
Traceback (most recent call last):
File "GsmEvil.py", line 285, in
GsmSniffer.sniffer()
File "GsmEvil.py", line 56, in sniffer
ImsiEvil().get_imsi(packet)
File "GsmEvil.py", line 129, in get_imsi
self.filter_imsi()
File "GsmEvil.py", line 109, in filter_imsi
imsi_live_db[self.imsi] = {"id" : self.imsi_id,"tmsi" : self.tmsi, "mcc" : self.mcc, "mnc" : self.mnc}
AttributeError: 'ImsiEvil' object has no attribute 'imsi_id'
^CException ignored in: <module 'threading' from '/usr/lib/python3.8/threading.py'>
Traceback (most recent call last):
File "/usr/lib/python3.8/threading.py", line 1388, in _shutdown
lock.acquire()

using the we switch works few seconds and crash again.
Have to restart in in terminal, any ideas?

temporary work around would be to delete the imsi.db

gsmevil2 installation issue with

according to the description I have to install pip3 install pyshark flask flask_socketio logging sqlite3 but logging included in base install of python3.

I got some GSM traffic, checked I could get some IMSI with https://github.com/Oros42/IMSI-catcher

I can launch gsmevil2 and connect to the web interface no traffic ieven activting to sms and imsi options, maybe due to the failed installation of logging module.
Trying to install sudo pip3 install logging will generate this error:
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-qj3pjs03/logging/setup.py'"'"'; file='"'"'/tmp/pip-install-qj3pjs03/logging/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-qj3pjs03/logging/pip-egg-info
cwd: /tmp/pip-install-qj3pjs03/logging/
Complete output (48 lines):
running egg_info
creating /tmp/pip-install-qj3pjs03/logging/pip-egg-info/logging.egg-info
writing /tmp/pip-install-qj3pjs03/logging/pip-egg-info/logging.egg-info/PKG-INFO
writing dependency_links to /tmp/pip-install-qj3pjs03/logging/pip-egg-info/logging.egg-info/dependency_links.txt
writing top-level names to /tmp/pip-install-qj3pjs03/logging/pip-egg-info/logging.egg-info/top_level.txt
writing manifest file '/tmp/pip-install-qj3pjs03/logging/pip-egg-info/logging.egg-info/SOURCES.txt'
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-install-qj3pjs03/logging/setup.py", line 3, in
setup(name = "logging",
File "/usr/lib/python3.8/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.8/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/lib/python3/dist-packages/setuptools/command/egg_info.py", line 297, in run
self.find_sources()
File "/usr/lib/python3/dist-packages/setuptools/command/egg_info.py", line 304, in find_sources
mm.run()
File "/usr/lib/python3/dist-packages/setuptools/command/egg_info.py", line 535, in run
self.add_defaults()
File "/usr/lib/python3/dist-packages/setuptools/command/egg_info.py", line 571, in add_defaults
sdist.add_defaults(self)
File "/usr/lib/python3.8/distutils/command/sdist.py", line 226, in add_defaults
self._add_defaults_python()
File "/usr/lib/python3/dist-packages/setuptools/command/sdist.py", line 135, in _add_defaults_python
build_py = self.get_finalized_command('build_py')
File "/usr/lib/python3.8/distutils/cmd.py", line 298, in get_finalized_command
cmd_obj = self.distribution.get_command_obj(command, create)
File "/usr/lib/python3.8/distutils/dist.py", line 857, in get_command_obj
klass = self.get_command_class(command)
File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 764, in get_command_class
self.cmdclass[command] = cmdclass = ep.load()
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 2450, in load
return self.resolve()
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 2456, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
File "/usr/lib/python3/dist-packages/setuptools/command/build_py.py", line 16, in
from setuptools.lib2to3_ex import Mixin2to3
File "/usr/lib/python3/dist-packages/setuptools/lib2to3_ex.py", line 12, in
from lib2to3.refactor import RefactoringTool, get_fixers_from_package
File "/usr/lib/python3.8/lib2to3/refactor.py", line 19, in
import logging
File "/tmp/pip-install-qj3pjs03/logging/logging/init.py", line 618
raise NotImplementedError, 'emit must be implemented '\
^
SyntaxError: invalid syntax
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Any idea?

Decrypt A5/1

Will there be an update with the A5/1 decryption? Is it possible to implement it in this program?

GSM interception testing

excuse me am newbie about radio signals , can i intercept sms messages on 3g 4glte? or it work only on 2g? because when i make a call
when i see the frequency its 900mhz same as receiving smss so i thought that i can intercept my phone messages outside on 4g lte and 3g because its delivered only on 900mhz thanks

Unsupported version of the Socket.IO

I installed all latest versions of requirement. When i start GSMEvil, there is a warning. The client is using an unsupported version of the Socket.IO or Engine.IO protocols (further occurrences of this error will be logged with level INFO). How can i fix that error?

Sniffing outside a region

Please can I use Gsmevil2 and sniff sms from numbers outsides my country ? Or is it within my region or country only ? If it’s possible to use it to capture sms from numbers outside my country. Pls I would love to know how. Thanks

SMS sniff

Mainly just curious for lab purposes and learning.

I’ve tested gsmevil2 against YateBTS and have not seen any SMS captured.

However the following Wireshark filters work when enabling the Wireshark tap in yate. Wondered if you’d actually seen the SMS sniff work in your testing on appropriate setup conditions?

Only GSM: gsmtap && !icmp

Only paging activity: gsmtap.chan_type == CCCH && !icmp

Only SMS (Uplink / Downlink): gsm_a.dtap.msg_sms_type == 0x01

Only SMS from originator 12345: gsm_sms.tp-oa == "12345"

Only SMS ack from subscriber: gsm_a.rp.msg_type == 0x02

The WebSocket transport is not available when enable sms sniffer

The WebSocket transport is not available, you must install a WebSocket server that is compatible with your async mode to enable it. See the documentation for details. (further occurrences of this error will be logged with level INFO)
sms sniffer started
Traceback (most recent call last):
File "gsmevil.py", line 285, in
GsmSniffer.sniffer()
File "gsmevil.py", line 45, in sniffer
capture = pyshark.LiveCapture(interface='lo', bpf_filter='port 4729 and not icmp and udp')
File "/usr/local/lib/python3.8/dist-packages/pyshark/capture/live_capture.py", line 58, in init
all_interfaces = get_tshark_interfaces(tshark_path)
File "/usr/local/lib/python3.8/dist-packages/pyshark/tshark/tshark.py", line 112, in get_tshark_interfaces
parameters = [get_process_path(tshark_path), "-D"]
File "/usr/local/lib/python3.8/dist-packages/pyshark/tshark/tshark.py", line 70, in get_process_path
raise TSharkNotFoundException(
pyshark.tshark.tshark.TSharkNotFoundException: TShark not found. Try adding its location to the configuration file. Searched these paths: ['C:\Program Files\Wireshark\tshark.exe', '/usr/local/sbin/tshark', '/usr/local/bin/tshark', '/usr/sbin/tshark', '/usr/bin/tshark', '/sbin/tshark', '/bin/tshark', '/snap/bin/tshark']

the SMS sniffer is not working !

Hello dude !

Would you be so kind to help me ? I dont know much about this but finally the gsmevil2 is working. I've set everything with no errors during the process ! But I've noticed that the SMS sniffer is not working, even seems to be disabled ! I dont know why, but I need to mention that Im sniffing PCS band, and this could be the problem, please confirm.

Thanks in advance.

Error 13 - Permission denied

Hello, I've run the command python3 GsmEvil.py and I got this error:

File "/home/john/.local/lib/python3.6/site-packages/flask/app.py", line 920, in run
    run_simple(t.cast(str, host), port, self, **options)
  File "/home/john/.local/lib/python3.6/site-packages/werkzeug/serving.py", line 1017, in run_simple
    inner()
  File "/home/john/.local/lib/python3.6/site-packages/werkzeug/serving.py", line 966, in inner
    fd=fd,
  File "/home/john/.local/lib/python3.6/site-packages/werkzeug/serving.py", line 790, in make_server
    host, port, app, request_handler, passthrough_errors, ssl_context, fd=fd
  File "/home/john/.local/lib/python3.6/site-packages/werkzeug/serving.py", line 693, in __init__
    super().__init__(server_address, handler)  # type: ignore
  File "/usr/lib/python3.6/socketserver.py", line 456, in __init__
    self.server_bind()
  File "/usr/lib/python3.6/http/server.py", line 136, in server_bind
    socketserver.TCPServer.server_bind(self)
  File "/usr/lib/python3.6/socketserver.py", line 470, in server_bind
    self.socket.bind(self.server_address)
PermissionError: [Errno 13] Permission denied
self.run()
  File "/usr/lib/python3.9/threading.py", line 892, in run
    self._target(*self._args, **self._kwargs)
  File "/home/john/gsmevil2/GsmEvil.py", line 278, in server
    app.run(host=options.host, port=options.port, threaded=True)
  File "/usr/lib/python3/dist-packages/flask/app.py", line 990, in run
    run_simple(host, port, self, **options)
  File "/usr/lib/python3/dist-packages/werkzeug/serving.py", line 1052, in run_simple
    inner()
  File "/usr/lib/python3/dist-packages/werkzeug/serving.py", line 996, in inner
    srv = make_server(
  File "/usr/lib/python3/dist-packages/werkzeug/serving.py", line 847, in make_server
    return ThreadedWSGIServer(
  File "/usr/lib/python3/dist-packages/werkzeug/serving.py", line 740, in __init__
    HTTPServer.__init__(self, server_address, handler)
  File "/usr/lib/python3.9/socketserver.py", line 452, in __init__
    self.server_bind()
  File "/usr/lib/python3.9/http/server.py", line 138, in server_bind
    socketserver.TCPServer.server_bind(self)
  File "/usr/lib/python3.9/socketserver.py", line 466, in server_bind
    self.socket.bind(self.server_address)
PermissionError: [Errno 13] Permission denied

How can I fix these errors?

Feature Request: mcc-mnc translation

Hi,

Thanks for this nice web interface!
I would like to propose a feature, to implement some sort of translation to the actual country & network.

This could be used for the data: https://mcc-mnc.com/
simple-imsi-catcher has this feature aswell, maybe it would be 'easier' to port it over from there.
If i knew how to code i would happily contribute, but unfortunatly i'm not a coder...

Thanks again!

bad gateway

hello when i try to run python3 GsmEvil.py --host=localhost web browser shows bad gateway and white screen! any fix?

Discord Server invite broken/down ?

Hi, i been trying to join the ninjhacks discord with the custom invite but its seam that the invite link is down / custom invite is not set.

Can you provide a new invite ? Thank

image

error installing on latest dragonOS_Focal

dragonos@dragonos-virtual-machine:~/gsmevil2$ sudo add-apt-repository -y ppa:ptrkrysik/gr-gsm
Cannot add PPA: 'ppa:~ptrkrysik/ubuntu/gr-gsm'.
The user named '~ptrkrysik' has no PPA named 'ubuntu/gr-gsm'
Please choose from the following available PPAs:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.