Skip to content

Commit fd5a5e5

Browse files
authored
Merge pull request #1086 from yogeshojha/fixes-for-tool-arsenal
fix(tool_arsenal): incorrect regex version numbers
2 parents 6923109 + d315448 commit fd5a5e5

File tree

3 files changed

+15
-36
lines changed

3 files changed

+15
-36
lines changed

web/Dockerfile

-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ ENV PYTHONDONTWRITEBYTECODE 1
6767
ENV PYTHONUNBUFFERED 1
6868

6969
# Download Go packages
70-
RUN go install -v -v github.com/bp0lr/gauplus@latest
7170
RUN go install -v github.com/jaeles-project/gospider@latest
7271
RUN go install -v github.com/tomnomnom/gf@latest
7372
RUN go install -v github.com/tomnomnom/unfurl@latest

web/fixtures/external_tools.yaml

+15-32
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
version_lookup_command: naabu -version
7171
update_command: go install -v github.com/projectdiscovery/naabu/v2/cmd/naabu@latest
7272
install_command: go install -v github.com/projectdiscovery/naabu/v2/cmd/naabu@latest
73-
version_match_regex: ' (\d+\.)?(\d+\.)?(\*|\d+)'
73+
version_match_regex: '(\b\d+\.\d+\.\d+\b)'
7474
is_default: true
7575
is_subdomain_gathering: false
7676
is_github_cloned: false
@@ -171,40 +171,23 @@
171171
subdomain_gathering_command: null
172172
- model: scanEngine.installedexternaltool
173173
pk: 10
174-
fields:
175-
logo_url: null
176-
name: gauplus
177-
description: Get all URLs
178-
github_url: https://github.com/bp0lr/gauplus
179-
license_url: https://github.com/bp0lr/gauplus/blob/main/LICENSE
180-
version_lookup_command: gauplus -version
181-
update_command: go install -v -v github.com/bp0lr/gauplus@latest
182-
install_command: go install -v -v github.com/bp0lr/gauplus@latest
183-
version_match_regex: '[vV]*(\d+\.)?(\d+\.)?(\*|\d+)'
184-
is_default: true
185-
is_subdomain_gathering: false
186-
is_github_cloned: true
187-
github_clone_path: /usr/src/github/gauplus
188-
subdomain_gathering_command: null
189-
- model: scanEngine.installedexternaltool
190-
pk: 11
191174
fields:
192175
logo_url: null
193176
name: OneForAll
194177
description: A powerful subdomain integration tool.
195178
github_url: https://github.com/shmilylty/OneForAll
196179
license_url: https://github.com/shmilylty/OneForAll/blob/master/LICENSE
197-
version_lookup_command: python3 /usr/src/github/OneForAll/oneforall.py version
180+
version_lookup_command: cat /usr/src/github/OneForAll/oneforall.py
198181
update_command: git pull
199182
install_command: git clone https://github.com/shmilylty/OneForAll
200-
version_match_regex: 'v(\d+\.)?(\d+\.)?(\*|\d+)'
183+
version_match_regex: v\d+\.\d+\.\d+\b
201184
is_default: true
202185
is_subdomain_gathering: true
203186
is_github_cloned: true
204187
github_clone_path: /usr/src/github/OneForAll
205188
subdomain_gathering_command: null
206189
- model: scanEngine.installedexternaltool
207-
pk: 12
190+
pk: 11
208191
fields:
209192
logo_url: https://raw.githubusercontent.com/laramies/theHarvester/master/theHarvester-logo.png
210193
name: theHarvester
@@ -215,17 +198,17 @@
215198
names, subdomains, IPs and URLs using multiple public data sources.
216199
github_url: https://github.com/laramies/theHarvester
217200
license_url: https://github.com/laramies/theHarvester/blob/master/README/LICENSES
218-
version_lookup_command: null
201+
version_lookup_command: cat /usr/src/github/theHarvester/theHarvester/lib/version.py
219202
update_command: git pull
220203
install_command: git clone https://github.com/laramies/theHarvester
221-
version_match_regex: (\d+\.)?(\d+\.)?(\*|\d+)
204+
version_match_regex: \b\d+\.\d+\.\d+\b
222205
is_default: true
223206
is_subdomain_gathering: false
224207
is_github_cloned: true
225208
github_clone_path: /usr/src/github/theHarvester
226209
subdomain_gathering_command: null
227210
- model: scanEngine.installedexternaltool
228-
pk: 13
211+
pk: 12
229212
fields:
230213
logo_url: null
231214
name: ctfr
@@ -244,7 +227,7 @@
244227
github_clone_path: /usr/src/github/ctfr
245228
subdomain_gathering_command: null
246229
- model: scanEngine.installedexternaltool
247-
pk: 14
230+
pk: 13
248231
fields:
249232
logo_url: https://user-images.githubusercontent.com/8293321/174841003-01a62bad-2ecf-4874-89c4-efa53dd56884.png
250233
name: tlsx
@@ -261,14 +244,14 @@
261244
github_clone_path: null
262245
subdomain_gathering_command: null
263246
- model: scanEngine.installedexternaltool
264-
pk: 15
247+
pk: 14
265248
fields:
266249
logo_url: https://avatars.githubusercontent.com/u/79084675?v=4
267250
name: netlas
268251
description: Non-intrusive Internet Scanner.
269252
github_url: https://github.com/netlas-io/netlas-python
270253
license_url: https://github.com/netlas-io/netlas-python/blob/master/LICENSE
271-
version_lookup_command: null
254+
version_lookup_command: pip3 show netlas
272255
update_command: pip3 install netlas --update
273256
install_command: pip3 install netlas
274257
version_match_regex: (\d+\.)?(\d+\.)?(\*|\d+)
@@ -278,7 +261,7 @@
278261
github_clone_path: null
279262
subdomain_gathering_command: null
280263
- model: scanEngine.installedexternaltool
281-
pk: 16
264+
pk: 15
282265
fields:
283266
logo_url: https://github.githubassets.com/images/icons/emoji/unicode/1f98a.png
284267
name: dalfox
@@ -296,7 +279,7 @@
296279
github_clone_path: null
297280
subdomain_gathering_command: null
298281
- model: scanEngine.installedexternaltool
299-
pk: 17
282+
pk: 16
300283
fields:
301284
logo_url: https://user-images.githubusercontent.com/8293321/196779266-421c79d4-643a-4f73-9b54-3da379bbac09.png
302285
name: katana
@@ -313,7 +296,7 @@
313296
github_clone_path: null
314297
subdomain_gathering_command: null
315298
- model: scanEngine.installedexternaltool
316-
pk: 18
299+
pk: 17
317300
fields:
318301
logo_url: https://user-images.githubusercontent.com/25837540/90128972-fc3bdf00-dd91-11ea-8c3b-0d6f4e8c6ba3.png
319302
name: crlfuzz
@@ -330,7 +313,7 @@
330313
github_clone_path: null
331314
subdomain_gathering_command: null
332315
- model: scanEngine.installedexternaltool
333-
pk: 19
316+
pk: 18
334317
fields:
335318
logo_url: null
336319
name: gau
@@ -345,4 +328,4 @@
345328
is_subdomain_gathering: false
346329
is_github_cloned: false
347330
github_clone_path: null
348-
subdomain_gathering_command: null
331+
subdomain_gathering_command: null

