All Projects → ernw → Ss7maper

ernw / Ss7maper

Licence: bsd-3-clause
SS7 MAP (pen-)testing toolkit. DISCONTINUED REPO, please use: https://github.com/0xc0decafe/ss7MAPer/

Programming Languages

erlang
1774 projects

Projects that are alternatives of or similar to Ss7maper

Cve 2019 0708
3389远程桌面代码执行漏洞CVE-2019-0708批量检测工具(Rdpscan Bluekeep Check)
Stars: ✭ 350 (-11.17%)
Mutual labels:  pentest
K8tools
K8工具合集(内网渗透/提权工具/远程溢出/漏洞利用/扫描工具/密码破解/免杀工具/Exploit/APT/0day/Shellcode/Payload/priviledge/BypassUAC/OverFlow/WebShell/PenTest) Web GetShell Exploit(Struts2/Zimbra/Weblogic/Tomcat/Apache/Jboss/DotNetNuke/zabbix)
Stars: ✭ 4,173 (+959.14%)
Mutual labels:  pentest
Locationpicker
A ready for use and fully customizable location picker for your app
Stars: ✭ 384 (-2.54%)
Mutual labels:  map
Pentest Lab
Pentest Lab on OpenStack with Heat, Chef provisioning and Docker
Stars: ✭ 353 (-10.41%)
Mutual labels:  pentest
Resium
React components for 🌏 Cesium
Stars: ✭ 356 (-9.64%)
Mutual labels:  map
Southkorea Maps
South Korea administrative divisions in ESRI Shapefile, GeoJSON and TopoJSON formats.
Stars: ✭ 367 (-6.85%)
Mutual labels:  map
Bayestestr
👻 Utilities for analyzing Bayesian models and posterior distributions
Stars: ✭ 346 (-12.18%)
Mutual labels:  map
Pentesterspecialdict
渗透测试人员专用精简化字典 Dictionary for penetration testers happy hacker
Stars: ✭ 391 (-0.76%)
Mutual labels:  pentest
Open Redirect Payloads
Open Redirect Payloads
Stars: ✭ 361 (-8.38%)
Mutual labels:  pentest
Termtrack
Track satellites in your terminal
Stars: ✭ 375 (-4.82%)
Mutual labels:  map
Objection
📱 objection - runtime mobile exploration
Stars: ✭ 4,404 (+1017.77%)
Mutual labels:  pentest
Webshell Sniper
🔨 Manage your website via terminal
Stars: ✭ 359 (-8.88%)
Mutual labels:  pentest
Blendergis
Blender addons to make the bridge between Blender and geographic data
Stars: ✭ 4,642 (+1078.17%)
Mutual labels:  map
Dnsbrute
a fast domain brute tool
Stars: ✭ 352 (-10.66%)
Mutual labels:  pentest
Blueshell
红蓝对抗跨平台远控工具
Stars: ✭ 379 (-3.81%)
Mutual labels:  pentest
Enum4linux Ng
A next generation version of enum4linux (a Windows/Samba enumeration tool) with additional features like JSON/YAML export. Aimed for security professionals and CTF players.
Stars: ✭ 349 (-11.42%)
Mutual labels:  pentest
Hashmap
HashMap JavaScript class for Node.js and the browser. The keys can be anything and won't be stringified
Stars: ✭ 363 (-7.87%)
Mutual labels:  map
Ad Pentest Notes
用于记录内网渗透(域渗透)学习 :-)
Stars: ✭ 390 (-1.02%)
Mutual labels:  pentest
Slackor
A Golang implant that uses Slack as a command and control server
Stars: ✭ 392 (-0.51%)
Mutual labels:  pentest
React Leaflet
React components for Leaflet maps
Stars: ✭ 3,939 (+899.75%)
Mutual labels:  map

ss7MAPer

SS7 MAP (pen-)testing toolkit

Binary releases

As a lot of people run into problems building the tool, there are binary releases which can be found here: https://github.com/ernw/ss7MAPer/tree/master/releases

As people also run into problems using the binary release, there is a docker image with ss7MAPer running on ubuntu 16.04

If you use the binary version, skip right over the next chapter.

Get it running

