Coder Social home page Coder Social logo

ernw / ss7maper Goto Github PK

View Code? Open in Web Editor NEW
451.0 67.0 181.0 51.58 MB

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

Home Page: https://c0decafe.de/git/ss7MAPer.git/

License: BSD 3-Clause "New" or "Revised" License

Erlang 98.00% Shell 2.00%
ss7 map m3ua hlr msc smsc pentest erlang

ss7maper's Introduction

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.

ss7maper's People

Contributors

0xc0decafe 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  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

ss7maper's Issues

Compile failed and rebar aborted.

Kali linux: The prepare_n_build.sh shows lot of errors.

Also tried running commands manually. Used ./rebar instead of just rebar as it didnt work.
Attached the screenshot too

screenshot from 2017-12-03 03-11-09
screenshot from 2017-12-03 03-12-03
screenshot from 2017-12-03 03-12-20

need help

i has successful compile from source with erlang 18.3, but on readme, after compile still need to run binary release on bin/ folder, on install from source, nothing folder bin on ss7mapper folder, and nothing on /usr/bin or /usr/local/bin ..

another question is when using this tools, i need RTL SDR device or modem or just internet connection ? thanks...

src/ss7MAPer_sup.erl:27: syntax error before: '{'

CentOS Linux release 7.6.1810 (Core)

when trying to build rebar code I get below error :

==> ss7MAPer (compile)
Compiled src/hex.erl
Compiled src/sms_7bit_encoding.erl
Compiled src/ss7MAPer.erl
Compiled src/ss7MAPer_app.erl

src/ss7MAPer_sup.erl:27: syntax error before: '{'

src/ss7MAPer_sup.erl:10: function init/1 undefined
ERROR: compile failed while processing /root/ss7MAPer: rebar_abort

rel (generate)

ERROR: generate failed while processing /root/ss7MAPer/rel: {'EXIT',{{badmatch,{error,"ss7MAPer: Missing application directory."}},
[{rebar_reltool,generate,2,
[{file,"src/rebar_reltool.erl"},{line,53}]},
{rebar_core,run_modules,4,[{file,"src/rebar_core.erl"},{line,493}]},
{rebar_core,execute,6,[{file,"src/rebar_core.erl"},{line,418}]},
{rebar_core,maybe_execute,8,
[{file,"src/rebar_core.erl"},{line,302}]},
{rebar_core,process_dir1,7,[{file,"src/rebar_core.erl"},{line,261}]},
{rebar_core,process_commands,2,
[{file,"src/rebar_core.erl"},{line,93}]},
{rebar,main,1,[{file,"src/rebar.erl"},{line,58}]},
{escript,run,2,[{file,"escript.erl"},{line,758}]}]}}

Error .. Help me

Compiling /root/Documents/ss7MAPer/deps/epcap/c_src/epcap.c
/root/Documents/ss7MAPer/deps/epcap/c_src/epcap.c:32:16: fatal error: ei.h: No such file or directory
#include <ei.h>
^
compilation terminated.
ERROR: compile failed while processing /root/Documents/ss7MAPer/deps/epcap: rebar_abort

Build SS7MAPer from src๏ผŒit occurs โ€œfatal error: ei.h: No such file or directoryโ€

ๅ›พ็‰‡
I tried to build SS7MAPer from src to set it up . But when I execute the command of โ€œBuild the codeโ€๏ผŒthat is โ€œrebar coโ€๏ผŒit issues๏ผš
Compiling /root/apps/ss7Mapper/ss7MAPer/deps/epcap/c_src/epcap.c
/root/apps/ss7Mapper/ss7MAPer/deps/epcap/c_src/epcap.c:32:10: fatal error: ei.h: No such file or directory
#include <ei.h>
^~~~~~
compilation terminated.
ERROR: compile failed while processing /root/apps/ss7Mapper/ss7MAPer/deps/epcap: rebar_abort

How can i handle this problem๏ผŸAny suggestion๏ผŸThanks.

Ss7

Does ss7 still vulnerable๐Ÿ™ or it was patched??

osmo_ss7

root@root:~/ss7MAPer# rebar co
==> pkt (compile)
==> epcap (compile)
Compiling c_src/epcap.c
Compiling c_src/epcap_priv.c
==> rel (compile)
==> osmo_ss7 (compile)
/root/ss7MAPer/deps/osmo_ss7/src/sctp_core.erl:36: Warning: undefined callback function handle_sync_event/4 (behaviour 'gen_fsm')
Compiled src/sctp_core.erl
Compiled src/exprecs.erl
Compiled src/xua_asp_fsm.erl
Compiled src/xua_asp_test.erl
/root/ss7MAPer/deps/osmo_ss7/src/xua_codec.erl:42: Warning: variable 'RemainLen' is unused
/root/ss7MAPer/deps/osmo_ss7/src/xua_codec.erl:42: Warning: the result of the expression is ignored (suppress the warning by assigning the expression to the _ variable)
Compiled src/xua_codec.erl
/root/ss7MAPer/deps/osmo_ss7/src/xua_as_fsm.erl:82: Warning: variable 'From' is unused
/root/ss7MAPer/deps/osmo_ss7/src/xua_as_fsm.erl:149: Warning: variable 'Params' is unused
Compiled src/xua_as_fsm.erl
/root/ss7MAPer/deps/osmo_ss7/src/sua_asp.erl:54: Warning: variable 'LoopDat' is unused
/root/ss7MAPer/deps/osmo_ss7/src/sua_asp.erl:57: Warning: variable 'LoopDat' is unused
/root/ss7MAPer/deps/osmo_ss7/src/sua_asp.erl:61: Warning: variable 'LoopDat' is unused
/root/ss7MAPer/deps/osmo_ss7/src/sua_asp.erl:64: Warning: variable 'LoopDat' is unused
/root/ss7MAPer/deps/osmo_ss7/src/sua_asp.erl:68: Warning: variable 'LoopDat' is unused
/root/ss7MAPer/deps/osmo_ss7/src/sua_asp.erl:71: Warning: variable 'LoopDat' is unused
Compiled src/sua_asp.erl
Compiled src/sua_sccp_conv.erl
/root/ss7MAPer/deps/osmo_ss7/src/ss7_service_dump.erl:36: Warning: undefined callback function code_change/4 (behaviour 'gen_fsm')
/root/ss7MAPer/deps/osmo_ss7/src/ss7_service_dump.erl:36: Warning: undefined callback function handle_event/3 (behaviour 'gen_fsm')
/root/ss7MAPer/deps/osmo_ss7/src/ss7_service_dump.erl:36: Warning: undefined callback function handle_info/3 (behaviour 'gen_fsm')
/root/ss7MAPer/deps/osmo_ss7/src/ss7_service_dump.erl:36: Warning: undefined callback function handle_sync_event/4 (behaviour 'gen_fsm')
/root/ss7MAPer/deps/osmo_ss7/src/ss7_service_dump.erl:36: Warning: undefined callback function terminate/3 (behaviour 'gen_fsm')
Compiled src/ss7_service_dump.erl
Compiled src/ss7_routes.erl
/root/ss7MAPer/deps/osmo_ss7/src/ss7_link_m2ua.erl:36: Warning: undefined callback function code_change/3 (behaviour 'gen_server')
/root/ss7MAPer/deps/osmo_ss7/src/ss7_link_m2ua.erl:36: Warning: undefined callback function handle_call/3 (behaviour 'gen_server')
/root/ss7MAPer/deps/osmo_ss7/src/ss7_link_m2ua.erl:36: Warning: undefined callback function handle_cast/2 (behaviour 'gen_server')
/root/ss7MAPer/deps/osmo_ss7/src/ss7_link_m2ua.erl:108: Warning: function tx_sccp_udt/1 is unused
Compiled src/ss7_link_m2ua.erl
/root/ss7MAPer/deps/osmo_ss7/src/ss7_link_m3ua.erl:36: Warning: undefined callback function code_change/3 (behaviour 'gen_server')
/root/ss7MAPer/deps/osmo_ss7/src/ss7_link_m3ua.erl:36: Warning: undefined callback function handle_call/3 (behaviour 'gen_server')
/root/ss7MAPer/deps/osmo_ss7/src/ss7_link_m3ua.erl:36: Warning: undefined callback function handle_info/2 (behaviour 'gen_server')
/root/ss7MAPer/deps/osmo_ss7/src/ss7_link_m3ua.erl:94: Warning: variable 'Args' is unused
/root/ss7MAPer/deps/osmo_ss7/src/ss7_link_m3ua.erl:131: Warning: variable 'P' is unused
/root/ss7MAPer/deps/osmo_ss7/src/ss7_link_m3ua.erl:135: Warning: variable 'State' is unused
/root/ss7MAPer/deps/osmo_ss7/src/ss7_link_m3ua.erl:139: Warning: function tx_sccp_udt/1 is unused
Compiled src/ss7_link_m3ua.erl
/root/ss7MAPer/deps/osmo_ss7/src/sg_asp_sup.erl:40: Warning: variable 'AsSupPid' is unused
/root/ss7MAPer/deps/osmo_ss7/src/sg_asp_sup.erl:40: Warning: variable 'Name' is unused
Compiled src/sg_asp_sup.erl
Compiled src/sg_as_sup.erl
/root/ss7MAPer/deps/osmo_ss7/src/ss7_links.erl:61: Warning: opaque type tid() is not exported
/root/ss7MAPer/deps/osmo_ss7/src/ss7_links.erl:358: Warning: variable 'FromPid' is unused
/root/ss7MAPer/deps/osmo_ss7/src/ss7_links.erl:385: Warning: variable 'FromPid' is unused
/root/ss7MAPer/deps/osmo_ss7/src/ss7_links.erl:390: Warning: variable 'FromPid' is unused
/root/ss7MAPer/deps/osmo_ss7/src/ss7_links.erl:402: Warning: variable 'FromPid' is unused
/root/ss7MAPer/deps/osmo_ss7/src/ss7_links.erl:425: Warning: variable 'FromPid' is unused
/root/ss7MAPer/deps/osmo_ss7/src/ss7_links.erl:442: Warning: variable 'LinksetTbl' is unused
Compiled src/ss7_links.erl
/root/ss7MAPer/deps/osmo_ss7/src/ss7_link_ipa_client.erl:36: Warning: undefined callback function code_change/3 (behaviour 'gen_server')
/root/ss7MAPer/deps/osmo_ss7/src/ss7_link_ipa_client.erl:36: Warning: undefined callback function handle_call/3 (behaviour 'gen_server')
/root/ss7MAPer/deps/osmo_ss7/src/ss7_link_ipa_client.erl:36: Warning: undefined callback function terminate/2 (behaviour 'gen_server')
/root/ss7MAPer/deps/osmo_ss7/src/ss7_link_ipa_client.erl:78: Warning: variable 'LocalIp' is unused
/root/ss7MAPer/deps/osmo_ss7/src/ss7_link_ipa_client.erl:78: Warning: variable 'LocalPort' is unused
Compiled src/ss7_link_ipa_client.erl
/root/ss7MAPer/deps/osmo_ss7/src/sctp_sua.erl:36: Warning: undefined callback function handle_sync_event/4 (behaviour 'sctp_core')
/root/ss7MAPer/deps/osmo_ss7/src/sctp_sua.erl:36: Warning: undefined callback function state_change/2 (behaviour 'sctp_core')
/root/ss7MAPer/deps/osmo_ss7/src/sctp_sua.erl:80: Warning: variable 'State' is unused
/root/ss7MAPer/deps/osmo_ss7/src/sctp_sua.erl:84: Warning: variable 'State' is unused
/root/ss7MAPer/deps/osmo_ss7/src/sctp_sua.erl:88: Warning: variable 'State' is unused
/root/ss7MAPer/deps/osmo_ss7/src/sctp_sua.erl:156: Warning: variable 'LoopDat' is unused
Compiled src/sctp_sua.erl
/root/ss7MAPer/deps/osmo_ss7/src/sctp_m2ua.erl:22: Warning: undefined callback function handle_sync_event/4 (behaviour 'sctp_core')
/root/ss7MAPer/deps/osmo_ss7/src/sctp_m2ua.erl:22: Warning: undefined callback function state_change/2 (behaviour 'sctp_core')
/root/ss7MAPer/deps/osmo_ss7/src/sctp_m2ua.erl:72: Warning: variable 'State' is unused
/root/ss7MAPer/deps/osmo_ss7/src/sctp_m2ua.erl:77: Warning: variable 'State' is unused
/root/ss7MAPer/deps/osmo_ss7/src/sctp_m2ua.erl:80: Warning: variable 'State' is unused
/root/ss7MAPer/deps/osmo_ss7/src/sctp_m2ua.erl:87: Warning: variable 'State' is unused
/root/ss7MAPer/deps/osmo_ss7/src/sctp_m2ua.erl:97: Warning: variable 'State' is unused
/root/ss7MAPer/deps/osmo_ss7/src/sctp_m2ua.erl:138: Warning: variable 'State' is unused
/root/ss7MAPer/deps/osmo_ss7/src/sctp_m2ua.erl:145: Warning: variable 'State' is unused
/root/ss7MAPer/deps/osmo_ss7/src/sctp_m2ua.erl:153: Warning: variable 'State' is unused
/root/ss7MAPer/deps/osmo_ss7/src/sctp_m2ua.erl:160: Warning: variable 'State' is unused
/root/ss7MAPer/deps/osmo_ss7/src/sctp_m2ua.erl:167: Warning: variable 'State' is unused
/root/ss7MAPer/deps/osmo_ss7/src/sctp_m2ua.erl:207: Warning: variable 'M2ua' is unused
/root/ss7MAPer/deps/osmo_ss7/src/sctp_m2ua.erl:208: Warning: variable 'State' is unused
Compiled src/sctp_m2ua.erl
/root/ss7MAPer/deps/osmo_ss7/src/sctp_m2pa.erl:36: Warning: undefined callback function handle_sync_event/4 (behaviour 'sctp_core')
/root/ss7MAPer/deps/osmo_ss7/src/sctp_m2pa.erl:36: Warning: undefined callback function state_change/2 (behaviour 'sctp_core')
/root/ss7MAPer/deps/osmo_ss7/src/sctp_m2pa.erl:95: Warning: variable 'State' is unused
Compiled src/sctp_m2pa.erl
*** ERROR in parse_transform function:
*** Reason = function_clause
*** Location: {exprecs,403}
*** type = function
*** context = {context,osmo_util,undefined,undefined}
*** acc = {pass1,
[primitive],
false,
[{pointcode,
[{typed_record_field,
{record_field,15,{atom,15,repr}},
{user_type,15,pointcode_repr,[]}},
{record_field,16,{atom,16,value}}]},
{primitive,
[{record_field,6,{atom,6,subsystem}},
{record_field,7,{atom,7,gen_name}},
{typed_record_field,
{record_field,8,{atom,8,spec_name}},
{user_type,8,prim_spec_name,[]}},
{record_field,9,{atom,9,parameters}}]}]}
*** form = {function,51,digit_list2int,2,
[{clause,51,
[{var,51,'Int'},{nil,51}],
[],
[{var,52,'Int'}]},
{clause,53,
[{var,53,'Int'},
{cons,53,{var,53,'Digit'},{var,53,'Tail'}}],
[],
[{call,54,
{atom,54,digit_list2int},
[{op,54,'+',
{op,54,'*',{var,54,'Int'},{integer,54,10}},
{var,54,'Digit'}},
{var,54,'Tail'}]}]}]}
*** ERROR in parse_transform function:
*** Reason = function_clause
*** Location: {exprecs,403}
*** type = function
*** context = {context,sccp_codec,undefined,undefined}
*** acc = {pass1,
[global_title,sccp_addr,sccp_msg],
false,
[{sccp_addr,
[{record_field,182,{atom,182,res_nat_use}},
{record_field,183,{atom,183,route_on_ssn}},
{record_field,184,{atom,184,point_code}},
{record_field,185,{atom,185,ssn}},
{record_field,186,{atom,186,global_title}}]},
{global_title,
[{typed_record_field,
{record_field,173,{atom,173,gti}},
{type,173,range,
[{integer,173,0},{integer,173,15}]}},
{typed_record_field,
{record_field,174,
{atom,174,nature_of_addr_ind}},
{type,174,range,
[{integer,174,0},{integer,174,127}]}},
{record_field,175,{atom,175,trans_type}},
{typed_record_field,
{record_field,176,{atom,176,encoding}},
{type,176,range,
[{integer,176,0},{integer,176,15}]}},
{typed_record_field,
{record_field,177,{atom,177,numbering_plan}},
{type,177,range,
[{integer,177,0},{integer,177,15}]}},
{record_field,178,{atom,178,phone_number}}]},
{sccp_msg,
[{typed_record_field,
{record_field,167,{atom,167,msg_type}},
{user_type,167,sccp_msg_type,[]}},
{record_field,168,{atom,168,parameters}}]}]}
*** form = {function,48,binarify,1,
[{clause,48,
[{var,48,'In'}],
[[{call,48,{atom,48,is_binary},[{var,48,'In'}]}]],
[{var,49,'In'}]},
{clause,50,
[{var,50,'In'}],
[[{call,50,{atom,50,is_list},[{var,50,'In'}]}]],
[{call,51,
{atom,51,list_to_binary},
[{var,51,'In'}]}]}]}
/root/ss7MAPer/deps/osmo_ss7/src/osmo_ss7_sup.erl:45: Warning: variable 'Args' is unused
/root/ss7MAPer/deps/osmo_ss7/src/osmo_ss7_sup.erl:54: Warning: variable 'Local' is unused
/root/ss7MAPer/deps/osmo_ss7/src/osmo_ss7_sup.erl:54: Warning: variable 'Remote' is unused
/root/ss7MAPer/deps/osmo_ss7/src/osmo_ss7_sup.erl:60: Warning: variable 'Local' is unused
/root/ss7MAPer/deps/osmo_ss7/src/osmo_ss7_sup.erl:60: Warning: variable 'Remote' is unused
Compiled src/osmo_ss7_sup.erl
/root/ss7MAPer/deps/osmo_ss7/src/osmo_util.erl:51: function_clause
Compiling /root/ss7MAPer/deps/osmo_ss7/src/osmo_util.erl failed:
ERROR: compile failed while processing /root/ss7MAPer/deps/osmo_ss7: rebar_abort