web/reNgine/tasks.py

-3
Original file line numberDiff line numberDiff line change
@@ -1759,21 +1759,18 @@ def fetch_url(self, urls=[], ctx={}, description=None):
17591759
# Tools cmds
17601760
cmd_map = {
17611761
'gau': f'gau',
1762-
'gauplus': f'gauplus -random-agent',
17631762
'hakrawler': 'hakrawler -subs -u',
17641763
'waybackurls': 'waybackurls',
17651764
'gospider': f'gospider -S {input_path} --js -d 2 --sitemap --robots -w -r',
17661765
'katana': f'katana -list {input_path} -silent -jc -kf all -d 3 -fs rdn',
17671766
}
17681767
if proxy:
17691768
cmd_map['gau'] += f' --proxy "{proxy}"'
1770-
cmd_map['gauplus'] += f' -p "{proxy}"'
17711769
cmd_map['gospider'] += f' -p {proxy}'
17721770
cmd_map['hakrawler'] += f' -proxy {proxy}'
17731771
cmd_map['katana'] += f' -proxy {proxy}'
17741772
if threads > 0:
17751773
cmd_map['gau'] += f' --threads {threads}'
1776-
cmd_map['gauplus'] += f' -t {threads}'
17771774
cmd_map['gospider'] += f' -t {threads}'
17781775
cmd_map['katana'] += f' -c {threads}'
17791776
if custom_header:

0 commit comments

Comments
 (0)