You will need:

  • Erlang. Get it from your repo or from http://www.erlang.org.

  • Rebar. Get it from your repo or from https://github.com/rebar/rebar

  • The code (;

     git clone https://github.com/ernw/ss7MAPer   
    
  • The dependencies

     cd ss7MAPer   
     rebar get-deps   
    
  • Patch the dependencies

     cd deps/osmo_map   
     patch -p1 < ../../patches/osmo_map.patch   
     cd ../osmo_sccp   
     patch -p1 < ../../patches/osmo_sccp.patch   
     cd ../osmo_ss7   
     patch -p1 < ../../patches/osmo_ss7.patch   
    
  • Get the deps to build (; This is not as easy as it might sound, I needed to:
    Patch the epacp/rebar.config and replace

     {port_envs, [   
       {"DRV_CFLAGS", "-g -Wall $ERL_CFLAGS"},   
       {"DRV_LDFLAGS", "-lpcap $ERL_LDFLAGS"}   
     ]}.   
    

    with

     {port_envs, [   
       {"CFLAGS", "-g -Wall $ERL_CFLAGS"},   
       {"LDFLAGS", "-lpcap $ERL_LDFLAGS"}   
     ]}.   
    

    Another dependency is not covered by rebar, so you need to fetch it manually:

     cd deps   
     git clone http://cgit.osmocom.org/erlang/signerl/   
    

    Build the ASN.1 source files:

     cd deps/signerl/TCAP/asn_src/ITU   
     make   
    

    Copy the ASN.1 files to osmo_sccp:

     cp deps/signerl/TCAP/asn_src/ITU/*rl deps/osmo_sccp/src/   
    

    Also the osmo libs have dependencies on each other and some other deps are shared, so I created some symlinks:

     mkdir deps/epcap/deps
     ln -sd ../../pkt deps/epcap/deps/pkt
     mkdir deps/osmo_sccp/deps   
     ln -sd ../../osmo_ss7 deps/osmo_sccp/deps/osmo_ss7   
     ln -sd ../../epcap deps/osmo_sccp/deps/epcap   
     ln -sd ../../pkt deps/osmo_sccp/deps/pkt   
     ln -sd ../../signerl/MAP deps/osmo_sccp/deps/MAP    
     ln -sd ../../signerl/SCCP deps/osmo_sccp/deps/SCCP   
     ln -sd ../../signerl/TCAP deps/osmo_sccp/deps/TCAP   
     mkdir deps/osmo_map/deps   
     ln -sd ../../osmo_ss7 deps/osmo_map/deps/osmo_ss7   
     ln -sd ../../epcap deps/osmo_map/deps/epcap   
     ln -sd ../../pkt deps/osmo_map/deps/pkt   
    

    And copy some files in place:

     cp deps/signerl/SCCP/itu/include/sccp.hrl deps/osmo_sccp/src/   
     cp deps/signerl/TCAP/include/tcap.hrl deps/osmo_map/src/   
    
  • Build the code

     rebar co   
    

If all the steps above are too much to do by hand (as for me testing ;) you can use the build script here: https://github.com/ernw/ss7MAPer/blob/master/prepare_n_build.sh

The config file

The config file is split in 4 section, sctp, m3ua, sccp and target.

In the sctp section source and destination ip as well as source and destination port of the SCTP connection are configured.

In the m3ua section all the M3UA parameters, like local and remote point code are configured.

In the sccp section currently only the local (or source) global title needs to be configured.

Last but not least in the target section information about the tested environment need to be configured, like the global title of the HLR, or the MSISDN of the tested phone.

Be sure to modify it to your needs.

Running the tool

Running a source build

To run the tool one needs to start a rebar shell:

cd ss7MAPer   
rebar shell   

Start the application and its dependencies with:

application:start(sasl).
application:start(ss7MAPer).

If everything is set up correctly the m3ua connection comes up.

Running the binary release

Run the application by starting it from the root directory:

cd ss7MAPer
./bin/ss7MAPer console

If everything is set up correctly the m3ua connection comes up.

Using the tool

Once the application is started, there are some commands that can be executed from the erlang command line:

  • ss7MAPer:test_hlr()
  • ss7MAPer:test_msc()
  • ss7MAPer:test_smsc()

and each of them does exactly as its called, running MAP tests against the targets defined in the config file.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].