1
1
#!/usr/bin/python
2
2
# -*- coding: UTF-8 -*-
3
3
#/**
4
- # * Software Name : corenet
4
+ # * Software Name : corenet
5
5
# * Version : 0.1.0
6
6
# *
7
7
# * Copyright © 2015. Benoit Michau. ANSSI.
8
8
# *
9
9
# * This program is free software: you can redistribute it and/or modify
10
10
# * it under the terms of the GNU General Public License version 2 as published
11
- # * by the Free Software Foundation.
11
+ # * by the Free Software Foundation.
12
12
# *
13
13
# * This program is distributed in the hope that it will be useful,
14
14
# * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
15
# * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
- # * GNU General Public License for more details.
16
+ # * GNU General Public License for more details.
17
17
# *
18
18
# * You will find a copy of the terms and conditions of the GNU General Public
19
19
# * License version 2 in the "license.txt" file or
23
23
# *--------------------------------------------------------
24
24
# * File Name : corenet.py
25
25
# * Created : 2015-09-05
26
- # * Authors : Benoit Michau
26
+ # * Authors : Benoit Michau
27
27
# *--------------------------------------------------------
28
28
#*/
29
29
@@ -147,7 +147,7 @@ def main():
147
147
'PreemptVuln' : 'not-pre-emptable' , # 'pre-emptable' (S1 parameter)
148
148
},
149
149
'default' : {
150
- 'IP' :[3 , '0.0.0.0' ], # PDN type (1:IPv4, 2:IPv6, 3:IPv4v6), UE IP@ will be set at runtime
150
+ 'IP' :[1 , '0.0.0.0' ], # PDN type (1:IPv4, 2:IPv6, 3:IPv4v6), UE IP@ will be set at runtime
151
151
'DNS' :['192.168.1.40' , '8.8.8.8' ], # 2 IP@ for DNS servers
152
152
'QCI' : 9 , # QoS class id (9: internet browsing), NAS + S1 parameter
153
153
'PriorityLevel' : 15 , # no priority (S1 parameter)
@@ -206,7 +206,7 @@ def stop():
206
206
'MME-initiated procedures:\n ' \
207
207
'\t Identification, GUTIReallocation, Authentication, ' \
208
208
'SecurityModeControl, EMMInformation, MMEDetach'
209
-
209
+
210
210
# configure IPython kernel namespace
211
211
_ipy_ns = {}
212
212
_ipy_ns ['GLOBAL' ] = GLOBAL
@@ -227,7 +227,7 @@ def stop():
227
227
_ipy_ns ['SecurityModeControl' ] = SecurityModeControl
228
228
_ipy_ns ['EMMInformation' ] = EMMInformation
229
229
_ipy_ns ['MMEDetach' ] = MMEDetach
230
-
230
+
231
231
# interactive epc session
232
232
ipshell = InteractiveShellEmbed (user_ns = _ipy_ns , \
233
233
banner1 = _ipy_banner , \
0 commit comments