@@ -8,9 +8,9 @@ console.log('\\n----------URI parsing monitor by @ch0p1n------------');
8
8
{
9
9
var Uri = Java.use('android.net.Uri');
10
10
11
- const commonSchemes = ['http', 'https', 'content', 'file'];
11
+ const commonSchemes = ['http', 'https', 'content', 'file', 'gmsg' ];
12
12
const show_common = false; //set it to true to exclude the above shcemes from the logs
13
-
13
+ const avoidLog = ['gmsg']
14
14
var currentUri = '';
15
15
16
16
@@ -21,7 +21,8 @@ console.log('\\n----------URI parsing monitor by @ch0p1n------------');
21
21
else
22
22
{
23
23
currentUri = this.toString();
24
- colorLog('[+] getQueryParameter for Uri: '+currentUri,{c: Color.Green})
24
+ if(!avoidLog.includes(currentUri.getScheme()))
25
+ colorLog('[+] getQueryParameter for Uri: '+currentUri,{c: Color.Green})
25
26
}
26
27
27
28
if(filterKeyWords.some(word => key.toString().toLowerCase().includes(word)))
@@ -37,7 +38,8 @@ console.log('\\n----------URI parsing monitor by @ch0p1n------------');
37
38
else
38
39
{
39
40
currentUri = this.toString();
40
- colorLog('[+] getQueryParameters for Uri: '+currentUri,{c: Color.Green})
41
+ if(!avoidLog.includes(currentUri.getScheme()))
42
+ colorLog('[+] getQueryParameters for Uri: '+currentUri,{c: Color.Green})
41
43
}
42
44
if(filterKeyWords.some(word => key.toString().toLowerCase().includes(word)))
43
45
colorLog('\t\\\\_key:'+key+', value:'+retval, {c: Color.Red});
0 commit comments