ask again about config file

sorry friend .. i ask again.... hehe โœŒ๏ธ

everything is ok, but when i run : application:start(ss7MAPer).
It's error about config file, then i copy config.example to config .. but got this error ?

2> application:start(ss7MAPer). SCTP Reconnect {127,0,0,1}:2905 SCTP Error {sctp_assoc_change,cant_assoc,0,0,0,0}, reconnecting SCTP Reconnect {127,0,0,1}:2905 SCTP Error {sctp_assoc_change,cant_assoc,0,0,0,0}, reconnecting SCTP Reconnect {127,0,0,1}:2905 SCTP Error {sctp_assoc_change,cant_assoc,0,0,0,0}, reconnecting SCTP Reconnect {127,0,0,1}:2905 SCTP Error {sctp_assoc_change,cant_assoc,0,0,0,0}, reconnecting
my question is, would i must make new config file or use config.example default file ? thanks ...

need help using the software

hello, i will like ton use the ss7maper to test my security by sms interception , can you please provide a documentation or anything as a guide on using the tool to intercept sms

i build file but get error, Admin help me.... Thanks You

osmo_ss7 (compile)
*** ERROR in parse_transform function:
*** Reason = function_clause
*** Location: {exprecs,403}
*** type = function
*** context = {context,sccp_codec,undefined,undefined}
*** acc = {pass1,
[global_title,sccp_addr,sccp_msg],
false,
[{sccp_addr,
[{record_field,182,{atom,182,res_nat_use}},
{record_field,183,{atom,183,route_on_ssn}},
{record_field,184,{atom,184,point_code}},
{record_field,185,{atom,185,ssn}},
{record_field,186,{atom,186,global_title}}]},
{global_title,
[{typed_record_field,
{record_field,173,{atom,173,gti}},
{type,173,range,
[{integer,173,0},{integer,173,15}]}},
{typed_record_field,
{record_field,174,
{atom,174,nature_of_addr_ind}},
{type,174,range,
[{integer,174,0},{integer,174,127}]}},
{record_field,175,{atom,175,trans_type}},
{typed_record_field,
{record_field,176,{atom,176,encoding}},
{type,176,range,
[{integer,176,0},{integer,176,15}]}},
{typed_record_field,
{record_field,177,{atom,177,numbering_plan}},
{type,177,range,
[{integer,177,0},{integer,177,15}]}},
{record_field,178,{atom,178,phone_number}}]},
{sccp_msg,
[{typed_record_field,
{record_field,167,{atom,167,msg_type}},
{user_type,167,sccp_msg_type,[]}},
{record_field,168,{atom,168,parameters}}]}]}
*** form = {function,48,binarify,1,
[{clause,48,
[{var,48,'In'}],
[[{call,48,{atom,48,is_binary},[{var,48,'In'}]}]],
[{var,49,'In'}]},
{clause,50,
[{var,50,'In'}],
[[{call,50,{atom,50,is_list},[{var,50,'In'}]}]],
[{call,51,
{atom,51,list_to_binary},
[{var,51,'In'}]}]}]}
/root/Desktop/Hacking/HackMobile/ss7MAPer/deps/osmo_ss7/src/sccp_codec.erl:48: function_clause
Compiling /root/Desktop/Hacking/HackMobile/ss7MAPer/deps/osmo_ss7/src/sccp_codec.erl failed:
ERROR: compile failed while processing /root/Desktop/Hacking/HackMobile/ss7MAPer/deps/osmo_ss7: rebar_abort

i install it on Kali Linux roll pentest ..... help me

M3UA Link

Hey,

Thanks for this peace of software, I'm trying to use it to check/experiment SS7.
I'm currently having this message after SCTP reconnect:

