You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| --output | The file where to save the output to | getJS --output output.txt |
42
+
| --verbose | Display info of what is going on | getJS --verbose |
43
+
| --complete | Complete the urls. e.g. /js/index.js -> htt<span></span>ps://example.<span></span>com/js/index.js | getJS --complete |
44
+
| --resolve | Resolve the output and filter out the non existing files (Can only be used in combination with --complete) | getJS --complete --resolve |
45
+
| --nocolors | Don't color the output | getJS --nocolors |
42
46
43
47
## Examples
44
48
@@ -53,32 +57,32 @@ $ cat domains.txt | getJS
53
57
54
58
To save the js files, you can use:
55
59
```bash
56
-
$ getJS -url=https://poc-server.com | xargs wget
60
+
$ getJS --urlhttps://poc-server.com | xargs wget
57
61
```
58
62
59
63
If you would like the output to be in JSON format, you can combine it with [@Tomnomnom's](https://github.com/tomnomnom)[toJSON](https://github.com/tomnomnom/hacks/tree/master/tojson):
60
64
```bash
61
-
$ getJS -url=https://poc-server.com | tojson
65
+
$ getJS --urlhttps://poc-server.com | tojson
62
66
```
63
67
64
68
To feed urls from a file use:
65
69
```bash
66
-
$ getJS -input=domains.txt
70
+
$ getJS --inputdomains.txt
67
71
```
68
72
69
73
To save the results to a file, and don't display anything, use:
If you want to have a list of full urls as output use:
75
79
```bash
76
-
$ getJS -url=domains.txt -complete
80
+
$ getJS --urldomains.txt -complete
77
81
```
78
82
79
83
If you want to only show the existing js files, use:
80
84
```bash
81
-
$ getJS -url=domains.txt -complete -resolve
85
+
$ getJS --urldomains.txt --complete --resolve
82
86
```
83
87
84
88
## Built With
@@ -102,4 +106,4 @@ This project is licensed under the MIT License.
102
106
103
107
---
104
108
105
-
*This is my first tool written in GO. I created it to learn the language more. Please don't hate on my coding style xD (useful feeback is always welcome!)*
109
+
*This is my first tool written in GO. I created it to learn the language more. (useful feeback is always welcome!)*
0 commit comments