Skip to content

Commit 5ecbabb

Browse files
author
Ch0pin
committed
net uri module improvements
1 parent a3e72c5 commit 5ecbabb

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

libraries/js/globals.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

modules/helpers/android_net_uri.med

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ console.log('\\n----------URI parsing monitor by @ch0p1n------------');
88
{
99
var Uri = Java.use('android.net.Uri');
1010

11-
const commonSchemes = ['http', 'https', 'content', 'file'];
11+
const commonSchemes = ['http', 'https', 'content', 'file', 'gmsg'];
1212
const show_common = false; //set it to true to exclude the above shcemes from the logs
13-
13+
const avoidLog = ['gmsg']
1414
var currentUri = '';
1515

1616

@@ -21,7 +21,8 @@ console.log('\\n----------URI parsing monitor by @ch0p1n------------');
2121
else
2222
{
2323
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})
2526
}
2627

2728
if(filterKeyWords.some(word => key.toString().toLowerCase().includes(word)))
@@ -37,7 +38,8 @@ console.log('\\n----------URI parsing monitor by @ch0p1n------------');
3738
else
3839
{
3940
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})
4143
}
4244
if(filterKeyWords.some(word => key.toString().toLowerCase().includes(word)))
4345
colorLog('\t\\\\_key:'+key+', value:'+retval, {c: Color.Red});

0 commit comments

Comments
 (0)