SCTP Reconnect {1,2,3,4}:1234
ss7_link_m3ua: SCTP_ESTABLISH.ind -> ASP_UP.req
SCRC Init PropList[{sup_pid,<0.68.0>},
{mtp_tx_action,
{callback_fn,#Fun<ss7MAPer.0.6783143>,<0.72.0>}},
{ni,2}]

Waiting for M3UA link ...
Link not ready, sleeping...

I'm trying to understand this step:
Maybe there some communication failure causing this loop.
Like waiting for an answer from our SCTP server, without ever getting it.
Should we manually open the Client Port and route it to ss7MAPer ?

Also, are the sccp / target config need to be correct to allow the M3UA link step, or should we be able to get through this step with only sctp / m3ua settings in config ? (Even if later ones will be failing)

Finally, is there a way to enable or have more logs, to better understand steps.

Thanks !

Installation

Hey Sir does it runs on windows? If not then how to I run it on linux?

ERROR: 'get-deps' failed while processing /root/ss7MAPer/deps/osmo_ss7: rebar_abort

WARN: /root/ss7MAPer/deps/epcap/src/epcap.app.src has version "0.8.1"; requested regex was 0.7.9
==> pkt (get-deps)
==> rel (get-deps)
==> osmo_ss7 (get-deps)
WARN: /root/ss7MAPer/deps/epcap/src/epcap.app.src has version "0.8.1"; requested regex was 0.7.9
WARN: /root/ss7MAPer/deps/epcap/src/epcap.app.src has version "0.8.1"; requested regex was 0.7.9
ERROR: Dependency dir /root/ss7MAPer/deps/epcap failed application validation with reason:
{version_mismatch,{"/root/ss7MAPer/deps/epcap/src/epcap.app.src",
{expected,"0.7.9"},
{has,"0.8.1"}}}.
ERROR: 'get-deps' failed while processing /root/ss7MAPer/deps/osmo_ss7: rebar_abort

Compiling on raspberry pi 3

==> Entering directory /home/pi/ss7MAPer/deps/osmo_ss7' ==> Entering directory/home/pi/ss7MAPer/deps/epcap'
==> Entering directory /home/pi/ss7MAPer/deps/pkt' ==> pkt (compile) ==> Leaving directory/home/pi/ss7MAPer/deps/pkt'
==> epcap (compile)
ERROR: compile failed while processing /home/pi/ss7MAPer/deps/epcap: {'EXIT',
{function_clause,
[{rebar_port_compiler,filter_port_spec,"e",
[{file,"src/rebar_port_compiler.erl"},{line,266}]},
{rebar_port_compiler,'-filter_port_specs/1-lc$^0/1-0-',1,
[{file,"src/rebar_port_compiler.erl"},{line,264}]},
{rebar_port_compiler,get_port_specs,2,
[{file,"src/rebar_port_compiler.erl"},{line,259}]},
{rebar_port_compiler,get_specs,2,
[{file,"src/rebar_port_compiler.erl"},{line,255}]},
{rebar_port_compiler,compile,2,
[{file,"src/rebar_port_compiler.erl"},{line,106}]},
{rebar_core,run_modules,4,[{file,"src/rebar_core.erl"},{line,425}]},
{rebar_core,execute,5,[{file,"src/rebar_core.erl"},{line,359}]},
{rebar_core,process_dir0,6,
[{file,"src/rebar_core.erl"},{line,223}]}]}}

erlang is crashing

=erl_crash_dump:0.3
Tue Oct 31 01:50:06 2017
Slogan: Kernel pid terminated (application_controller) ({application_start_failure,ss7MAPer,{{shutdown,{failed_to_start_child,ss7MAPer,{{badmatch,{error,eprotonosupport}},[{m3ua_core,init,1,[{file,"src/m3ua
System version: Erlang/OTP 18 [erts-7.3] [64-bit] [smp:2:2] [async-threads:10]
Compiled: Mon Mar 14 21:51:02 2016
Taints:
Atoms: 8191
Calling Thread: scheduler:1
=scheduler:1
Scheduler Sleep Info Flags:
Scheduler Sleep Info Aux Work: THR_PRGR_LATER_OP
Current Port:
Run Queue Max Length: 0
Run Queue High Length: 0
Run Queue Normal Length: 0
Run Queue Low Length: 0
Run Queue Port Length: 0
Run Queue Flags: OUT_OF_WORK | HALFTIME_OUT_OF_WORK | NONEMPTY | UNKNOWN(134217728)
Current Process: <0.0.0>
Current Process State: Running
Current Process Internal State: ACT_PRIO_NORMAL | USR_PRIO_NORMAL | PRQ_PRIO_NORMAL | ACTIVE | RUNNING | TRAP_EXIT
Current Process Program counter: 0x00000000036c7b98 (init:sleep/1 + 64)
Current Process CP: 0x0000000000000000 (invalid)
Current Process Limited Stack Trace:
0x0000000002445168:SReturn addr 0x36C4D90 (init:loop/1 + 856)
0x0000000002445170:SReturn addr 0xE838CE98 ()
=scheduler:2
Scheduler Sleep Info Flags: SLEEPING | POLL_SLEEPING | WAITING
Scheduler Sleep Info Aux Work:
Current Port:
Run Queue Max Length: 0
Run Queue High Length: 0
Run Queue Normal Length: 0
Run Queue Low Length: 0
Run Queue Port Length: 0
Run Queue Flags: OUT_OF_WORK | HALFTIME_OUT_OF_WORK
Current Process:
=memory
total: 11287040
processes: 3500104
processes_used: 3477744
system: 7786936
atom: 215345
atom_used: 212239
binary: 49104
code: 4961198
ets: 70504
aaaaaaaaaaaaaaaaaaaaaaaaa
ss7MAPer.zip

Setting up on Kali Linux Light on Chromebook failed

Hello, I am using an acer cb3-111-c8ub, but I flashed a bios onto it and wiped the drive and installed with encrypted lvm. I believe I have followed the instructions completely, but when I am supposed to use the command rebar co, I get an error. I do it in the folder ss7MAPer in my home directory. the erl version is Eshell V7.3.1.1 here is the output of rebar co.

root@kali:/ss7MAPer# rebar co
==> pkt (compile)
==> epcap (compile)
/root/ss7MAPer/deps/epcap/src/sniff.erl:34: can't find include file "pkt.hrl"
/root/ss7MAPer/deps/epcap/src/sniff.erl:94: record ether undefined
/root/ss7MAPer/deps/epcap/src/sniff.erl:95: record ipv4 undefined
/root/ss7MAPer/deps/epcap/src/sniff.erl:99: record ether undefined
/root/ss7MAPer/deps/epcap/src/sniff.erl:100: record ipv4 undefined
/root/ss7MAPer/deps/epcap/src/sniff.erl:103: record ipv4 undefined
/root/ss7MAPer/deps/epcap/src/sniff.erl:159: record tcp undefined
/root/ss7MAPer/deps/epcap/src/sniff.erl:161: variable 'Seqno' is unbound
/root/ss7MAPer/deps/epcap/src/sniff.erl:162: variable 'Ackno' is unbound
/root/ss7MAPer/deps/epcap/src/sniff.erl:163: variable 'Win' is unbound
/root/ss7MAPer/deps/epcap/src/sniff.erl:164: record udp undefined
/root/ss7MAPer/deps/epcap/src/sniff.erl:165: variable 'Ulen' is unbound
/root/ss7MAPer/deps/epcap/src/sniff.erl:166: record icmp undefined
/root/ss7MAPer/deps/epcap/src/sniff.erl:167: variable 'Type' is unbound
/root/ss7MAPer/deps/epcap/src/sniff.erl:168: variable 'Code' is unbound
/root/ss7MAPer/deps/epcap/src/sniff.erl:172: variable 'SPort' is unbound
/root/ss7MAPer/deps/epcap/src/sniff.erl:172: record tcp undefined
/root/ss7MAPer/deps/epcap/src/sniff.erl:173: variable 'SPort' is unbound
/root/ss7MAPer/deps/epcap/src/sniff.erl:173: record udp undefined
/root/ss7MAPer/deps/epcap/src/sniff.erl:174: variable 'DPort' is unbound
/root/ss7MAPer/deps/epcap/src/sniff.erl:174: record tcp undefined
/root/ss7MAPer/deps/epcap/src/sniff.erl:175: variable 'DPort' is unbound
/root/ss7MAPer/deps/epcap/src/sniff.erl:175: record udp undefined
/root/ss7MAPer/deps/epcap/src/sniff.erl:189: record tcp undefined
/root/ss7MAPer/deps/epcap/src/sniff.erl:192: variable 'ACK' is unbound
/root/ss7MAPer/deps/epcap/src/sniff.erl:192: variable 'CWR' is unbound
/root/ss7MAPer/deps/epcap/src/sniff.erl:192: variable 'ECE' is unbound
/root/ss7MAPer/deps/epcap/src/sniff.erl:192: variable 'FIN' is unbound
/root/ss7MAPer/deps/epcap/src/sniff.erl:192: variable 'PSH' is unbound
/root/ss7MAPer/deps/epcap/src/sniff.erl:192: variable 'RST' is unbound
/root/ss7MAPer/deps/epcap/src/sniff.erl:192: variable 'SYN' is unbound
/root/ss7MAPer/deps/epcap/src/sniff.erl:192: variable 'URG' is unbound
Compiling /root/ss7MAPer/deps/epcap/src/sniff.erl failed:
ERROR: compile failed while processing /root/ss7MAPer/deps/epcap: rebar_abort
root@kali:
/ss7MAPer#

I tried rebar generate in /ss7MAPer and it returns it doesnt apply. I tried the same in /root/ss7MAPer/deps/epcap/src/ and it returned the same error.

This is the output if I try to use rebar shell anyway

root@kali:/ss7MAPer# rebar shell
==> ss7MAPer (shell)
ERROR: shell failed while processing /root/ss7MAPer: {'EXIT',{{badmatch,{error,bad_directory}},
[{rebar_shell,shell,2,[{file,"src/rebar_shell.erl"},{line,43}]},
{rebar_core,run_modules,4,[{file,"src/rebar_core.erl"},{line,493}]},
{rebar_core,execute,6,[{file,"src/rebar_core.erl"},{line,418}]},
{rebar_core,maybe_execute,8,
[{file,"src/rebar_core.erl"},{line,302}]},
{rebar_core,process_dir1,7,[{file,"src/rebar_core.erl"},{line,261}]},
{rebar_core,process_commands,2,
[{file,"src/rebar_core.erl"},{line,93}]},
{rebar,main,1,[{file,"src/rebar.erl"},{line,58}]},
{escript,run,2,[{file,"escript.erl"},{line,757}]}]}}
root@kali:
/ss7MAPer#

error ei.h

Compiling /root/Desktop/ss7MAPer/deps/epcap/c_src/epcap.c
root/Desktop/ss7MAPer/deps/epcap/c_src/epcap.c:32:16: fatal error: ei.h:No such file or directory
comoilation terminated.
ERROR:compile failed while processing /root/Desktop/ss7MAPer/deps/epcap/c_src/epcap: rebar_avort

Which file is ei.h?
erlang is 18
Ei.h is not a library file for Erlang๏ผŸ๏ผŸ

rebar shell not opening

says => Command 'shell' not understood or not applicable
at rebar shell
is there any thing we can do ?

Ss7

Hi friends!
Actually I want to test ss7 method on my family mobiles and want to receive calls and sms for testing using ss7 method. But the problem is that I dont know much about ss7.
Can someone plese tell me what are the requiremets(softwares and hardwares) for this purpose?
Secondly, I want to about an article. I read about ss7 mapper in this site. What is that? And what to do with that code? I cannot be able to understand how and where to use that code? Can someone guide me completely about this? Please someone help me and tell me the complete procedure in easy english step by step. Thanks

Error: eprotonosupport

Hello, I'm not sure if that is an error with the application or just a connection error. I see it says "eprotonosupport". Is this an m3ua connection problem or something that isn't well compiled?

Thanks

root@ubuntu:/opt/ss7MAPer/rel/ss7MAPer/bin# ./ss7MAPer console
Exec: /opt/ss7MAPer/rel/ss7MAPer/erts-7.3/bin/erlexec  -boot /opt/ss7MAPer/rel/ss7MAPer/releases/1/ss7MAPer -mode embedded -config /opt/ss7MAPer/rel/ss7MAPer/releases/1/sys.config -args_file /opt/ss7MAPer/rel/ss7MAPer/releases/1/vm.args -- console
Root: /opt/ss7MAPer/rel/ss7MAPer
Erlang/OTP 18 [erts-7.3] [source] [64-bit] [smp:40:40] [async-threads:10] [hipe] [kernel-poll:false]

terminating ss7_routes with reason {{badmatch,{error,eprotonosupport}},
                                    [{m3ua_core,init,1,
                                      [{file,"src/m3ua_core.erl"},{line,107}]},
                                     {gen_fsm,init_it,6,
                                      [{file,"gen_fsm.erl"},{line,378}]},
                                     {proc_lib,init_p_do_apply,3,
                                      [{file,"proc_lib.erl"},{line,240}]}]}terminating ss7_links with reason {{badmatch,{error,eprotonosupport}},
                                   [{m3ua_core,init,1,
                                     [{file,"src/m3ua_core.erl"},{line,107}]},
                                    {gen_fsm,init_it,6,
                                     [{file,"gen_fsm.erl"},{line,378}]},
                                    {proc_lib,init_p_do_apply,3,
                                     [{file,"proc_lib.erl"},{line,240}]}]}
=ERROR REPORT==== 24-Nov-2016::02:23:30 ===
** Generic server ss7_links terminating 
** Last message in was {'EXIT',<0.878.0>,
                           {{badmatch,{error,eprotonosupport}},
                            [{m3ua_core,init,1,
                                 [{file,"src/m3ua_core.erl"},{line,107}]},
                             {gen_fsm,init_it,6,
                                 [{file,"gen_fsm.erl"},{line,378}]},
                             {proc_lib,init_p_do_apply,3,
                                 [{file,"proc_lib.erl"},{line,240}]}]}}
** When Server state == {su_state,ss7_linksets,ss7_link_table,mtp3_services}
** Reason for termination == 
** {terminated,[{io,format,
                    [<0.875.0>,"terminating ~p with reason ~p",
                     [ss7_links,
                      {{badmatch,{error,eprotonosupport}},
                       [{m3ua_core,init,1,
                                   [{file,"src/m3ua_core.erl"},{line,107}]},
                        {gen_fsm,init_it,6,[{file,"gen_fsm.erl"},{line,378}]},
                        {proc_lib,init_p_do_apply,3,
                                  [{file,"proc_lib.erl"},{line,240}]}]}]],
                    []},
                {ss7_links,terminate,2,
                           [{file,"src/ss7_links.erl"},{line,458}]},
                {gen_server,try_terminate,3,
                            [{file,"gen_server.erl"},{line,643}]},
                {gen_server,terminate,7,[{file,"gen_server.erl"},{line,809}]},
                {proc_lib,init_p_do_apply,3,
                          [{file,"proc_lib.erl"},{line,240}]}]}
Eshell V7.3  (abort with ^G)
([email protected])1> 
=ERROR REPORT==== 24-Nov-2016::02:23:30 ===
** Generic server ss7_routes terminating 
** Last message in was {'EXIT',<0.878.0>,
                           {{badmatch,{error,eprotonosupport}},
                            [{m3ua_core,init,1,
                                 [{file,"src/m3ua_core.erl"},{line,107}]},
                             {gen_fsm,init_it,6,
                                 [{file,"gen_fsm.erl"},{line,378}]},
                             {proc_lib,init_p_do_apply,3,
                                 [{file,"proc_lib.erl"},{line,240}]}]}}
** When Server state == {sr_state,ss7_routes}
** Reason for termination == 
** {terminated,[{io,format,
                    [<0.875.0>,"terminating ~p with reason ~p",
                     [ss7_routes,
                      {{badmatch,{error,eprotonosupport}},
                       [{m3ua_core,init,1,
                                   [{file,"src/m3ua_core.erl"},{line,107}]},
                        {gen_fsm,init_it,6,[{file,"gen_fsm.erl"},{line,378}]},
                        {proc_lib,init_p_do_apply,3,
                                  [{file,"proc_lib.erl"},{line,240}]}]}]],
                    []},
                {ss7_routes,terminate,2,
                            [{file,"src/ss7_routes.erl"},{line,170}]},
                {gen_server,try_terminate,3,
                            [{file,"gen_server.erl"},{line,643}]},
                {gen_server,terminate,7,[{file,"gen_server.erl"},{line,809}]},
                {proc_lib,init_p_do_apply,3,
                          [{file,"proc_lib.erl"},{line,240}]}]}

=INFO REPORT==== 24-Nov-2016::02:23:30 ===
    application: ss7MAPer
    exited: {{shutdown,
                 {failed_to_start_child,ss7MAPer,
                     {{badmatch,{error,eprotonosupport}},
                      [{m3ua_core,init,1,
                           [{file,"src/m3ua_core.erl"},{line,107}]},
                       {gen_fsm,init_it,6,[{file,"gen_fsm.erl"},{line,378}]},
                       {proc_lib,init_p_do_apply,3,
                           [{file,"proc_lib.erl"},{line,240}]}]}}},
             {ss7MAPer_app,start,[normal,["./config"]]}}
    type: permanent
{"Kernel pid terminated",application_controller,"{application_start_failure,ss7MAPer,{{shutdown,{failed_to_start_child,ss7MAPer,{{badmatch,{error,eprotonosupport}},[{m3ua_core,init,1,[{file,\"src/m3ua_core.erl\"},{line,107}]},{gen_fsm,init_it,6,[{file,\"gen_fsm.erl\"},{line,378}]},{proc_lib,init_p_do_apply,3,[{file,\"proc_lib.erl\"},{line,240}]}]}}},{ss7MAPer_app,start,[normal,[\"./config\"]]}}}"}

Crash dump is being written to: erl_crash.dump...done
Kernel pid terminated (application_controller) ({application_start_failure,ss7MAPer,{{shutdown,{failed_to_start_child,ss7MAPer,{{badmatch,{error,eprotonosupport}},[{m3ua_core,init,1,[{file,"src/m3ua

osmo_ss7 (compile)

windos:ss7MAPer pengbo$ ./rebar co
==> Entering directory /Users/pengbo/git/ss7MAPer/deps/osmo_ss7' ==> Entering directory /Users/pengbo/git/ss7MAPer/deps/epcap'
==> Entering directory `/Users/pengbo/git/ss7MAPer/deps/pkt'
WARNING: deprecated port_envs option used
Option 'port_envs' has been deprecated
in favor of 'port_env'.
'port_envs' will be removed soon.

==> pkt (compile)
WARNING: deprecated so_name option used
Option 'so_name' has been deprecated
in favor of 'port_specs'.
'so_name' will be removed soon.

==> Leaving directory `/Users/pengbo/git/ss7MAPer/deps/pkt'
WARNING: deprecated port_envs option used
Option 'port_envs' has been deprecated
in favor of 'port_env'.
'port_envs' will be removed soon.

==> epcap (compile)
WARNING: deprecated so_name option used
Option 'so_name' has been deprecated
in favor of 'port_specs'.
'so_name' will be removed soon.

==> Leaving directory /Users/pengbo/git/ss7MAPer/deps/epcap' ==> Entering directory /Users/pengbo/git/ss7MAPer/deps/osmo_ss7/rel'
==> rel (compile)
==> Leaving directory `/Users/pengbo/git/ss7MAPer/deps/osmo_ss7/rel'
==> osmo_ss7 (compile)
*** ERROR in parse_transform function:
*** Reason = function_clause
*** Location: {exprecs,403}
*** type = function
*** context = {context,isup_codec,undefined,undefined}
*** acc = {pass1,
[party_number,isup_msg],
false,
[{isup_msg,
[{typed_record_field,
{record_field,111,{atom,111,msg_type}},
{type,111,non_neg_integer,[]}},
{typed_record_field,
{record_field,112,{atom,112,cic}},
{user_type,112,isup_cic,[]}},
{typed_record_field,
{record_field,113,{atom,113,parameters}},
{type,113,list,[]}}]},
{party_number,
[{record_field,99,{atom,99,nature_of_addr_ind}},
{record_field,100,{atom,100,internal_net_num}},
{record_field,101,{atom,101,number_incompl_ind}},
{record_field,102,{atom,102,numbering_plan}},
{record_field,103,{atom,103,present_restrict}},
{record_field,104,{atom,104,screening_ind}},
{record_field,105,{atom,105,phone_number}}]}]}
*** form = {function,46,parse_isup_party,3,
[{clause,46,
[{bin,46,[]},{var,46,'OddEven'},{var,46,'DigitList'}],
[],
[{'case',48,
{var,48,'OddEven'},
[{clause,49,
[{integer,49,1}],
[],
[{call,50,
{remote,50,{atom,50,lists},{atom,50,sublist}},
[{var,50,'DigitList'},
{op,50,'-',
{call,50,{atom,50,length},[{var,50,'DigitList'}]},
{integer,50,1}}]}]},
{clause,51,
[{integer,51,0}],
[],
[{var,52,'DigitList'}]}]}]},
{clause,54,
[{var,54,'BcdBin'},
{var,54,'OddEven'},
{var,54,'DigitList'}],
[],
[{match,55,
{bin,55,
[{bin_element,55,
{var,55,'Second'},
{integer,55,4},
default},
{bin_element,55,
{var,55,'First'},
{integer,55,4},
default},
{bin_element,55,{var,55,'Remain'},default,[binary]}]},
{var,55,'BcdBin'}},
{match,56,
{var,56,'NewDigits'},
{cons,56,
{var,56,'First'},
{cons,56,{var,56,'Second'},{nil,56}}}},
{call,57,
{atom,57,parse_isup_party},
[{var,57,'Remain'},
{var,57,'OddEven'},
{op,57,'++',
{var,57,'DigitList'},
{var,57,'NewDigits'}}]}]}]}
src/isup_codec.erl:46: function_clause

when i did ./rebar co . this is happened

so,pls where is wrong?

ERL version : Erlang/OTP 19 [erts-8.3] [source-d5c06c6] [64-bit] [smp:8:8] [async-threads:10] [kernel-poll:false]
OS : MAC OS Sierra 10.12.3

Compile Error Fix

root@wattos:~/Desktop/ss7MAPer# rebar co
==> pkt (compile)
==> epcap (compile)
Compiling /home/pen/Desktop/ss7MAPer/deps/epcap/c_src/epcap.c
In file included from /home/pen/Desktop/ss7MAPer/deps/epcap/c_src/epcap.c:34:0:
c_src/epcap.h:42:18: fatal error: pcap.h: No such file or directory
compilation terminated.
ERROR: compile failed while processing /home/pen/Desktop/ss7MAPer/deps/epcap: rebar_abort

if users are not use pentest distro like kali or backbox then need pcap.h ( Header File )
So I suggest you add readme. like this

sudo apt-get install libpcap-dev

Or download this url

http://packages.ubuntu.com/hardy/libpcap-dev

Thanks.

Illegal instruction

root@kali:~# git clone https://github.com/ernw/ss7MAPer.git
root@kali:~# tar -jxvf ss7MAPer-v0.2_linux_x64.tar.bz2

root@kali:~# git clone git://github.com/rebar/rebar.git


root@kali:~# cd rebar
root@kali:~/rebar# ./bootstrap
No beam files found.
Recompile: src/rebar
Recompile: src/rebar_abnfc_compiler
Recompile: src/rebar_app_utils
โ€ฆโ€ฆโ€ฆโ€ฆโ€ฆโ€ฆโ€ฆโ€ฆโ€ฆโ€ฆโ€ฆโ€ฆโ€ฆโ€ฆโ€ฆโ€ฆโ€ฆโ€ฆโ€ฆโ€ฆโ€ฆโ€ฆโ€ฆ
Recompile: src/rebar_utils
Recompile: src/rebar_xref
Recompile: src/rmemo
==> rebar (compile)
==> rebar (escriptize)
Congratulations! You now have a self-contained script called "rebar" in
your current working directory. Place this script anywhere in your path
and you can use rebar to build OTP-compliant apps.

root@kali:~/rebar# cd ../ss7MAPer

root@kali:~/ss7MAPer# mv ../rebar/rebar ./

root@kali:~/ss7MAPer# vi rebar.config

{erl_opts, [debug_info]}.
{deps, [
		{osmo_ss7, "1", {git, "git://git.osmocom.org/erlang/osmo_ss7/", "master"}},
		{osmo_sccp, "1", {git, "git://git.osmocom.org/erlang/osmo_sccp/", "master"}},
		{osmo_map, "1", {git, "git://git.osmocom.org/erlang/osmo_map/", "master"}}
	]}.
{eunit_opts, [verbose, {report,{eunit_surefire,[{dir,"."}]}}]}.
{sub_dirs, ["rel"]}.


root@kali:~/rebar# cd /usr/local/bin
root@kali:/usr/local/bin# ln -s ~/rebar/rebar /usr/local/bin/rebar

root@kali:~/ss7MAPer# ./rebar get-deps
==> ss7MAPer (get-deps)
==> rel (get-deps)
==> osmo_ss7 (get-deps)
==> epcap (get-deps)
==> pkt (get-deps)
==> osmo_sccp (get-deps)
==> osmo_map (get-deps)



root@kali:~/ss7MAPer#cd ~/ss7MAPer/deps/osmo_map/

root@kali:~/ss7MAPer/deps/osmo_map# patch -p1 < ../../patches/osmo_map.patch
(Stripping trailing CRs from patch; use --binary to disable.)
patching file asn1/MAP-Contracts.asn
(Stripping trailing CRs from patch; use --binary to disable.)
patching file ebin/osmo_map.app
(Stripping trailing CRs from patch; use --binary to disable.)
patching file rebar.config
(Stripping trailing CRs from patch; use --binary to disable.)
patching file src/map_dlg_server.erl
(Stripping trailing CRs from patch; use --binary to disable.)
patching file src/map_helper.erl
(Stripping trailing CRs from patch; use --binary to disable.)
patching file src/map_ss_server.erl


root@kali:~/ss7MAPer/deps/osmo_map# cd ../osmo_sccp/

root@kali:~/ss7MAPer/deps/osmo_sccp# patch -p1 < ../../patches/osmo_sccp.patch
(Stripping trailing CRs from patch; use --binary to disable.)
patching file ebin/osmo_sccp.app
(Stripping trailing CRs from patch; use --binary to disable.)
patching file rebar.config
(Stripping trailing CRs from patch; use --binary to disable.)
patching file src/osmo_sccp_tcap.erl
(Stripping trailing CRs from patch; use --binary to disable.)
patching file src/sccp_scrc.erl
(Stripping trailing CRs from patch; use --binary to disable.)
patching file src/sccp_user.erl

root@kali:~/ss7MAPer/deps/osmo_sccp# cd ../osmo_ss7/

root@kali:~/ss7MAPer/deps/osmo_ss7# patch -p1 < ../../patches/osmo_ss7.patch
(Stripping trailing CRs from patch; use --binary to disable.)
patching file include/osmo_ss7.hrl
(Stripping trailing CRs from patch; use --binary to disable.)
patching file include/sccp.hrl
(Stripping trailing CRs from patch; use --binary to disable.)
patching file src/m3ua_codec.erl
(Stripping trailing CRs from patch; use --binary to disable.)
patching file src/m3ua_core.erl
(Stripping trailing CRs from patch; use --binary to disable.)
patching file src/sccp_codec.erl
(Stripping trailing CRs from patch; use --binary to disable.)
patching file src/sctp_core.erl
(Stripping trailing CRs from patch; use --binary to disable.)
patching file src/ss7_link_m3ua.erl
(Stripping trailing CRs from patch; use --binary to disable.)
patching file src/ss7_links.erl
(Stripping trailing CRs from patch; use --binary to disable.)
patching file src/ss7_routes.erl



root@kali:~/ss7MAPer/deps/osmo_ss7# cd ../epcap/
root@kali:~/ss7MAPer/deps/epcap# vi rebar.config


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

change๏ผ

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



root@kali:~/ss7MAPer/deps/epcap# cd ..
root@kali:~/ss7MAPer/deps# git clone http://cgit.osmocom.org/erlang/signerl/
Cloning into 'signerl'...





root@kali:~/ss7MAPer/deps# cd signerl/TCAP/asn_src/ITU/

root@kali:~/ss7MAPer/deps/signerl/TCAP/asn_src/ITU# make
erlc  -W -b ber_bin +optimize +debug_info Remote-Operations-Information-Objects.asn Remote-Operations-Generic-ROS-PDUs.asn Remote-Operations-Useful-Definitions.asn
Warning: The option 'ber_bin' is now called 'ber'.
Warning: The option 'optimize' is no longer needed.
Warning: The option 'ber_bin' is now called 'ber'.
Warning: The option 'optimize' is no longer needed.
Wrong format of type/value false/{'Externalvaluereference',144,
                                     'Remote-Operations-Generic-ROS-PDUs',
                                     noInvokeId}
Warning: The option 'ber_bin' is now called 'ber'.
Warning: The option 'optimize' is no longer needed.
erlc  -W -b ber_bin +optimize +debug_info TCAPMessages.asn
Warning: The option 'ber_bin' is now called 'ber'.
Warning: The option 'optimize' is no longer needed.
erlc  -W -b ber_bin +optimize +debug_info TR.asn
Warning: The option 'ber_bin' is now called 'ber'.
Warning: The option 'optimize' is no longer needed.
erlc -b beam -W -v +warn_unused_vars +debug_info -o ../../ebin/itu TR.erl
TR.erl:57: Warning: variable 'Reason' is unused
TR.erl:71: Warning: variable 'Reason' is unused
TR.erl:662: Warning: variable 'Arg' is unused
erlc  -W -b ber_bin +optimize +debug_info TC.asn
Warning: The option 'ber_bin' is now called 'ber'.
Warning: The option 'optimize' is no longer needed.
erlc -b beam -W -v +warn_unused_vars +debug_info -o ../../ebin/itu TC.erl
TC.erl:71: Warning: variable 'Reason' is unused
TC.erl:85: Warning: variable 'Reason' is unused
TC.erl:886: Warning: variable 'Arg' is unused
erlc -b beam -W -v +warn_unused_vars +debug_info -o ../../ebin/itu TCAPMessages.erl
TCAPMessages.erl:57: Warning: variable 'Reason' is unused
TCAPMessages.erl:71: Warning: variable 'Reason' is unused
TCAPMessages.erl:490: Warning: variable 'Arg' is unused
erlc  -W -b ber_bin +optimize +debug_info DialoguePDUs.asn
Warning: The option 'ber_bin' is now called 'ber'.
Warning: The option 'optimize' is no longer needed.
erlc -b beam -W -v +warn_unused_vars +debug_info -o ../../ebin/itu DialoguePDUs.erl
DialoguePDUs.erl:71: Warning: variable 'Reason' is unused
DialoguePDUs.erl:85: Warning: variable 'Reason' is unused
DialoguePDUs.erl:997: Warning: variable 'Arg' is unused
erlc  -W -b ber_bin +optimize +debug_info UnidialoguePDUs.asn
Warning: The option 'ber_bin' is now called 'ber'.
Warning: The option 'optimize' is no longer needed.
erlc -b beam -W -v +warn_unused_vars +debug_info -o ../../ebin/itu UnidialoguePDUs.erl
UnidialoguePDUs.erl:53: Warning: variable 'Reason' is unused
UnidialoguePDUs.erl:67: Warning: variable 'Reason' is unused
UnidialoguePDUs.erl:394: Warning: variable 'Arg' is unused
erlc  -W -b ber_bin +optimize +debug_info TC-TMP.asn
Warning: The option 'ber_bin' is now called 'ber'.
Warning: The option 'optimize' is no longer needed.
erlc  -W -b ber_bin +optimize +debug_info TC-Testing-User.asn
Warning: The option 'ber_bin' is now called 'ber'.
Warning: The option 'optimize' is no longer needed.
erlc -b beam -W -v +warn_unused_vars +debug_info -o ../../ebin/itu TC-Testing-User.erl
TC-Testing-User.erl:276: Warning: variable 'Arg' is unused
erlc  -W -b ber_bin +optimize +debug_info TCAP-Examples.asn
Warning: The option 'ber_bin' is now called 'ber'.
Warning: The option 'optimize' is no longer needed.
erlc -b beam -W -v +warn_unused_vars +debug_info -o ../../ebin/itu TCAP-Examples.erl
TCAP-Examples.erl:77: Warning: variable 'Reason' is unused
TCAP-Examples.erl:91: Warning: variable 'Reason' is unused
TCAP-Examples.erl:523: Warning: variable 'Arg' is unused
erlc  -W -b ber_bin +optimize +debug_info TCAP-Tools.asn
Warning: The option 'ber_bin' is now called 'ber'.
Warning: The option 'optimize' is no longer needed.
erlc -b beam -W -v +warn_unused_vars +debug_info -o ../../ebin/itu TCAP-Tools.erl
TCAP-Tools.erl:56: Warning: variable 'Reason' is unused
TCAP-Tools.erl:70: Warning: variable 'Reason' is unused
TCAP-Tools.erl:262: Warning: variable 'Arg' is unused
rm TC.erl


root@kali:~/ss7MAPer/deps/signerl/TCAP/asn_src/ITU# cp -rl ~/ss7MAPer/deps/signerl/TCAP/asn_src/ITU/* ~/ss7MAPer/deps/osmo_sccp/src/


root@kali:~/ss7MAPer/deps/signerl/TCAP/asn_src/ITU# mkdir ~/ss7MAPer/deps/epcap/deps
root@kali:~/ss7MAPer/deps/signerl/TCAP/asn_src/ITU# ln -sd ~/ss7MAPer/deps/pkt ~/ss7MAPer/deps/epcap/deps/pkt

root@kali:~/ss7MAPer/deps/signerl/TCAP/asn_src/ITU# mkdir ~/ss7MAPer/deps/osmo_sccp/deps
root@kali:~/ss7MAPer/deps/signerl/TCAP/asn_src/ITU# ln -sd ~/ss7MAPer/deps/osmo_ss7 ~/ss7MAPer/deps/osmo_sccp/deps/osmo_ss7
root@kali:~/ss7MAPer/deps/signerl/TCAP/asn_src/ITU# ln -sd ~/ss7MAPer/deps/epcap ~/ss7MAPer/deps/osmo_sccp/deps/epcap
root@kali:~/ss7MAPer/deps/signerl/TCAP/asn_src/ITU# ln -sd ~/ss7MAPer/deps/pkt ~/ss7MAPer/deps/osmo_sccp/deps/pkt
root@kali:~/ss7MAPer/deps/signerl/TCAP/asn_src/ITU# ln -sd ~/ss7MAPer/deps/signerl/MAP ~/ss7MAPer/deps/osmo_sccp/deps/MAP
root@kali:~/ss7MAPer/deps/signerl/TCAP/asn_src/ITU# ln -sd ~/ss7MAPer/deps/signerl/SCCP ~/ss7MAPer/deps/osmo_sccp/deps/SCCP
root@kali:~/ss7MAPer/deps/signerl/TCAP/asn_src/ITU# ln -sd ~/ss7MAPer/deps/signerl/TCAP ~/ss7MAPer/deps/osmo_sccp/deps/TCAP

root@kali:~/ss7MAPer/deps/signerl/TCAP/asn_src/ITU# mkdir ~/ss7MAPer/deps/osmo_map/deps
root@kali:~/ss7MAPer/deps/signerl/TCAP/asn_src/ITU# ln -sd ~/ss7MAPer/deps/osmo_ss7 ~/ss7MAPer/deps/osmo_map/deps/osmo_ss7
root@kali:~/ss7MAPer/deps/signerl/TCAP/asn_src/ITU# ln -sd ~/ss7MAPer/deps/epcap ~/ss7MAPer/deps/osmo_map/deps/epcap
root@kali:~/ss7MAPer/deps/signerl/TCAP/asn_src/ITU# ln -sd ~/ss7MAPer/deps/pkt ~/ss7MAPer/deps/osmo_map/deps/pkt


root@kali:~/ss7MAPer/deps/signerl/TCAP/asn_src/ITU# cp ~/ss7MAPer/deps/signerl/SCCP/itu/include/sccp.hrl ~/ss7MAPer/deps/osmo_sccp/src/
root@kali:~/ss7MAPer/deps/signerl/TCAP/asn_src/ITU# cp ~/ss7MAPer/deps/signerl/TCAP/include/tcap.hrl ~/ss7MAPer/deps/osmo_map/src/


root@kali:~/ss7MAPer/deps/signerl/TCAP/asn_src/ITU# cd /usr/local/bin/
root@kali:/usr/local/bin# ln -s ~/rebar/rebar /usr/local/bin/rebar



root@kali:/usr/local/bin# cd ~/ss7MAPer/
root@kali:~/ss7MAPer# ./rebar co

==> root (compile)

root@kali:~# cd ss7MAPer/
root@kali:~/ss7MAPer# ./rebar shell
==> ss7MAPer (shell)
Erlang/OTP 18 [erts-7.3] [source] [64-bit] [async-threads:10] [hipe] [kernel-poll:false]	
Eshell V7.3  (abort with ^G)
1> application:start(sasl).
	ok
			
	=PROGRESS REPORT==== 29-Jan-2019::05:32:48 ===
		 supervisor: {local,sasl_safe_sup}
		 started: [{pid,<0.60.0>},
			     {id,alarm_handler},
			     {mfargs,{alarm_handler,start_link,[]}},
			     {restart_type,permanent},
			     {shutdown,2000},
			     {child_type,worker}]
			
	=PROGRESS REPORT==== 29-Jan-2019::05:32:48 ===
		supervisor: {local,sasl_safe_sup}
		started: [{pid,<0.61.0>},
			      {id,overload},
			      {mfargs,{overload,start_link,[]}},
			      {restart_type,permanent},
			      {shutdown,2000},
			      {child_type,worker}]
2> 
	=PROGRESS REPORT==== 29-Jan-2019::05:32:48 ===
		supervisor: {local,sasl_sup}
		started: [{pid,<0.59.0>},
			       {id,sasl_safe_sup},
			       {mfargs,
			               {supervisor,start_link,
			                       [{local,sasl_safe_sup},sasl,safe]}},
			       {restart_type,permanent},
			       {shutdown,infinity},
			       {child_type,supervisor}]
			
	=PROGRESS REPORT==== 29-Jan-2019::05:32:48 ===
		supervisor: {local,sasl_sup}
		started: [{pid,<0.62.0>},
			       {id,release_handler},
			       {mfargs,{release_handler,start_link,[]}},
			       {restart_type,permanent},
			       {shutdown,2000},
			       {child_type,worker}]
			
	=PROGRESS REPORT==== 29-Jan-2019::05:32:48 ===
		application: sasl
		started_at: nonode@nohost



			2> application:start(ss7MAPer).
			
			=PROGRESS REPORT==== 29-Jan-2019::05:34:20 ===
			         application: ss7MAPer
			          started_at: nonode@nohost
			ok

root@kali:~/ss7MAPer# ./bin/ss7MAPer console
Exec: /root/ss7MAPer/erts-7.3/bin/erlexec -boot /root/ss7MAPer/releases/1/ss7MAPer -mode embedded -config /root/ss7MAPer/releases/1/sys.config -args_file /root/ss7MAPer/releases/1/vm.args -- console
Root: /root/ss7MAPer
Illegal instruction

Erlang == 18.3
kali

how to solve the problem

illegal instruction (core dumped)

I have installed ss7MAPer on Ubuntu 18.04 LST and when I try to lunch the console it shows me that message :illegal instruction (core dumped) !!!

Did any body known how to fix this issue out there ?

rebar_core

Compiled src/sniff.erl
Uncaught error in rebar_core: {'EXIT',
{badarg,
[{io,format,
[standard_error,
"ERROR: ~p failed while processing ~s: ~s\n",
[compile,
[47,104,111,109,101,47,102,117,47,26700,
38754,47,115,115,55,77,65,80,101,114,47,
100,101,112,115,47,101,112,99,97,112],
[123,
["'EXIT'",44,
[123,
["badarg",44,
[91,
[[123,
["io",44,"format",44,10,
[" "," ",32,
[[" ",32,32]," ",32,32],
[[" ",32,32]," ",32,32]],
[91,
["<0.25.0>",44,
""Compiling ~s\n"",44,10,
[32," "," ",32,
[[" ",32,32]," ",32,32],
[[" ",32,32]," ",32,32]],
[91,
[[91,
["47",44,"104",44,"111",44,
"109",44,"101",44,"47",44,
"102",44,"117",44,"47",44,
"26700",44,"38754",44,"47",
44,"115",44,10,
[32,32,32," "," ",32,
[[" ",32,32]," ",32,32],
[[" ",32,32]," ",32,32]],
"115",44,"55",44,"77",44,
"65",44,"80",44,"101",44,
"114",44,"47",44,"100",44,
"101",44,"112",44,"115",44,
"47",44,"101",44,"112",44,
10,
[32,32,32," "," ",32,
[[" ",32,32]," ",32,32],
[[" ",32,32]," ",32,32]],
"99",44,"97",44,"112",44,
"47",44,"99",44,"95",44,
"115",44,"114",44,"99",44,
"47",44,"101",44,"112",44,
"99",44,"97",44,"112",44,
"46",44,10,
[32,32,32," "," ",32,
[[" ",32,32]," ",32,32],
[[" ",32,32]," ",32,32]],
"99"],
93]],
93]],
93],
44,10,
[" "," ",32,
[[" ",32,32]," ",32,32],
[[" ",32,32]," ",32,32]],
"[]"],
125],
44,10,
[32,
[[" ",32,32]," ",32,32],
[[" ",32,32]," ",32,32]],
[123,
["rebar_port_compiler",44,
"exec_compiler",44,"4",44,10,
[[32,
[[32," ",32,32],32," ",32,32],
[32," ",32,32],
32," ",32,32],
32,
[[" ",32,32]," ",32,32],
[[" ",32,32]," ",32,32]],
[91,
[[123,
["file",44,
""src/rebar_port_compiler.erl""],
125],
44,10,
[32,
[32,
[[32," ",32,32],
32," ",32,32],
[32," ",32,32],
32," ",32,32],
32,
[[" ",32,32]," ",32,32],
[[" ",32,32]," ",32,32]],
[123,["line",44,"294"],125]],
93]],
125],
44,10,
[32,
[[" ",32,32]," ",32,32],
[[" ",32,32]," ",32,32]],
[123,
["rebar_port_compiler",44,
"compile_each",44,"5",44,10,
[[32,
[[32," ",32,32],32," ",32,32],
[32," ",32,32],
32," ",32,32],
32,
[[" ",32,32]," ",32,32],
[[" ",32,32]," ",32,32]],
[91,
[[123,
["file",44,
""src/rebar_port_compiler.erl""],
125],
44,10,
[32,
[32,
[[32," ",32,32],
32," ",32,32],
[32," ",32,32],
32," ",32,32],
32,
[[" ",32,32]," ",32,32],
[[" ",32,32]," ",32,32]],
[123,["line",44,"251"],125]],
93]],
125],
44,10,
[32,
[[" ",32,32]," ",32,32],
[[" ",32,32]," ",32,32]],
[123,
["lists",44,"foldl",44,"3",44,
[91,
[[123,
["file",44,""lists.erl""],
125],
44,
[123,["line",44,"1262"],125]],
93]],
125],
44,10,
[32,
[[" ",32,32]," ",32,32],
[[" ",32,32]," ",32,32]],
[123,
["rebar_port_compiler",44,
"compile_sources",44,"3",44,10,
[[32,
[[32," ",32,32],32," ",32,32],
[32," ",32,32],
32," ",32,32],
32,
[[" ",32,32]," ",32,32],
[[" ",32,32]," ",32,32]],
[91,
[[123,
["file",44,
""src/rebar_port_compiler.erl""],
125],
44,10,
[32,
[32,
[[32," ",32,32],
32," ",32,32],
[32," ",32,32],
32," ",32,32],
32,
[[" ",32,32]," ",32,32],
[[" ",32,32]," ",32,32]],
[123,["line",44,"220"],125]],
93]],
125],
44,10,
[32,
[[" ",32,32]," ",32,32],
[[" ",32,32]," ",32,32]],
[123,
["rebar_port_compiler",44,
"compile",44,"2",44,10,
[[32,
[[32," ",32,32],32," ",32,32],
[32," ",32,32],
32," ",32,32],
32,
[[" ",32,32]," ",32,32],
[[" ",32,32]," ",32,32]],
[91,
[[123,
["file",44,
""src/rebar_port_compiler.erl""],
125],
44,10,
[32,
[32,
[[32," ",32,32],
32," ",32,32],
[32," ",32,32],
32," ",32,32],
32,
[[" ",32,32]," ",32,32],
[[" ",32,32]," ",32,32]],
[123,["line",44,"58"],125]],
93]],
125],
44,10,
[32,
[[" ",32,32]," ",32,32],
[[" ",32,32]," ",32,32]],
[123,
["rebar_core",44,"run_modules",44,
"4",44,10,
[[[" ",32,32,32]," ",32,32,32],
32,
[[" ",32,32]," ",32,32],
[[" ",32,32]," ",32,32]],
[91,
[[123,
["file",44,
""src/rebar_core.erl""],
125],
44,
[123,["line",44,"493"],125]],
93]],
125],
44,10,
[32,
[[" ",32,32]," ",32,32],
[[" ",32,32]," ",32,32]],
[123,
["rebar_core",44,"execute",44,"6",
44,10,
[[[" ",32,32,32]," ",32,32,32],
32,
[[" ",32,32]," ",32,32],
[[" ",32,32]," ",32,32]],
[91,
[[123,
["file",44,
""src/rebar_core.erl""],
125],
44,
[123,["line",44,"418"],125]],
93]],
125]],
93]],
125]],
125]]],
[]},
{rebar_utils,abort,2,
[{file,"src/rebar_utils.erl"},{line,220}]},
{rebar_core,maybe_execute,8,
[{file,"src/rebar_core.erl"},{line,302}]},
{rebar_core,process_dir1,7,
[{file,"src/rebar_core.erl"},{line,261}]},
{rebar_core,process_each,5,
[{file,"src/rebar_core.erl"},{line,351}]},
{rebar_core,process_dir1,7,
[{file,"src/rebar_core.erl"},{line,253}]},
{rebar_core,process_each,5,
[{file,"src/rebar_core.erl"},{line,351}]},
{rebar_core,process_dir1,7,
[{file,"src/rebar_core.erl"},{line,253}]}]}}

Why this error occurs.

Could you help me, please.

Erlang/OTP 18 [erts-7.0] [source] [smp:2:2] [async-threads:10] [hipe] [kernel-poll:false]

Eshell V7.0 (abort with ^G)

Command 'shell' not understood or not applicable

Hi. when i try to execute the rebar shell command, the program don't start. This is the output of command:

==> Entering directory /root/Scrivania/SS7_HACKING/ss7MAPer-master/ss7MAPer/deps/osmo_ss7' ==> Entering directory/root/Scrivania/SS7_HACKING/ss7MAPer-master/ss7MAPer/deps/epcap'
==> Entering directory `/root/Scrivania/SS7_HACKING/ss7MAPer-master/ss7MAPer/deps/pkt'
WARNING: deprecated port_envs option used
Option 'port_envs' has been deprecated
in favor of 'port_env'.
'port_envs' will be removed soon.

==> Leaving directory `/root/Scrivania/SS7_HACKING/ss7MAPer-master/ss7MAPer/deps/pkt'
WARNING: deprecated port_envs option used
Option 'port_envs' has been deprecated
in favor of 'port_env'.
'port_envs' will be removed soon.

==> Leaving directory /root/Scrivania/SS7_HACKING/ss7MAPer-master/ss7MAPer/deps/epcap' ==> Entering directory/root/Scrivania/SS7_HACKING/ss7MAPer-master/ss7MAPer/deps/osmo_ss7/rel'
==> Leaving directory /root/Scrivania/SS7_HACKING/ss7MAPer-master/ss7MAPer/deps/osmo_ss7/rel' ==> Leaving directory/root/Scrivania/SS7_HACKING/ss7MAPer-master/ss7MAPer/deps/osmo_ss7'
==> Entering directory /root/Scrivania/SS7_HACKING/ss7MAPer-master/ss7MAPer/deps/osmo_sccp' ==> Leaving directory/root/Scrivania/SS7_HACKING/ss7MAPer-master/ss7MAPer/deps/osmo_sccp'
==> Entering directory /root/Scrivania/SS7_HACKING/ss7MAPer-master/ss7MAPer/deps/osmo_map' ==> Leaving directory/root/Scrivania/SS7_HACKING/ss7MAPer-master/ss7MAPer/deps/osmo_map'
Command 'shell' not understood or not applicable

builds, binaries, docker image not working

OS: Ubuntu 16.04.3 LTS - Xenial

Trying to run the:
Docker, I get:
ss7maper_1
And it continues trying to reconnect and failing

Trying to run the binaries, i get:
ss7maper_2
And it continues trying to reconnect and failing

Trying to follow the script provided here I get:

USER@USER-PC-UBUNTU:~/Projects$ git clone https://github.com/ernw/ss7MAPer
Cloning into 'ss7MAPer'...
remote: Counting objects: 129, done.
remote: Total 129 (delta 0), reused 0 (delta 0), pack-reused 129
Receiving objects: 100% (129/129), 51.58 MiB | 542.00 KiB/s, done.
Resolving deltas: 100% (66/66), done.
Checking connectivity... done.
USER@USER-PC-UBUNTU:~/Projects$ cd ss7MAPer
USER@USER-PC-UBUNTU:~/Projects/ss7MAPer$ rebar get-deps
==> rel (get-deps)
==> ss7MAPer (get-deps)
Pulling osmo_ss7 from {git,"git://git.osmocom.org/erlang/osmo_ss7/","master"}
Cloning into 'osmo_ss7'...
Pulling osmo_sccp from {git,"git://git.osmocom.org/erlang/osmo_sccp/",
                            "master"}
Cloning into 'osmo_sccp'...
Pulling osmo_map from {git,"git://git.osmocom.org/erlang/osmo_map/","master"}
Cloning into 'osmo_map'...
==> rel (get-deps)
==> osmo_ss7 (get-deps)
Pulling epcap from {git,"git://git.osmocom.org/erlang/epcap","master"}
Cloning into 'epcap'...
==> epcap (get-deps)
Pulling pkt from {git,"git://github.com/msantos/pkt.git","master"}
Cloning into 'pkt'...
==> pkt (get-deps)
==> osmo_sccp (get-deps)
==> osmo_map (get-deps)
USER@USER-PC-UBUNTU:~/Projects/ss7MAPer$ cd deps/osmo_map
USER@USER-PC-UBUNTU:~/Projects/ss7MAPer/deps/osmo_map$ patch -p1 < ../../patches/osmo_map.patch
patching file asn1/MAP-Contracts.asn
patching file ebin/osmo_map.app
patching file rebar.config
patching file src/map_dlg_server.erl
patching file src/map_helper.erl
patching file src/map_ss_server.erl
USER@USER-PC-UBUNTU:~/Projects/ss7MAPer/deps/osmo_map$ cd ../osmo_sccp
USER@USER-PC-UBUNTU:~/Projects/ss7MAPer/deps/osmo_sccp$ patch -p1 < ../../patches/osmo_sccp.patch
patching file ebin/osmo_sccp.app
patching file rebar.config
patching file src/osmo_sccp_tcap.erl
patching file src/sccp_scrc.erl
patching file src/sccp_user.erl
USER@USER-PC-UBUNTU:~/Projects/ss7MAPer/deps/osmo_sccp$ cd ../osmo_ss7
USER@USER-PC-UBUNTU:~/Projects/ss7MAPer/deps/osmo_ss7$ patch -p1 < ../../patches/osmo_ss7.patch
patching file include/osmo_ss7.hrl
patching file include/sccp.hrl
patching file src/m3ua_codec.erl
patching file src/m3ua_core.erl
patching file src/sccp_codec.erl
patching file src/sctp_core.erl
patching file src/ss7_link_m3ua.erl
patching file src/ss7_links.erl
patching file src/ss7_routes.erl
USER@USER-PC-UBUNTU:~/Projects/ss7MAPer/deps/osmo_ss7$ cd ../../
USER@USER-PC-UBUNTU:~/Projects/ss7MAPer$ sed -i 's/DRV_CFLAGS/CFLAGS/g' deps/epcap/rebar.config
USER@USER-PC-UBUNTU:~/Projects/ss7MAPer$ sed -i 's/DRV_LDFLAGS/LDFLAGS/g' deps/epcap/rebar.config
USER@USER-PC-UBUNTU:~/Projects/ss7MAPer$ cd deps
USER@USER-PC-UBUNTU:~/Projects/ss7MAPer/deps$ git clone http://cgit.osmocom.org/erlang/signerl/
Cloning into 'signerl'...
Checking connectivity... done.
USER@USER-PC-UBUNTU:~/Projects/ss7MAPer/deps$ cd signerl/TCAP/asn_src/ITU
USER@USER-PC-UBUNTU:~/Projects/ss7MAPer/deps/signerl/TCAP/asn_src/ITU$ make
erlc  -W -b ber_bin +optimize +debug_info Remote-Operations-Information-Objects.asn Remote-Operations-GenUSER-ROS-PDUs.asn Remote-Operations-Useful-Definitions.asn
Warning: The option 'ber_bin' is now called 'ber'.
Warning: The option 'optimize' is no longer needed.
Warning: The option 'ber_bin' is now called 'ber'.
Warning: The option 'optimize' is no longer needed.
Warning: The option 'ber_bin' is now called 'ber'.
Warning: The option 'optimize' is no longer needed.
erlc  -W -b ber_bin +optimize +debug_info TCAPMessages.asn
Warning: The option 'ber_bin' is now called 'ber'.
Warning: The option 'optimize' is no longer needed.
erlc  -W -b ber_bin +optimize +debug_info TR.asn
Warning: The option 'ber_bin' is now called 'ber'.
Warning: The option 'optimize' is no longer needed.
erlc -b beam -W -v +warn_unused_vars +debug_info -o ../../ebin/itu TR.erl
TR.erl:58: Warning: variable 'Reason' is unused
TR.erl:72: Warning: variable 'Reason' is unused
TR.erl:663: Warning: variable 'Arg' is unused
erlc  -W -b ber_bin +optimize +debug_info TC.asn
Warning: The option 'ber_bin' is now called 'ber'.
Warning: The option 'optimize' is no longer needed.
erlc -b beam -W -v +warn_unused_vars +debug_info -o ../../ebin/itu TC.erl
TC.erl:72: Warning: variable 'Reason' is unused
TC.erl:86: Warning: variable 'Reason' is unused
TC.erl:887: Warning: variable 'Arg' is unused
erlc -b beam -W -v +warn_unused_vars +debug_info -o ../../ebin/itu TCAPMessages.erl
TCAPMessages.erl:58: Warning: variable 'Reason' is unused
TCAPMessages.erl:72: Warning: variable 'Reason' is unused
TCAPMessages.erl:491: Warning: variable 'Arg' is unused
erlc  -W -b ber_bin +optimize +debug_info DialoguePDUs.asn
Warning: The option 'ber_bin' is now called 'ber'.
Warning: The option 'optimize' is no longer needed.
erlc -b beam -W -v +warn_unused_vars +debug_info -o ../../ebin/itu DialoguePDUs.erl
DialoguePDUs.erl:72: Warning: variable 'Reason' is unused
DialoguePDUs.erl:86: Warning: variable 'Reason' is unused
DialoguePDUs.erl:998: Warning: variable 'Arg' is unused
erlc  -W -b ber_bin +optimize +debug_info UnidialoguePDUs.asn
Warning: The option 'ber_bin' is now called 'ber'.
Warning: The option 'optimize' is no longer needed.
erlc -b beam -W -v +warn_unused_vars +debug_info -o ../../ebin/itu UnidialoguePDUs.erl
UnidialoguePDUs.erl:54: Warning: variable 'Reason' is unused
UnidialoguePDUs.erl:68: Warning: variable 'Reason' is unused
UnidialoguePDUs.erl:395: Warning: variable 'Arg' is unused
erlc  -W -b ber_bin +optimize +debug_info TC-TMP.asn
Warning: The option 'ber_bin' is now called 'ber'.
Warning: The option 'optimize' is no longer needed.
erlc  -W -b ber_bin +optimize +debug_info TC-Testing-User.asn
Warning: The option 'ber_bin' is now called 'ber'.
Warning: The option 'optimize' is no longer needed.
erlc -b beam -W -v +warn_unused_vars +debug_info -o ../../ebin/itu TC-Testing-User.erl
TC-Testing-User.erl:277: Warning: variable 'Arg' is unused
erlc  -W -b ber_bin +optimize +debug_info TCAP-Examples.asn
Warning: The option 'ber_bin' is now called 'ber'.
Warning: The option 'optimize' is no longer needed.
erlc -b beam -W -v +warn_unused_vars +debug_info -o ../../ebin/itu TCAP-Examples.erl
TCAP-Examples.erl:78: Warning: variable 'Reason' is unused
TCAP-Examples.erl:92: Warning: variable 'Reason' is unused
TCAP-Examples.erl:524: Warning: variable 'Arg' is unused
erlc  -W -b ber_bin +optimize +debug_info TCAP-Tools.asn
Warning: The option 'ber_bin' is now called 'ber'.
Warning: The option 'optimize' is no longer needed.
erlc -b beam -W -v +warn_unused_vars +debug_info -o ../../ebin/itu TCAP-Tools.erl
TCAP-Tools.erl:57: Warning: variable 'Reason' is unused
TCAP-Tools.erl:71: Warning: variable 'Reason' is unused
TCAP-Tools.erl:263: Warning: variable 'Arg' is unused
rm TC.erl
USER@USER-PC-UBUNTU:~/Projects/ss7MAPer/deps/signerl/TCAP/asn_src/ITU$ cd ../../../../..
USER@USER-PC-UBUNTU:~/Projects/ss7MAPer$ cp deps/signerl/TCAP/asn_src/ITU/*rl deps/osmo_sccp/src/
USER@USER-PC-UBUNTU:~/Projects/ss7MAPer$ mkdir deps/epcap/deps
USER@USER-PC-UBUNTU:~/Projects/ss7MAPer$ ln -sd ../../pkt deps/epcap/deps/pkt
USER@USER-PC-UBUNTU:~/Projects/ss7MAPer$ mkdir deps/osmo_sccp/deps
USER@USER-PC-UBUNTU:~/Projects/ss7MAPer$ ln -sd ../../osmo_ss7 deps/osmo_sccp/deps/osmo_ss7
USER@USER-PC-UBUNTU:~/Projects/ss7MAPer$ ln -sd ../../epcap deps/osmo_sccp/deps/epcap
USER@USER-PC-UBUNTU:~/Projects/ss7MAPer$ ln -sd ../../pkt deps/osmo_sccp/deps/pkt
USER@USER-PC-UBUNTU:~/Projects/ss7MAPer$ ln -sd ../../signerl/MAP deps/osmo_sccp/deps/MAP
USER@USER-PC-UBUNTU:~/Projects/ss7MAPer$ ln -sd ../../signerl/SCCP deps/osmo_sccp/deps/SCCP
USER@USER-PC-UBUNTU:~/Projects/ss7MAPer$ ln -sd ../../signerl/TCAP deps/osmo_sccp/deps/TCAP
USER@USER-PC-UBUNTU:~/Projects/ss7MAPer$ mkdir deps/osmo_map/deps
USER@USER-PC-UBUNTU:~/Projects/ss7MAPer$ ln -sd ../../osmo_ss7 deps/osmo_map/deps/osmo_ss7
USER@USER-PC-UBUNTU:~/Projects/ss7MAPer$ ln -sd ../../epcap deps/osmo_map/deps/epcap
USER@USER-PC-UBUNTU:~/Projects/ss7MAPer$ ln -sd ../../pkt deps/osmo_map/deps/pkt
USER@USER-PC-UBUNTU:~/Projects/ss7MAPer$ cp deps/signerl/SCCP/itu/include/sccp.hrl deps/osmo_sccp/src/
USER@USER-PC-UBUNTU:~/Projects/ss7MAPer$ cp deps/signerl/TCAP/include/tcap.hrl deps/osmo_map/src/
USER@USER-PC-UBUNTU:~/Projects/ss7MAPer$ rebar co
==> pkt (compile)
Compiled src/pkt_ipv4.erl
Compiled src/pkt_ipv6_esp.erl
Compiled src/pkt_ipv6_hopopts.erl
Compiled src/pkt_ipproto.erl
Compiled src/pkt_ipv6_ah.erl
Compiled src/pkt_vrrp.erl
Compiled src/pkt_llc.erl
Compiled src/pkt_ipv6_fragment.erl
Compiled src/pkt_gre.erl
Compiled src/pkt_udp.erl
Compiled src/pkt_icmp6.erl
Compiled src/pkt_tcp.erl
Compiled src/pkt_ether.erl
Compiled src/pkt_802_1q.erl
Compiled src/pkt_igmp.erl
Compiled src/pkt_linux_cooked.erl
Compiled src/pkt_dlt.erl
Compiled src/pkt_arp.erl
Compiled src/pkt_icmp.erl
Compiled src/pkt_ipv6.erl
Compiled src/pkt_ipv6_dstopts.erl
Compiled src/pkt_lldp.erl
Compiled src/pkt_mpls.erl
Compiled src/pkt_ipv6_routing.erl
Compiled src/pkt_sctp.erl
Compiled src/pkt_rarp.erl
Compiled src/pkt_null.erl
Compiled src/pkt.erl
==> epcap (compile)
Compiled src/epcap.erl
Compiled src/epcap_net.erl
Compiled src/sniff.erl
Compiling /home/USER/Projects/ss7MAPer/deps/epcap/c_src/epcap.c
In file included from /home/USER/Projects/ss7MAPer/deps/epcap/c_src/epcap.c:34:0:
c_src/epcap.h:42:18: fatal error: pcap.h: No such file or directory
compilation terminated.
ERROR: compile failed while processing /home/USER/Projects/ss7MAPer/deps/epcap: rebar_abort
USER@USER-PC-UBUNTU:~/Projects/ss7MAPer$ ^C
USER@USER-PC-UBUNTU:~/Projects/ss7MAPer$ 


I go on despite the error and get:

USER@USER-PC-UBUNTU:~/Projects/ss7MAPer$ cd rel/
USER@USER-PC-UBUNTU:~/Projects/ss7MAPer/rel$ rebar create-node nodeid=ss7MAPer
==> rel (create-node)
Writing files/erl
Writing files/nodetool
Writing files/ss7MAPer
Writing files/sys.config
Writing files/vm.args
Writing files/ss7MAPer.cmd
Writing files/start_erl.cmd
Writing files/install_upgrade.escript
ERROR: One or more files already exist on disk and were not generated:
	* "reltool.config"
To force overwriting, specify -f/--force/force=1 on the command line.
USER@USER-PC-UBUNTU:~/Projects/ss7MAPer/rel$ cd ..
USER@USER-PC-UBUNTU:~/Projects/ss7MAPer$ rebar generate
==> rel (generate)
ERROR: Unable to generate spec: read file info /usr/lib/erlang/man/man1/gcov-tool.1.gz failed
ERROR: Unexpected error: rebar_abort
ERROR: generate failed while processing /home/USER/Projects/ss7MAPer/deps/osmo_ss7/rel: rebar_abort
USER@USER-PC-UBUNTU:~/Projects/ss7MAPer$ 

I'm completely new to this (even ubuntu). Any help/insight/comments would be appreciated

build from src : /root/source/ss7MAPer/deps/osmo_ss7/src/isup_codec.erl:46: function_clause

hi

i got this error when building ss7maper on debian stretch:

==> pkt (compile)
==> epcap (compile)
==> rel (compile)
==> osmo_ss7 (compile)
*** ERROR in parse_transform function:
*** Reason = function_clause
*** Location: {exprecs,403}
*** type = function
*** context = {context,isup_codec,undefined,undefined}
*** acc = {pass1,
[party_number,isup_msg],
false,
[{isup_msg,
[{typed_record_field,
{record_field,111,{atom,111,msg_type}},
{type,111,non_neg_integer,[]}},
{typed_record_field,
{record_field,112,{atom,112,cic}},
{user_type,112,isup_cic,[]}},
{typed_record_field,
{record_field,113,{atom,113,parameters}},
{type,113,list,[]}}]},
{party_number,
[{record_field,99,{atom,99,nature_of_addr_ind}},
{record_field,100,{atom,100,internal_net_num}},
{record_field,101,{atom,101,number_incompl_ind}},
{record_field,102,{atom,102,numbering_plan}},
{record_field,103,{atom,103,present_restrict}},
{record_field,104,{atom,104,screening_ind}},
{record_field,105,{atom,105,phone_number}}]}]}
*** form = {function,46,parse_isup_party,3,
[{clause,46,
[{bin,46,[]},{var,46,'OddEven'},{var,46,'DigitList'}],
[],
[{'case',48,
{var,48,'OddEven'},
[{clause,49,
[{integer,49,1}],
[],
[{call,50,
{remote,50,{atom,50,lists},{atom,50,sublist}},
[{var,50,'DigitList'},
{op,50,'-',
{call,50,{atom,50,length},[{var,50,'DigitList'}]},
{integer,50,1}}]}]},
{clause,51,
[{integer,51,0}],
[],
[{var,52,'DigitList'}]}]}]},
{clause,54,
[{var,54,'BcdBin'},
{var,54,'OddEven'},
{var,54,'DigitList'}],
[],
[{match,55,
{bin,55,
[{bin_element,55,
{var,55,'Second'},
{integer,55,4},
default},
{bin_element,55,
{var,55,'First'},
{integer,55,4},
default},
{bin_element,55,{var,55,'Remain'},default,[binary]}]},
{var,55,'BcdBin'}},
{match,56,
{var,56,'NewDigits'},
{cons,56,
{var,56,'First'},
{cons,56,{var,56,'Second'},{nil,56}}}},
{call,57,
{atom,57,parse_isup_party},
[{var,57,'Remain'},
{var,57,'OddEven'},
{op,57,'++',
{var,57,'DigitList'},
{var,57,'NewDigits'}}]}]}]}
/root/source/ss7MAPer/deps/osmo_ss7/src/isup_codec.erl:46: function_clause
Compiling /root/source/ss7MAPer/deps/osmo_ss7/src/isup_codec.erl failed:
ERROR: compile failed while processing /root/source/ss7MAPer/deps/osmo_ss7: rebar_abort

not compiling on kali linux 2016.2

last kali version, last updates

erlang version (1:19.0.7+dfsg-1)
rebar 2.6.2 18 20160823_165807

* ERROR in parse_transform function:
*** Reason = function_clause
*** Location: {exprecs,403}
*** type = function
*** context = {context,osmo_util,undefined,undefined}
*** acc = {pass1,
[primitive],
false,
[{pointcode,
[{typed_record_field,
{record_field,15,{atom,15,repr}},
{user_type,15,pointcode_repr,[]}},
{record_field,16,{atom,16,value}}]},
{primitive,
[{record_field,6,{atom,6,subsystem}},
{record_field,7,{atom,7,gen_name}},
{typed_record_field,
{record_field,8,{atom,8,spec_name}},
{user_type,8,prim_spec_name,[]}},
{record_field,9,{atom,9,parameters}}]}]}
*** form = {function,51,digit_list2int,2,
[{clause,51,
[{var,51,'Int'},{nil,51}],
[],
[{var,52,'Int'}]},
{clause,53,
[{var,53,'Int'},
{cons,53,{var,53,'Digit'},{var,53,'Tail'}}],
[],
[{call,54,
{atom,54,digit_list2int},
[{op,54,'+',
{op,54,'
',{var,54,'Int'},{integer,54,10}},
{var,54,'Digit'}},
{var,54,'Tail'}]}]}]}
/root/ss7MAPer/deps/osmo_ss7/src/osmo_util.erl:51: function_clause
Compiling /root/ss7MAPer/deps/osmo_ss7/src/osmo_util.erl failed:
ERROR: compile failed while processing /root/ss7MAPer/deps/osmo_ss7: rebar_abort

prepare_n_build.sh error while executing

root@kali:~/ss7MAPer# ./prepare_n_build.sh

  • git clone https://github.com/ernw/ss7MAPer
    fatal: destination path 'ss7MAPer' already exists and is not an empty directory.
  • cd ss7MAPer
  • rebar get-deps
    ==> rel (get-deps)
    ==> ss7MAPer (get-deps)
    Pulling osmo_ss7 from {git,"git://git.osmocom.org/erlang/osmo_ss7/","master"}
    Cloning into 'osmo_ss7'...
    Pulling osmo_sccp from {git,"git://git.osmocom.org/erlang/osmo_sccp/",
    "master"}
    Cloning into 'osmo_sccp'...
    Pulling osmo_map from {git,"git://git.osmocom.org/erlang/osmo_map/","master"}
    Cloning into 'osmo_map'...
    ==> rel (get-deps)
    ==> osmo_ss7 (get-deps)
    Pulling epcap from {git,"git://git.osmocom.org/erlang/epcap","master"}
    Cloning into 'epcap'...
    ==> epcap (get-deps)
    Pulling pkt from {git,"git://github.com/msantos/pkt.git","master"}
    Cloning into 'pkt'...
    ==> pkt (get-deps)
    ==> osmo_sccp (get-deps)
    ==> osmo_map (get-deps)
  • cd deps/osmo_map
  • patch -p1
    patching file asn1/MAP-Contracts.asn
    patching file ebin/osmo_map.app
    patching file rebar.config
    patching file src/map_dlg_server.erl
    patching file src/map_helper.erl
    patching file src/map_ss_server.erl
  • cd ../osmo_sccp
  • patch -p1
    patching file ebin/osmo_sccp.app
    patching file rebar.config
    patching file src/osmo_sccp_tcap.erl
    patching file src/sccp_scrc.erl
    patching file src/sccp_user.erl
  • cd ../osmo_ss7
  • patch -p1
    patching file include/osmo_ss7.hrl
    patching file include/sccp.hrl
    patching file src/m3ua_codec.erl
    patching file src/m3ua_core.erl
    patching file src/sccp_codec.erl
    patching file src/sctp_core.erl
    patching file src/ss7_link_m3ua.erl
    patching file src/ss7_links.erl
    patching file src/ss7_routes.erl
  • cd ../../
  • sed -i s/DRV_CFLAGS/CFLAGS/g deps/epcap/rebar.config
  • sed -i s/DRV_LDFLAGS/LDFLAGS/g deps/epcap/rebar.config
  • cd deps
  • git clone http://cgit.osmocom.org/erlang/signerl/
    Cloning into 'signerl'...
  • cd signerl/TCAP/asn_src/ITU
  • make
    erlc -W -b ber_bin +optimize +debug_info Remote-Operations-Information-Objects.asn Remote-Operations-Generic-ROS-PDUs.asn Remote-Operations-Useful-Definitions.asn
    Warning: The option 'ber_bin' is now called 'ber'.
    Warning: The option 'optimize' is no longer needed.
    Warning: The option 'ber_bin' is now called 'ber'.
    Warning: The option 'optimize' is no longer needed.
    Warning: The option 'ber_bin' is now called 'ber'.
    Warning: The option 'optimize' is no longer needed.
    erlc -W -b ber_bin +optimize +debug_info TCAPMessages.asn
    Warning: The option 'ber_bin' is now called 'ber'.
    Warning: The option 'optimize' is no longer needed.
    erlc -W -b ber_bin +optimize +debug_info TR.asn
    Warning: The option 'ber_bin' is now called 'ber'.
    Warning: The option 'optimize' is no longer needed.
    erlc -b beam -W -v +warn_unused_vars +debug_info -o ../../ebin/itu TR.erl
    TR.erl:662: Warning: variable 'Arg' is unused
    erlc -W -b ber_bin +optimize +debug_info TC.asn
    Warning: The option 'ber_bin' is now called 'ber'.
    Warning: The option 'optimize' is no longer needed.
    erlc -b beam -W -v +warn_unused_vars +debug_info -o ../../ebin/itu TC.erl
    TC.erl:886: Warning: variable 'Arg' is unused
    erlc -b beam -W -v +warn_unused_vars +debug_info -o ../../ebin/itu TCAPMessages.erl
    TCAPMessages.erl:490: Warning: variable 'Arg' is unused
    erlc -W -b ber_bin +optimize +debug_info DialoguePDUs.asn
    Warning: The option 'ber_bin' is now called 'ber'.
    Warning: The option 'optimize' is no longer needed.
    erlc -b beam -W -v +warn_unused_vars +debug_info -o ../../ebin/itu DialoguePDUs.erl
    DialoguePDUs.erl:1001: Warning: variable 'Arg' is unused
    erlc -W -b ber_bin +optimize +debug_info UnidialoguePDUs.asn
    Warning: The option 'ber_bin' is now called 'ber'.
    Warning: The option 'optimize' is no longer needed.
    erlc -b beam -W -v +warn_unused_vars +debug_info -o ../../ebin/itu UnidialoguePDUs.erl
    UnidialoguePDUs.erl:396: Warning: variable 'Arg' is unused
    erlc -W -b ber_bin +optimize +debug_info TC-TMP.asn
    Warning: The option 'ber_bin' is now called 'ber'.
    Warning: The option 'optimize' is no longer needed.
    erlc -W -b ber_bin +optimize +debug_info TC-Testing-User.asn
    Warning: The option 'ber_bin' is now called 'ber'.
    Warning: The option 'optimize' is no longer needed.
    erlc -b beam -W -v +warn_unused_vars +debug_info -o ../../ebin/itu TC-Testing-User.erl
    TC-Testing-User.erl:278: Warning: variable 'Arg' is unused
    erlc -W -b ber_bin +optimize +debug_info TCAP-Examples.asn
    Warning: The option 'ber_bin' is now called 'ber'.
    Warning: The option 'optimize' is no longer needed.
    erlc -b beam -W -v +warn_unused_vars +debug_info -o ../../ebin/itu TCAP-Examples.erl
    TCAP-Examples.erl:523: Warning: variable 'Arg' is unused
    erlc -W -b ber_bin +optimize +debug_info TCAP-Tools.asn
    Warning: The option 'ber_bin' is now called 'ber'.
    Warning: The option 'optimize' is no longer needed.
    erlc -b beam -W -v +warn_unused_vars +debug_info -o ../../ebin/itu TCAP-Tools.erl
    TCAP-Tools.erl:263: Warning: variable 'Arg' is unused
    rm TC.erl
  • cd ../../../../..
  • cp deps/signerl/TCAP/asn_src/ITU/DialoguePDUs.erl deps/signerl/TCAP/asn_src/ITU/DialoguePDUs.hrl deps/signerl/TCAP/asn_src/ITU/Remote-Operations-Generic-ROS-PDUs.erl deps/signerl/TCAP/asn_src/ITU/Remote-Operations-Generic-ROS-PDUs.hrl deps/signerl/TCAP/asn_src/ITU/Remote-Operations-Information-Objects.erl deps/signerl/TCAP/asn_src/ITU/Remote-Operations-Useful-Definitions.erl deps/signerl/TCAP/asn_src/ITU/TC-TMP.erl deps/signerl/TCAP/asn_src/ITU/TC-TMP.hrl deps/signerl/TCAP/asn_src/ITU/TC-Testing-User.erl deps/signerl/TCAP/asn_src/ITU/TC-Testing-User.hrl deps/signerl/TCAP/asn_src/ITU/TC.hrl deps/signerl/TCAP/asn_src/ITU/TCAP-Examples.erl deps/signerl/TCAP/asn_src/ITU/TCAP-Examples.hrl deps/signerl/TCAP/asn_src/ITU/TCAP-Tools.erl deps/signerl/TCAP/asn_src/ITU/TCAPMessages.erl deps/signerl/TCAP/asn_src/ITU/TCAPMessages.hrl deps/signerl/TCAP/asn_src/ITU/TR.erl deps/signerl/TCAP/asn_src/ITU/TR.hrl deps/signerl/TCAP/asn_src/ITU/UnidialoguePDUs.erl deps/signerl/TCAP/asn_src/ITU/UnidialoguePDUs.hrl deps/osmo_sccp/src/
  • 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
  • cp deps/signerl/SCCP/itu/include/sccp.hrl deps/osmo_sccp/src/
  • cp deps/signerl/TCAP/include/tcap.hrl deps/osmo_map/src/
  • rebar co
    ==> pkt (compile)
    Compiled src/pkt_802_1q.erl
    Compiled src/pkt_ether.erl
    Compiled src/pkt_dlt.erl
    Compiled src/pkt_ipproto.erl
    Compiled src/pkt_mpls.erl
    Compiled src/pkt_lldp.erl
    Compiled src/pkt_ipv6_routing.erl
    Compiled src/pkt_vrrp.erl
    Compiled src/pkt_linux_cooked.erl
    Compiled src/pkt_sctp.erl
    Compiled src/pkt_ipv6_dstopts.erl
    Compiled src/pkt_ipv6_fragment.erl
    Compiled src/pkt_udp.erl
    Compiled src/pkt_igmp.erl
    Compiled src/pkt_null.erl
    Compiled src/pkt_ipv4.erl
    Compiled src/pkt_ipv6.erl
    Compiled src/pkt.erl
    Compiled src/pkt_icmp6.erl
    Compiled src/pkt_ipv6_hopopts.erl
    Compiled src/pkt_gre.erl
    Compiled src/pkt_tcp.erl
    Compiled src/pkt_arp.erl
    Compiled src/pkt_llc.erl
    Compiled src/pkt_ipv6_esp.erl
    Compiled src/pkt_icmp.erl
    Compiled src/pkt_ipv6_ah.erl
    ==> epcap (compile)
    Compiled src/epcap.erl
    Compiled src/epcap_net.erl
    /root/ss7MAPer/ss7MAPer/deps/epcap/src/sniff.erl:56: Warning: gen_fsm:send_event/2 is deprecated and will be removed in a future release; use gen_statem:cast/2
    /root/ss7MAPer/ss7MAPer/deps/epcap/src/sniff.erl:59: Warning: gen_fsm:send_event/2 is deprecated and will be removed in a future release; use gen_statem:cast/2
    /root/ss7MAPer/ss7MAPer/deps/epcap/src/sniff.erl:66: Warning: gen_fsm:start/4 is deprecated and will be removed in a future release; use gen_statem:start/4
    Compiled src/sniff.erl
    Compiling /root/ss7MAPer/ss7MAPer/deps/epcap/c_src/epcap.c
    In file included from /root/ss7MAPer/ss7MAPer/deps/epcap/c_src/epcap.c:34:0:
    c_src/epcap.h:42:18: fatal error: pcap.h: No such file or directory
    #include <pcap.h>
    ^
    compilation terminated.
    ERROR: compile failed while processing /root/ss7MAPer/ss7MAPer/deps/epcap: rebar_abort
  • cd rel/
  • rebar create-node nodeid=ss7MAPer
    ==> rel (create-node)
    Writing files/erl
    Writing files/nodetool
    Writing files/ss7MAPer
    Writing files/sys.config
    Writing files/vm.args
    Writing files/ss7MAPer.cmd
    Writing files/start_erl.cmd
    Writing files/install_upgrade.escript
    ERROR: One or more files already exist on disk and were not generated:
    • "reltool.config"
      To force overwriting, specify -f/--force/force=1 on the command line.
  • cd ..
  • rebar generate
    ==> rel (generate)
    ==> rel (generate)
    ERROR: Unable to generate spec: read file info /root/ss7MAPer/ss7MAPer/deps/signerl/TCAP/ebin/tcap_tco_server.beam failed
    ERROR: Unexpected error: rebar_abort
    ERROR: generate failed while processing /root/ss7MAPer/ss7MAPer/rel: rebar_abort

Compilation Error (rebar co)

Hello, I get an error while trying to compile (attached below). Any idea on how to solve it?

Thanks

root@ubuntu:/opt/ss7MAPer# rebar co
==> pkt (compile)
==> epcap (compile)
==> rel (compile)
==> osmo_ss7 (compile)
*** ERROR in parse_transform function:
*** Reason     = function_clause
*** Location: {exprecs,403}
***       type = function
***    context = {context,m3ua_codec,undefined,undefined}
***        acc = {pass1,
                     [m3ua_msg],
                     false,
                     [{mtp3mg_msg,
                          [{record_field,25,{atom,25,h0}},
                           {record_field,26,{atom,26,h1}},
                           {record_field,27,{atom,27,payload}}]},
                      {mtp3_msg,
                          [{record_field,17,{atom,17,network_ind}},
                           {record_field,18,{atom,18,service_ind}},
                           {record_field,19,{atom,19,routing_label}},
                           {record_field,20,{atom,20,m3ua_mp}},
                           {record_field,21,{atom,21,payload}}]},
                      {mtp3_routing_label,
                          [{record_field,11,{atom,11,sig_link_sel}},
                           {record_field,12,{atom,12,origin_pc}},
                           {record_field,13,{atom,13,dest_pc}}]},
                      {m3ua_msg,
                          [{typed_record_field,
                               {record_field,69,{atom,69,version}},
                               {type,69,range,
                                   [{integer,69,0},{integer,69,255}]}},
                           {typed_record_field,
                               {record_field,70,{atom,70,msg_class}},
                               {type,70,range,
                                   [{integer,70,0},{integer,70,255}]}},
                           {typed_record_field,
                               {record_field,71,{atom,71,msg_type}},
                               {type,71,range,
                                   [{integer,71,0},{integer,71,255}]}},
                           {typed_record_field,
                               {record_field,72,{atom,72,msg_length}},
                               {type,72,non_neg_integer,[]}},
                           {record_field,73,{atom,73,payload}}]}]}
***       form = {function,47,get_num_pad_bytes,1,
                  [{clause,47,
                    [{var,47,'BinLenBytes'}],
                    [],
                    [{'case',48,
                      {op,48,'rem',{var,48,'BinLenBytes'},{integer,48,4}},
                      [{clause,49,[{integer,49,0}],[],[{integer,49,0}]},
                       {clause,50,
                        [{var,50,'Val'}],
                        [],
                        [{op,50,'-',{integer,50,4},{var,50,'Val'}}]}]}]}]}
*** ERROR in parse_transform function:
*** Reason     = function_clause
*** Location: {exprecs,403}
***       type = function
***    context = {context,sccp_codec,undefined,undefined}
***        acc = {pass1,
                     [global_title,sccp_addr,sccp_msg],
                     false,
                     [{sccp_addr,
                          [{record_field,182,{atom,182,res_nat_use}},
                           {record_field,183,{atom,183,route_on_ssn}},
                           {record_field,184,{atom,184,point_code}},
                           {record_field,185,{atom,185,ssn}},
                           {record_field,186,{atom,186,global_title}}]},
                      {global_title,
                          [{typed_record_field,
                               {record_field,173,{atom,173,gti}},
                               {type,173,range,
                                   [{integer,173,0},{integer,173,15}]}},
                           {typed_record_field,
                               {record_field,174,
                                   {atom,174,nature_of_addr_ind}},
                               {type,174,range,
                                   [{integer,174,0},{integer,174,127}]}},
                           {record_field,175,{atom,175,trans_type}},
                           {typed_record_field,
                               {record_field,176,{atom,176,encoding}},
                               {type,176,range,
                                   [{integer,176,0},{integer,176,15}]}},
                           {typed_record_field,
                               {record_field,177,{atom,177,numbering_plan}},
                               {type,177,range,
                                   [{integer,177,0},{integer,177,15}]}},
                           {record_field,178,{atom,178,phone_number}}]},
                      {sccp_msg,
                          [{typed_record_field,
                               {record_field,167,{atom,167,msg_type}},
                               {user_type,167,sccp_msg_type,[]}},
                           {record_field,168,{atom,168,parameters}}]}]}
***       form = {function,48,binarify,1,
                     [{clause,48,
                          [{var,48,'In'}],
                          [[{call,48,{atom,48,is_binary},[{var,48,'In'}]}]],
                          [{var,49,'In'}]},
                      {clause,50,
                          [{var,50,'In'}],
                          [[{call,50,{atom,50,is_list},[{var,50,'In'}]}]],
                          [{call,51,
                               {atom,51,list_to_binary},
                               [{var,51,'In'}]}]}]}
/opt/ss7MAPer/deps/osmo_ss7/src/m3ua_codec.erl:47: function_clause
Compiling /opt/ss7MAPer/deps/osmo_ss7/src/m3ua_codec.erl failed:
ERROR: compile failed while processing /opt/ss7MAPer/deps/osmo_ss7: rebar_abort

rebar not compiling

ss7MAPer (compile)
src/ss7MAPer.erl:83: field asp_id undefined in record sigtran_link
src/ss7MAPer.erl:84: field net_app undefined in record sigtran_link
src/ss7MAPer.erl:84: field route_ctx undefined in record sigtran_link
src/ss7MAPer.erl:79: Warning: variable 'Asp_ID' is unused
src/ss7MAPer.erl:80: Warning: variable 'Route_CTX' is unused
src/ss7MAPer.erl:81: Warning: variable 'Net_Appearance' is unused
Compiling src/ss7MAPer.erl failed:
ERROR: compile failed while processing /root/ss7MAPer: rebar_abort

epcap

epcap can not find
git.osmocom.org/erlang/epcap There is no file.

Can you give me a pass

I found a epcap on the Internet.

But this error has occurred.
Uncaught error in rebar_core: {'EXIT',
{badarg,
[{io,format,
[standard_io,
"WARN: ~s has version ~p; requested regex was ~s\n",
[[47,104,111,109,101,47,106,97,99,107,47,
26700,38754,47,115,115,55,77,65,80,101,
114,47,100,101,112,115,47,101,112,99,97,
112,47,115,114,99,47,101,112,99,97,112,
46,97,112,112,46,115,114,99],
"0.8.1","0.03"]],
[]},
{rebar_deps,is_app_available,5,
[{file,"src/rebar_deps.erl"},{line,482}]},
{rebar_deps,find_dep_in_dir,3,
[{file,"src/rebar_deps.erl"},{line,440}]},
{rebar_deps,find_deps,4,
[{file,"src/rebar_deps.erl"},{line,399}]},
{rebar_deps,preprocess,2,
[{file,"src/rebar_deps.erl"},{line,67}]},
{rebar_core,acc_modules,5,
[{file,"src/rebar_core.erl"},{line,540}]},
{rebar_core,process_dir1,7,
[{file,"src/rebar_core.erl"},{line,237}]},
{rebar_core,process_each,5,
[{file,"src/rebar_core.erl"},{line,351}]}]}}

config error

HI
i build ss7MAPer but when i try to start it i got this error.
2> application:start(ss7MAPer).
Error reading config file [["./config"]]:
eisdir
{error,{{shutdown,{failed_to_start_child,ss7MAPer,
config_error}},
{ss7MAPer_app,start,[normal,["./config"]]}}}

any help thanks in advance

Please Help me

How to fix
ERROR: Unable to generate spec: read file info /home/getaw/ss7MAPer/deps/signerl/TCAP/ebin/tcap_tsm_fsm.beam failed

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.