Category Archives: VoIP

Voice over IP

IT Security Brothers (http://itsb.pro)

Hi guys, I would like to present you our new project IT Security Brothers http://itsb.pro
We provide pentest, consultations and IT outsourcing services.
Feel free to hire us for IT jobs.

VOIP: audiocodes mp-124 reset settings to default factory

for reset mp-124 to default factory need:

1) assure that the network cable (UTP-5) removed from the jack rj-45, otherwise nothing happens.

2) power on mp-124.

3) wait for the boot.

4) Paper clip or other thin subject to push the button being in a dimple on the front panel mp-124 and to wait for 6 seconds.

reset button on mp-124

5) power on mp-124.

6) goto http://10.1.10.10 with login Admin, pass: Admin

softswitch: Essentra BAX

Generating strings for import in Essetra BAX .

edit passgen.py

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/python
import random

class PassGen():
        def generator(self):
                passwd=""
                for i in xrange(0,11):
                        if (i%2==0):
                                passwd+=random.choice('abcdefghjkmnprstuvwxyzABCDEFGHJKMNPRSTUVWXYZ')
                        else:
                                passwd+=str(random.randint(2, 9))
                return passwd

        def getPassword(self):
                for i in xrange(0,1):
                        return self.generator()

edit bax.py

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/usr/bin/python
import random
from passgen import PassGen

class AddToBax():
        pswd = PassGen()
        prefix = 73522;
        def AddSingleNumberGen(self):
                print "Enter the person surname:"
                surname = raw_input()
                print "Enter the person name:"
                name = raw_input()
                print "Enter the address: "
                address = raw_input()
                print "Enter telephon number(6 digits format: 64xxxx):"
                telnumber = raw_input()
                password = self.pswd.getPassword()
                fullnumber = str(self.prefix)+str(telnumber)
                print "U,%s,COSUser,User,%s,test@kss45.ru,810,7,8,3522,%s,,,,%s,,%s,%s,E,D,E,D,,,%s,%s,User\n" % (fullnumber, password, telnumber, address, name, surname, fullnumber, password)

        def AddGroupNumberGen(self):
                print "Enter the company name:"
                company = raw_input()
                print "Enter the address:"
                address = raw_input()
                print "Enter the first number (6 digits format: 64xxxx): "
                first = raw_input()
                print "Enter the last number (6 digits format: 64xxxx): "
                last = raw_input()
                totalnumbers = int(last) - int(first) + 1
                while (first != int(last) + 1):
                        fullnumber = str(self.prefix)+str(first)
                        password = self.pswd.getPassword()
                        print "I,%s,COSUser,User,%s,test@kss45.ru,810,7,8,3522,%s,,,,%s,,,%s,E,D,E,D,,,%s,%s,User" % (fullnumber, password, first, address, company, fullnumber, password)
                        first = int(first) + 1

newuser = AddToBax()
print "Select Single(1) or Group(2) number generation"
selection = raw_input()
if selection == "2":
        newuser.AddGroupNumberGen()
else:
        newuser.AddSingleNumberGen()

That's all, press number 2 to generate strings for mass import of telephon number.
Press another key to generate string for one phone number.

backup mp-124

Save the config with Audiocodes MediaPack 124 on the list of ip:

#!/bin/sh
 day=`/bin/date "+%Y%m%d"`
 home_dir="/home/alter/backups/mp124/$day"
 /bin/mkdir $home_dir;
 /bin/cat /home/alter/mp124ip.txt | /usr/bin/awk '{system("/usr/local/bin/curl --digest --url http://Admin:Admin@"$1"/FS/BOARD.ini>'$home_dir'/"$1".ini")}'

Create a text file mp124ip.txt and fill it with the principle of one-row 1 IP Address:

10.166.10.4
192.168.1.34

and etc...