Skip to content

Commit 668f9c6

Browse files
committed
新增 腾讯云|百度云|华为云|七牛云|京东云 OSS相关的URL
1 parent 1daaf6d commit 668f9c6

File tree

3 files changed

+35
-10
lines changed

3 files changed

+35
-10
lines changed

README.md

+23-9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,28 @@
1+
> Forked from https://github.com/PortSwigger/js-miner
12
# Burp JS Miner
23
This tool tries to find interesting stuff inside static files; mainly JavaScript and JSON files.
34

5+
## CHANGELOG
6+
> 与原项目的不同
7+
### 2023年9月24日
8+
* 新增 腾讯云|百度云|华为云|七牛云|京东云 OSS相关的URL
9+
* 新增 github token|公有云常见aksk形式 的识别
10+
11+
## 直接下载使用
12+
13+
https://github.com/yyzsec/js-miner/releases
14+
15+
16+
## 源码编译
17+
18+
```bash
19+
git clone https://github.com/yyzsec/js-miner
20+
cd burp-JS-Miner
21+
gradle fatJar
22+
23+
# find your jar bianry at: build/libs/burp-JS-Miner-all.jar
24+
```
25+
426
## Background
527
While assessing a web application, it is expected to enumerate information residing inside static files such as JavaScript or JSON resources.
628

@@ -61,15 +83,7 @@ I'm open for ideas/suggestions to help improve or optimize this tool.
6183

6284
### Contributors; thanks to
6385
- [Stanislav Kravchenko](https://linkedin.com/in/staskravchenko/): For suggesting the dependency confusion feature, besides helping with testing and improving the functionality.
64-
65-
### Build from source
66-
```
67-
git clone https://github.com/minamo7sen/burp-JS-Miner.git
68-
cd burp-JS-Miner
69-
gradle fatJar
70-
```
71-
Then, the jar file can be found at `build/libs/burp-JS-Miner-all.jar`.
72-
86+
- [PortSwigger js-miner](https://github.com/PortSwigger/js-miner): where i forked from
7387

7488
## Disclaimer
7589
It is the user's responsibility to obey all applicable local, state and federal laws. The author assumes no liability and is not responsible for any misuse or damage caused by this tool.

src/main/java/burp/BurpExtender.java

+1
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ public void registerExtenderCallbacks(IBurpExtenderCallbacks callbacks) {
7878

7979
mStdOut.println("[*] Loaded:\t" + EXTENSION_NAME + " v" + EXTENSION_VERSION);
8080
mStdOut.println("[*] Author:\tMina M. Edwar ([email protected])");
81+
mStdOut.println("[*] Modifiedy by :\tyyz ([email protected])");
8182
mStdOut.println("=================================================");
8283

8384
// Load extension configurations

src/main/java/burp/utils/Constants.java

+11-1
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,13 @@ private Constants() {}
2626
"cloudfront.net|" +
2727
"digitaloceanspaces.com|" +
2828
"oraclecloud.com|" +
29-
"aliyuncs.com|" + // Ali baba
3029
"firebaseio.com|" + // Firebase
30+
"aliyuncs.com|" + // Ali baba ref: https://help.aliyun.com/zh/oss/user-guide/regions-and-endpoints
31+
"myqcloud.com|" + // tencent oss ref: https://main.qcloudimg.com/raw/document/intl/product/pdf/tencent-cloud_436_6221_zh.pdf
32+
"bcebos.com|" + // baidu oss ref: https://cloud.baidu.com/doc/BOS/s/Ck1rk80hn
33+
"clouddn.com|" + // qiniu oss ref: https://www.qiniu.com/products/kodo
34+
"myhuaweicloud.com|" + // huawei oss ref: https://developer.huaweicloud.com/endpoint?OBS
35+
"jdcloud-oss.com|" + // jd yun oss ref: https://docs.jdcloud.com/cn/object-storage-service/oss-endpont-list
3136
"rackcdn.com|" +
3237
"objects.cdn.dream.io|objects-us-west-1.dream.io)",
3338
Pattern.CASE_INSENSITIVE | Pattern.MULTILINE);
@@ -48,6 +53,11 @@ private Constants() {}
4853
"encrypt[_-]?(secret|key)|" +
4954
"decrypt[_-]?(secret|key)|" +
5055
"github[_-]?(key|token|secret)|" +
56+
"ghp_|" + // ghp_xxxxxxxxxxxx github token
57+
"AKID|" + // tencent cloud SecretId
58+
"SecretId|" + // tencent cloud SecretId
59+
"SecretKey|" + // tencent cloud SecretKey
60+
"github_pat_|" + // github_pat_xxxxxxxxxxx Fine-grained personal access tokens
5161
"slack[_-]?token)" +
5262
"(\\w*)" + // in case there are any characters / white spaces
5363
WHITE_SPACES +

0 commit comments

Comments
 (0)