XSpear 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.idea/workspace.xml +78 -54
- data/README.md +3 -2
- data/exe/XSpear +7 -3
- data/lib/XSpear/banner.rb +1 -1
- data/lib/XSpear/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 855ea130c3f50107d33a888fb4ebf980f407d9c691bae88a56391d6b396b2610
|
4
|
+
data.tar.gz: 49378b78b909f474d77bd45b5cd42cb455bee921b9e5f119d0ac6e8d8cb9d3c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bbe5ae5c856fb584ce8b9abf1c41ca9cec72134e3a23b61b8ee6d76997cd8884d45c01a4efdbc4e019d0169dd7755f216a16030cde359663260a3b5d5c1fa73c
|
7
|
+
data.tar.gz: fb677554467b91f06c415f6c13a57eeab6abb516a7160245487eeb538c3ddbf4af88591461bc1dbdd90024a08c7beb9fb2790c68f477e55d52fabdf192ceec99
|
data/.idea/workspace.xml
CHANGED
@@ -2,10 +2,8 @@
|
|
2
2
|
<project version="4">
|
3
3
|
<component name="ChangeListManager">
|
4
4
|
<list default="true" id="4ee2e581-45d7-4c90-b6a1-e92e4b5829dd" name="Default Changelist" comment="">
|
5
|
-
<change beforePath="$PROJECT_DIR$/.idea/XSpear.iml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/XSpear.iml" afterDir="false" />
|
6
5
|
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
7
|
-
<change beforePath="$PROJECT_DIR$/XSpear-1.0.
|
8
|
-
<change beforePath="$PROJECT_DIR$/XSpear.gemspec" beforeDir="false" afterPath="$PROJECT_DIR$/XSpear.gemspec" afterDir="false" />
|
6
|
+
<change beforePath="$PROJECT_DIR$/XSpear-1.0.1.gem" beforeDir="false" />
|
9
7
|
<change beforePath="$PROJECT_DIR$/lib/XSpear/version.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/XSpear/version.rb" afterDir="false" />
|
10
8
|
</list>
|
11
9
|
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
@@ -20,15 +18,10 @@
|
|
20
18
|
<component name="FileEditorManager">
|
21
19
|
<leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
|
22
20
|
<file pinned="false" current-in-tab="false">
|
23
|
-
<entry file="file://$PROJECT_DIR$/
|
24
|
-
<provider selected="true" editor-type-id="text-editor" />
|
25
|
-
</entry>
|
26
|
-
</file>
|
27
|
-
<file pinned="false" current-in-tab="false">
|
28
|
-
<entry file="file://$PROJECT_DIR$/lib/XSpear.rb">
|
21
|
+
<entry file="file://$PROJECT_DIR$/exe/XSpear">
|
29
22
|
<provider selected="true" editor-type-id="text-editor">
|
30
|
-
<state relative-caret-position="
|
31
|
-
<caret line="
|
23
|
+
<state relative-caret-position="485">
|
24
|
+
<caret line="66" column="7" selection-start-line="66" selection-start-column="7" selection-end-line="66" selection-end-column="7" />
|
32
25
|
</state>
|
33
26
|
</provider>
|
34
27
|
</entry>
|
@@ -37,8 +30,8 @@
|
|
37
30
|
<entry file="file://$PROJECT_DIR$/README.md">
|
38
31
|
<provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
|
39
32
|
<state split_layout="SPLIT">
|
40
|
-
<first_editor relative-caret-position="
|
41
|
-
<caret line="
|
33
|
+
<first_editor relative-caret-position="45">
|
34
|
+
<caret line="3" column="132" selection-start-line="3" selection-start-column="132" selection-end-line="3" selection-end-column="132" />
|
42
35
|
</first_editor>
|
43
36
|
<second_editor />
|
44
37
|
</state>
|
@@ -62,8 +55,8 @@
|
|
62
55
|
<file pinned="false" current-in-tab="false">
|
63
56
|
<entry file="file://$PROJECT_DIR$/lib/XSpear/banner.rb">
|
64
57
|
<provider selected="true" editor-type-id="text-editor">
|
65
|
-
<state relative-caret-position="
|
66
|
-
<caret line="
|
58
|
+
<state relative-caret-position="180">
|
59
|
+
<caret line="12" column="69" selection-start-line="12" selection-start-column="69" selection-end-line="12" selection-end-column="69" />
|
67
60
|
</state>
|
68
61
|
</provider>
|
69
62
|
</entry>
|
@@ -81,7 +74,7 @@
|
|
81
74
|
<entry file="file://$PROJECT_DIR$/lib/XSpear/version.rb">
|
82
75
|
<provider selected="true" editor-type-id="text-editor">
|
83
76
|
<state relative-caret-position="15">
|
84
|
-
<caret line="1" column="
|
77
|
+
<caret line="1" column="19" lean-forward="true" selection-start-line="1" selection-start-column="19" selection-end-line="1" selection-end-column="19" />
|
85
78
|
</state>
|
86
79
|
</provider>
|
87
80
|
</entry>
|
@@ -89,12 +82,17 @@
|
|
89
82
|
<file pinned="false" current-in-tab="false">
|
90
83
|
<entry file="file://$PROJECT_DIR$/XSpear.gemspec">
|
91
84
|
<provider selected="true" editor-type-id="text-editor">
|
92
|
-
<state relative-caret-position="
|
93
|
-
<caret line="
|
85
|
+
<state relative-caret-position="88">
|
86
|
+
<caret line="7" column="23" selection-start-line="7" selection-start-column="23" selection-end-line="7" selection-end-column="38" />
|
94
87
|
</state>
|
95
88
|
</provider>
|
96
89
|
</entry>
|
97
90
|
</file>
|
91
|
+
<file pinned="false" current-in-tab="false">
|
92
|
+
<entry file="file://$PROJECT_DIR$/Rakefile">
|
93
|
+
<provider selected="true" editor-type-id="text-editor" />
|
94
|
+
</entry>
|
95
|
+
</file>
|
98
96
|
<file pinned="false" current-in-tab="false">
|
99
97
|
<entry file="file:///usr/local/bin/rake">
|
100
98
|
<provider selected="true" editor-type-id="text-editor" />
|
@@ -109,12 +107,12 @@
|
|
109
107
|
<option name="CHANGED_PATHS">
|
110
108
|
<list>
|
111
109
|
<option value="$PROJECT_DIR$/lib/XSpear/log.rb" />
|
112
|
-
<option value="$PROJECT_DIR$/lib/XSpear/banner.rb" />
|
113
110
|
<option value="$PROJECT_DIR$/lib/XSpear/XSpearRepoter.rb" />
|
114
|
-
<option value="$PROJECT_DIR$/exe/XSpear" />
|
115
111
|
<option value="$PROJECT_DIR$/lib/XSpear.rb" />
|
116
|
-
<option value="$PROJECT_DIR$/README.md" />
|
117
112
|
<option value="$PROJECT_DIR$/XSpear.gemspec" />
|
113
|
+
<option value="$PROJECT_DIR$/README.md" />
|
114
|
+
<option value="$PROJECT_DIR$/lib/XSpear/banner.rb" />
|
115
|
+
<option value="$PROJECT_DIR$/exe/XSpear" />
|
118
116
|
<option value="$PROJECT_DIR$/lib/XSpear/version.rb" />
|
119
117
|
</list>
|
120
118
|
</option>
|
@@ -228,7 +226,7 @@
|
|
228
226
|
<option name="presentableId" value="Default" />
|
229
227
|
<updated>1562942814778</updated>
|
230
228
|
<workItem from="1562942816004" duration="15337000" />
|
231
|
-
<workItem from="1563638656518" duration="
|
229
|
+
<workItem from="1563638656518" duration="2097000" />
|
232
230
|
</task>
|
233
231
|
<task id="LOCAL-00001" summary="init update">
|
234
232
|
<created>1562945899597</created>
|
@@ -370,17 +368,38 @@
|
|
370
368
|
<option name="project" value="LOCAL" />
|
371
369
|
<updated>1563555198677</updated>
|
372
370
|
</task>
|
373
|
-
<
|
371
|
+
<task id="LOCAL-00021" summary="modify dependency rspec">
|
372
|
+
<created>1563638920975</created>
|
373
|
+
<option name="number" value="00021" />
|
374
|
+
<option name="presentableId" value="LOCAL-00021" />
|
375
|
+
<option name="project" value="LOCAL" />
|
376
|
+
<updated>1563638920975</updated>
|
377
|
+
</task>
|
378
|
+
<task id="LOCAL-00022" summary="Change Badge(version)">
|
379
|
+
<created>1563639231885</created>
|
380
|
+
<option name="number" value="00022" />
|
381
|
+
<option name="presentableId" value="LOCAL-00022" />
|
382
|
+
<option name="project" value="LOCAL" />
|
383
|
+
<updated>1563639231885</updated>
|
384
|
+
</task>
|
385
|
+
<task id="LOCAL-00023" summary="Add show version & edit help, version in banner">
|
386
|
+
<created>1563646762017</created>
|
387
|
+
<option name="number" value="00023" />
|
388
|
+
<option name="presentableId" value="LOCAL-00023" />
|
389
|
+
<option name="project" value="LOCAL" />
|
390
|
+
<updated>1563646762017</updated>
|
391
|
+
</task>
|
392
|
+
<option name="localTasksCounter" value="24" />
|
374
393
|
<servers />
|
375
394
|
</component>
|
376
395
|
<component name="TimeTrackingManager">
|
377
|
-
<option name="totallyTimeSpent" value="
|
396
|
+
<option name="totallyTimeSpent" value="17434000" />
|
378
397
|
</component>
|
379
398
|
<component name="ToolWindowManager">
|
380
399
|
<frame x="-1920" y="-620" width="1920" height="1057" extended-state="6" />
|
381
400
|
<editor active="true" />
|
382
401
|
<layout>
|
383
|
-
<window_info
|
402
|
+
<window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.16080937" />
|
384
403
|
<window_info id="Structure" order="1" side_tool="true" weight="0.25" />
|
385
404
|
<window_info id="Favorites" order="2" side_tool="true" />
|
386
405
|
<window_info anchor="bottom" id="Messages" weight="0.32953367" />
|
@@ -394,7 +413,7 @@
|
|
394
413
|
<window_info anchor="bottom" id="Docker" order="7" show_stripe_button="false" />
|
395
414
|
<window_info anchor="bottom" id="Database Changes" order="8" />
|
396
415
|
<window_info anchor="bottom" id="Version Control" order="9" />
|
397
|
-
<window_info anchor="bottom" id="Terminal" order="10" visible="true" weight="0.29637307" />
|
416
|
+
<window_info active="true" anchor="bottom" id="Terminal" order="10" visible="true" weight="0.29637307" />
|
398
417
|
<window_info anchor="bottom" id="Event Log" order="11" side_tool="true" />
|
399
418
|
<window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
|
400
419
|
<window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
|
@@ -418,7 +437,9 @@
|
|
418
437
|
<MESSAGE value="1.0.0 Final commit" />
|
419
438
|
<MESSAGE value="Edit readme" />
|
420
439
|
<MESSAGE value="modify dependency rspec" />
|
421
|
-
<
|
440
|
+
<MESSAGE value="Change Badge(version)" />
|
441
|
+
<MESSAGE value="Add show version & edit help, version in banner" />
|
442
|
+
<option name="LAST_COMMIT_MESSAGE" value="Add show version & edit help, version in banner" />
|
422
443
|
</component>
|
423
444
|
<component name="editorHistoryManager">
|
424
445
|
<entry file="file://$USER_HOME$/.rvm/gems/ruby-2.4.6/gems/bundler-2.0.1/lib/bundler/rubygems_integration.rb">
|
@@ -428,13 +449,6 @@
|
|
428
449
|
</state>
|
429
450
|
</provider>
|
430
451
|
</entry>
|
431
|
-
<entry file="file://$PROJECT_DIR$/exe/XSpear">
|
432
|
-
<provider selected="true" editor-type-id="text-editor">
|
433
|
-
<state relative-caret-position="990">
|
434
|
-
<caret line="66" column="3" selection-start-line="66" selection-start-column="3" selection-end-line="66" selection-end-column="3" />
|
435
|
-
</state>
|
436
|
-
</provider>
|
437
|
-
</entry>
|
438
452
|
<entry file="file://$PROJECT_DIR$/bin/console">
|
439
453
|
<provider selected="true" editor-type-id="text-editor" />
|
440
454
|
</entry>
|
@@ -445,16 +459,6 @@
|
|
445
459
|
</state>
|
446
460
|
</provider>
|
447
461
|
</entry>
|
448
|
-
<entry file="file://$PROJECT_DIR$/README.md">
|
449
|
-
<provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
|
450
|
-
<state split_layout="SPLIT">
|
451
|
-
<first_editor relative-caret-position="135">
|
452
|
-
<caret line="9" column="29" selection-start-line="9" selection-start-column="29" selection-end-line="9" selection-end-column="29" />
|
453
|
-
</first_editor>
|
454
|
-
<second_editor />
|
455
|
-
</state>
|
456
|
-
</provider>
|
457
|
-
</entry>
|
458
462
|
<entry file="file://$PROJECT_DIR$/bin/setup">
|
459
463
|
<provider selected="true" editor-type-id="text-editor" />
|
460
464
|
</entry>
|
@@ -465,13 +469,6 @@
|
|
465
469
|
</state>
|
466
470
|
</provider>
|
467
471
|
</entry>
|
468
|
-
<entry file="file://$PROJECT_DIR$/lib/XSpear/banner.rb">
|
469
|
-
<provider selected="true" editor-type-id="text-editor">
|
470
|
-
<state relative-caret-position="195">
|
471
|
-
<caret line="13" column="3" selection-start-line="13" selection-start-column="3" selection-end-line="13" selection-end-column="3" />
|
472
|
-
</state>
|
473
|
-
</provider>
|
474
|
-
</entry>
|
475
472
|
<entry file="file://$PROJECT_DIR$/lib/XSpear/log.rb">
|
476
473
|
<provider selected="true" editor-type-id="text-editor">
|
477
474
|
<state relative-caret-position="195">
|
@@ -482,17 +479,44 @@
|
|
482
479
|
<entry file="file:///usr/local/bin/rake">
|
483
480
|
<provider selected="true" editor-type-id="text-editor" />
|
484
481
|
</entry>
|
482
|
+
<entry file="file://$PROJECT_DIR$/Rakefile">
|
483
|
+
<provider selected="true" editor-type-id="text-editor" />
|
484
|
+
</entry>
|
485
|
+
<entry file="file://$PROJECT_DIR$/README.md">
|
486
|
+
<provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
|
487
|
+
<state split_layout="SPLIT">
|
488
|
+
<first_editor relative-caret-position="45">
|
489
|
+
<caret line="3" column="132" selection-start-line="3" selection-start-column="132" selection-end-line="3" selection-end-column="132" />
|
490
|
+
</first_editor>
|
491
|
+
<second_editor />
|
492
|
+
</state>
|
493
|
+
</provider>
|
494
|
+
</entry>
|
485
495
|
<entry file="file://$PROJECT_DIR$/XSpear.gemspec">
|
486
496
|
<provider selected="true" editor-type-id="text-editor">
|
487
|
-
<state relative-caret-position="
|
488
|
-
<caret line="
|
497
|
+
<state relative-caret-position="88">
|
498
|
+
<caret line="7" column="23" selection-start-line="7" selection-start-column="23" selection-end-line="7" selection-end-column="38" />
|
499
|
+
</state>
|
500
|
+
</provider>
|
501
|
+
</entry>
|
502
|
+
<entry file="file://$PROJECT_DIR$/lib/XSpear/banner.rb">
|
503
|
+
<provider selected="true" editor-type-id="text-editor">
|
504
|
+
<state relative-caret-position="180">
|
505
|
+
<caret line="12" column="69" selection-start-line="12" selection-start-column="69" selection-end-line="12" selection-end-column="69" />
|
506
|
+
</state>
|
507
|
+
</provider>
|
508
|
+
</entry>
|
509
|
+
<entry file="file://$PROJECT_DIR$/exe/XSpear">
|
510
|
+
<provider selected="true" editor-type-id="text-editor">
|
511
|
+
<state relative-caret-position="485">
|
512
|
+
<caret line="66" column="7" selection-start-line="66" selection-start-column="7" selection-end-line="66" selection-end-column="7" />
|
489
513
|
</state>
|
490
514
|
</provider>
|
491
515
|
</entry>
|
492
516
|
<entry file="file://$PROJECT_DIR$/lib/XSpear/version.rb">
|
493
517
|
<provider selected="true" editor-type-id="text-editor">
|
494
518
|
<state relative-caret-position="15">
|
495
|
-
<caret line="1" column="
|
519
|
+
<caret line="1" column="19" lean-forward="true" selection-start-line="1" selection-start-column="19" selection-end-line="1" selection-end-column="19" />
|
496
520
|
</state>
|
497
521
|
</provider>
|
498
522
|
</entry>
|
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# XSpear
|
2
2
|
XSpear is XSS Scanner on ruby gems
|
3
3
|
|
4
|
-
<img src="https://img.shields.io/static/v1.svg?label=lang&message=ruby&color=RED"> <img src="https://img.shields.io/
|
4
|
+
<img src="https://img.shields.io/static/v1.svg?label=lang&message=ruby&color=RED"> <img src="https://img.shields.io/gem/v/XSpear.svg"> <img src="https://img.shields.io/gem/dtv/XSpear.svg"> <img src="https://img.shields.io/github/license/hahwul/XSpear.svg"> <a href="https://twitter.com/intent/follow?screen_name=hahwul"><img src="https://img.shields.io/static/v1.svg?label=follow&message=hahwul&color=black"></a>
|
5
5
|
|
6
6
|
## Key features
|
7
7
|
- Pattern matching based XSS scanning
|
@@ -36,12 +36,13 @@ And then execute:
|
|
36
36
|
$ bundle
|
37
37
|
|
38
38
|
### Dependency gems
|
39
|
-
`colorize` `selenium-webdriver`<br>
|
39
|
+
`colorize` `selenium-webdriver` `terminal-table`<br>
|
40
40
|
If you configured it to install automatically in the Gem library, but it behaves abnormally, install it with the following command.
|
41
41
|
|
42
42
|
```
|
43
43
|
$ gem install colorize
|
44
44
|
$ gem install selenium-webdriver
|
45
|
+
$ gem install terminal-table
|
45
46
|
```
|
46
47
|
|
47
48
|
## Usage on cli
|
data/exe/XSpear
CHANGED
@@ -54,13 +54,17 @@ class Parser
|
|
54
54
|
puts opts
|
55
55
|
exit
|
56
56
|
end
|
57
|
-
|
57
|
+
opts.on('--version', 'Show XSpear version') do
|
58
|
+
puts XSpear::VERSION
|
59
|
+
exit
|
60
|
+
end
|
58
61
|
opts.on('--update', 'Update with online') do
|
59
|
-
puts
|
62
|
+
puts "[RubyGem user] : $ gem update XSpear"
|
63
|
+
puts "[Soft | Developer & Git clone user] : $ git pull -v "
|
64
|
+
puts "[Hard | Developer & Git clone user] : $ git reset --hard HEAD; git pull -v "
|
60
65
|
exit
|
61
66
|
end
|
62
67
|
end
|
63
|
-
|
64
68
|
opt_parser.parse!(options)
|
65
69
|
args
|
66
70
|
end
|
data/lib/XSpear/banner.rb
CHANGED
data/lib/XSpear/version.rb
CHANGED