ronin-app 0.1.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.dockerignore +3 -0
- data/.document +6 -0
- data/.env.dev +1 -0
- data/.github/workflows/ruby.yml +44 -0
- data/.gitignore +16 -0
- data/.rspec +1 -0
- data/.rubocop.yml +26 -0
- data/.ruby-version +1 -0
- data/.yardopts +1 -0
- data/CONTRIBUTING.md +34 -0
- data/COPYING.txt +661 -0
- data/ChangeLog.md +38 -0
- data/Dockerfile +27 -0
- data/Gemfile +61 -0
- data/Procfile +2 -0
- data/Procfile.dev +2 -0
- data/README.md +215 -0
- data/Rakefile +44 -0
- data/app/db.rb +680 -0
- data/app/scanning.rb +173 -0
- data/app.rb +372 -0
- data/bin/ronin-app +34 -0
- data/config/database.rb +17 -0
- data/config/puma.rb +24 -0
- data/config/redis.rb +4 -0
- data/config/sidekiq.rb +23 -0
- data/config/sidekiq.yml +12 -0
- data/config.ru +33 -0
- data/docker-compose.yml +45 -0
- data/etc/systemd/user/ronin-app-sidekiq.1.service +17 -0
- data/etc/systemd/user/ronin-app-web.1.service +18 -0
- data/etc/systemd/user/ronin-app.target +5 -0
- data/gemspec.yml +55 -0
- data/lib/middleware/sidekiq/active_record_connection_pool.rb +47 -0
- data/lib/ronin/app/cli.rb +197 -0
- data/lib/ronin/app/helpers/html.rb +71 -0
- data/lib/ronin/app/root.rb +28 -0
- data/lib/ronin/app/schemas/params_schema.rb +66 -0
- data/lib/ronin/app/schemas/payloads/build_schema.rb +56 -0
- data/lib/ronin/app/schemas/payloads/encoders/encode_schema.rb +60 -0
- data/lib/ronin/app/types/import.rb +35 -0
- data/lib/ronin/app/types/nmap.rb +81 -0
- data/lib/ronin/app/types/spider.rb +49 -0
- data/lib/ronin/app/types/vulns.rb +69 -0
- data/lib/ronin/app/types.rb +66 -0
- data/lib/ronin/app/validations/import_params.rb +71 -0
- data/lib/ronin/app/validations/install_repo_params.rb +78 -0
- data/lib/ronin/app/validations/masscan_params.rb +122 -0
- data/lib/ronin/app/validations/nmap_params.rb +183 -0
- data/lib/ronin/app/validations/recon_params.rb +86 -0
- data/lib/ronin/app/validations/spider_params.rb +103 -0
- data/lib/ronin/app/validations/vulns_params.rb +83 -0
- data/lib/ronin/app/version.rb +26 -0
- data/log/.gitkeep +0 -0
- data/man/ronin-app.1 +63 -0
- data/man/ronin-app.1.md +61 -0
- data/public/images/favicon.png +0 -0
- data/public/images/favicon.svg +78 -0
- data/public/images/logo.svg +78 -0
- data/public/images/sidekiq.svg +24 -0
- data/public/javascript/app.js +60 -0
- data/public/javascript/notes.js +28 -0
- data/public/javascript/tabs.js +40 -0
- data/public/stylesheets/app.css +216 -0
- data/public/stylesheets/bulma.min.css +1 -0
- data/ronin-app.gemspec +63 -0
- data/scripts/console +7 -0
- data/scripts/server +134 -0
- data/scripts/setup +447 -0
- data/scripts/update +55 -0
- data/tmp/.gitkeep +0 -0
- data/views/_authors.erb +62 -0
- data/views/_delete.erb +4 -0
- data/views/_delete_all.erb +4 -0
- data/views/_encoding_tabs.erb +25 -0
- data/views/_notes.erb +33 -0
- data/views/_pagination.erb +1 -0
- data/views/_param_fields.erb +66 -0
- data/views/_params.erb +35 -0
- data/views/about.erb +30 -0
- data/views/db/advisories/index.erb +30 -0
- data/views/db/advisories/show.erb +105 -0
- data/views/db/asns/index.erb +19 -0
- data/views/db/asns/show.erb +61 -0
- data/views/db/credentials/index.erb +30 -0
- data/views/db/credentials/show.erb +51 -0
- data/views/db/email_addresses/index.erb +30 -0
- data/views/db/email_addresses/show.erb +44 -0
- data/views/db/host_names/index.erb +30 -0
- data/views/db/host_names/show.erb +52 -0
- data/views/db/ip_addresses/index.erb +19 -0
- data/views/db/ip_addresses/show.erb +98 -0
- data/views/db/mac_addresses/index.erb +19 -0
- data/views/db/mac_addresses/show.erb +62 -0
- data/views/db/open_ports/index.erb +19 -0
- data/views/db/open_ports/show.erb +87 -0
- data/views/db/organizations/departments/show.erb +82 -0
- data/views/db/organizations/index.erb +28 -0
- data/views/db/organizations/members/show.erb +87 -0
- data/views/db/organizations/show.erb +111 -0
- data/views/db/oses/index.erb +19 -0
- data/views/db/oses/show.erb +46 -0
- data/views/db/passwords/index.erb +30 -0
- data/views/db/passwords/show.erb +52 -0
- data/views/db/people/index.erb +31 -0
- data/views/db/people/show.erb +120 -0
- data/views/db/phone_numbers/index.erb +30 -0
- data/views/db/phone_numbers/show.erb +63 -0
- data/views/db/ports/index.erb +30 -0
- data/views/db/ports/show.erb +70 -0
- data/views/db/services/index.erb +30 -0
- data/views/db/services/show.erb +65 -0
- data/views/db/software/index.erb +19 -0
- data/views/db/software/show.erb +52 -0
- data/views/db/software_vendors/index.erb +19 -0
- data/views/db/software_vendors/show.erb +36 -0
- data/views/db/street_addresses/index.erb +19 -0
- data/views/db/street_addresses/show.erb +63 -0
- data/views/db/url_query_param_names/index.erb +19 -0
- data/views/db/url_query_param_names/show.erb +50 -0
- data/views/db/url_schemes/index.erb +19 -0
- data/views/db/url_schemes/show.erb +36 -0
- data/views/db/urls/index.erb +30 -0
- data/views/db/urls/show.erb +103 -0
- data/views/db/user_names/index.erb +30 -0
- data/views/db/user_names/show.erb +48 -0
- data/views/db/vulns/index.erb +19 -0
- data/views/db/vulns/show.erb +104 -0
- data/views/db.erb +152 -0
- data/views/exploits/index.erb +9 -0
- data/views/exploits/show.erb +100 -0
- data/views/import.erb +30 -0
- data/views/index.erb +7 -0
- data/views/layout.erb +98 -0
- data/views/masscan.erb +459 -0
- data/views/nmap.erb +1009 -0
- data/views/payloads/build.erb +19 -0
- data/views/payloads/encoders/encode.erb +35 -0
- data/views/payloads/encoders/index.erb +9 -0
- data/views/payloads/encoders/show.erb +47 -0
- data/views/payloads/index.erb +9 -0
- data/views/payloads/show.erb +47 -0
- data/views/queue.erb +28 -0
- data/views/recon.erb +55 -0
- data/views/repos/index.erb +30 -0
- data/views/repos/install.erb +45 -0
- data/views/repos/show.erb +39 -0
- data/views/spider.erb +372 -0
- data/views/vulns.erb +214 -0
- data/workers/import.rb +96 -0
- data/workers/install_repo.rb +40 -0
- data/workers/masscan.rb +135 -0
- data/workers/nmap.rb +216 -0
- data/workers/purge_repos.rb +40 -0
- data/workers/recon.rb +95 -0
- data/workers/remove_repo.rb +40 -0
- data/workers/spider.rb +148 -0
- data/workers/update_repo.rb +42 -0
- data/workers/update_repos.rb +40 -0
- data/workers/vulns.rb +111 -0
- data/workers.rb +37 -0
- metadata +538 -0
data/views/masscan.erb
ADDED
@@ -0,0 +1,459 @@
|
|
1
|
+
<script type="text/javascript" src="/javascript/tabs.js"></script>
|
2
|
+
<h1>masscan</h1>
|
3
|
+
|
4
|
+
<form action="/masscan" method="post">
|
5
|
+
<div class="field">
|
6
|
+
<label class="label is-required">Targets</label>
|
7
|
+
<div class="control">
|
8
|
+
<% if @errors && @errors[:ips] %>
|
9
|
+
<input class="input is-danger" type="text" name="ips" placeholder="192.168.1.1" value="<%=hattr params[:ips] %>">
|
10
|
+
|
11
|
+
<% @errors[:ips].each do |error| %>
|
12
|
+
<p class="help is-danger"><%=h error %></p>
|
13
|
+
<% end %>
|
14
|
+
<% else %>
|
15
|
+
<input class="input" type="text" name="ips" placeholder="192.168.1.1" value="<%=hattr params[:ips] %>">
|
16
|
+
<% end %>
|
17
|
+
</div>
|
18
|
+
</div>
|
19
|
+
|
20
|
+
<div class="field">
|
21
|
+
<label class="label is-required">Ports</label>
|
22
|
+
<div class="control">
|
23
|
+
<% if @errors && @errors[:ports] %>
|
24
|
+
<input class="input is-danger" type="text" name="ports" placeholder="22,25,80,443,8000-9000" value="<%=hattr params[:ports] %>">
|
25
|
+
|
26
|
+
<% @errors[:ports].each do |error| %>
|
27
|
+
<p class="help is-danger"><%=h error %></p>
|
28
|
+
<% end %>
|
29
|
+
<% else %>
|
30
|
+
<input class="input" type="text" name="ports" placeholder="22,25,80,443,8000-9000" value="<%=hattr params[:ports] %>">
|
31
|
+
<% end %>
|
32
|
+
</div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div class="field">
|
36
|
+
<button type="submit" class="button is-primary">Scan</button>
|
37
|
+
</div>
|
38
|
+
|
39
|
+
<div class="tabs is-centered">
|
40
|
+
<ul>
|
41
|
+
<li class="is-active"><a data-tab-id="general">General</a></li>
|
42
|
+
<li><a data-tab-id="timing">Timing</a></li>
|
43
|
+
<li><a data-tab-id="routing">Routing</a></li>
|
44
|
+
<li><a data-tab-id="exclude-include">Exclude/Include</a></li>
|
45
|
+
<li><a data-tab-id="payload-file">Payload File</a></li>
|
46
|
+
<li><a data-tab-id="http">HTTP</a></li>
|
47
|
+
<li><a data-tab-id="logging">Logging</a></li>
|
48
|
+
<li><a data-tab-id="tuning">Tuning</a></li>
|
49
|
+
<li><a data-tab-id="randomization">Randomization</a></li>
|
50
|
+
</ul>
|
51
|
+
</div>
|
52
|
+
|
53
|
+
<div class="tabs-content">
|
54
|
+
<div id="general" class="content-tab is-active">
|
55
|
+
<div class="field">
|
56
|
+
<label class="has-text-weight-semibold">Ping:</label>
|
57
|
+
<input class="checkbox" type="checkbox" name="ping"<%= " checked" if params[:ping] %>>
|
58
|
+
</div>
|
59
|
+
|
60
|
+
<div class="field">
|
61
|
+
<label class="has-text-weight-semibold">Banners:</label>
|
62
|
+
<input class="checkbox" type="checkbox" name="banners"<%= " checked" if params[:banners] %>>
|
63
|
+
</div>
|
64
|
+
|
65
|
+
<div class="field">
|
66
|
+
<label class="label">Config File:</label>
|
67
|
+
<div class="control">
|
68
|
+
<% if @errors && @errors[:config_file] %>
|
69
|
+
<input class="input is-danger" type="text" name="config_file" placeholder="/path/to/config_file" value="<%=hattr params[:config_file] %>">
|
70
|
+
|
71
|
+
<% @errors[:config_file].each do |error| %>
|
72
|
+
<p class="help is-danger"><%=h error %></p>
|
73
|
+
<% end %>
|
74
|
+
<% else %>
|
75
|
+
<input class="input" type="text" name="config_file" placeholder="/path/to/config_file" value="<%=hattr params[:config_file] %>">
|
76
|
+
<% end %>
|
77
|
+
</div>
|
78
|
+
</div>
|
79
|
+
</div>
|
80
|
+
|
81
|
+
<div id="timing" class="content-tab">
|
82
|
+
<div class="field">
|
83
|
+
<label class="label">Rate:</label>
|
84
|
+
<div class="control">
|
85
|
+
<% if @errors && @errors[:rate] %>
|
86
|
+
<input class="input is-danger" type="text" name="rate" placeholder="10" value="<%=hattr params[:rate] %>">
|
87
|
+
|
88
|
+
<% @errors[:rate].each do |error| %>
|
89
|
+
<p class="help is-danger"><%=h error %></p>
|
90
|
+
<% end %>
|
91
|
+
<% else %>
|
92
|
+
<input class="input" type="text" name="rate" placeholder="10" value="<%=hattr params[:rate] %>">
|
93
|
+
<% end %>
|
94
|
+
</div>
|
95
|
+
</div>
|
96
|
+
|
97
|
+
<div class="field">
|
98
|
+
<label class="label">Wait:</label>
|
99
|
+
<div class="control">
|
100
|
+
<% if @errors && @errors[:wait] %>
|
101
|
+
<input class="input is-danger" type="text" name="wait" placeholder="NUM" value="<%=hattr params[:wait] %>">
|
102
|
+
|
103
|
+
<% @errors[:wait].each do |error| %>
|
104
|
+
<p class="help is-danger"><%=h error %></p>
|
105
|
+
<% end %>
|
106
|
+
<% else %>
|
107
|
+
<input class="input" type="text" name="wait" placeholder="NUM" value="<%=hattr params[:wait] %>">
|
108
|
+
<% end %>
|
109
|
+
</div>
|
110
|
+
</div>
|
111
|
+
|
112
|
+
<div class="field">
|
113
|
+
<label class="label">Retries:</label>
|
114
|
+
<div class="control">
|
115
|
+
<% if @errors && @errors[:retries] %>
|
116
|
+
<input class="input is-danger" type="text" name="retries" placeholder="NUM" value="<%=hattr params[:retries] %>">
|
117
|
+
|
118
|
+
<% @errors[:retries].each do |error| %>
|
119
|
+
<p class="help is-danger"><%=h error %></p>
|
120
|
+
<% end %>
|
121
|
+
<% else %>
|
122
|
+
<input class="input" type="text" name="retries" placeholder="NUM" value="<%=hattr params[:retries] %>">
|
123
|
+
<% end %>
|
124
|
+
</div>
|
125
|
+
</div>
|
126
|
+
</div>
|
127
|
+
|
128
|
+
<div id="routing" class="content-tab">
|
129
|
+
<div class="field">
|
130
|
+
<label class="label">Adapter:</label>
|
131
|
+
<div class="control">
|
132
|
+
<% if @errors && @errors[:adapter] %>
|
133
|
+
<input class="input is-danger" type="text" name="adapter" placeholder="enp1s0" value="<%=hattr params[:adapter] %>">
|
134
|
+
|
135
|
+
<% @errors[:adapter].each do |error| %>
|
136
|
+
<p class="help is-danger"><%=h error %></p>
|
137
|
+
<% end %>
|
138
|
+
<% else %>
|
139
|
+
<input class="input" type="text" name="adapter" placeholder="enp1s0" value="<%=hattr params[:adapter] %>">
|
140
|
+
<% end %>
|
141
|
+
</div>
|
142
|
+
</div>
|
143
|
+
|
144
|
+
<div class="field">
|
145
|
+
<label class="label">Adapter IP:</label>
|
146
|
+
<div class="control">
|
147
|
+
<% if @errors && @errors[:adapter_ip] %>
|
148
|
+
<input class="input is-danger" type="text" name="adapter_ip" placeholder="X.X.X.X" value="<%=hattr params[:adapter_ip] %>">
|
149
|
+
|
150
|
+
<% @errors[:adapter].each do |error| %>
|
151
|
+
<p class="help is-danger"><%=h error %></p>
|
152
|
+
<% end %>
|
153
|
+
<% else %>
|
154
|
+
<input class="input" type="text" name="adapter_ip" placeholder="X.X.X.X" value="<%=hattr params[:adapter_ip] %>">
|
155
|
+
<% end %>
|
156
|
+
</div>
|
157
|
+
</div>
|
158
|
+
|
159
|
+
<div class="field">
|
160
|
+
<label class="label">Adapter Port:</label>
|
161
|
+
<div class="control">
|
162
|
+
<% if @errors && @errors[:adapter_port] %>
|
163
|
+
<input class="input is-danger" type="text" name="adapter_port" placeholder="PORT" value="<%=hattr params[:adapter_port] %>">
|
164
|
+
|
165
|
+
<% @errors[:adapter_port].each do |error| %>
|
166
|
+
<p class="help is-danger"><%=h error %></p>
|
167
|
+
<% end %>
|
168
|
+
<% else %>
|
169
|
+
<input class="input" type="text" name="adapter_port" placeholder="PORT" value="<%=hattr params[:adapter_port] %>">
|
170
|
+
<% end %>
|
171
|
+
</div>
|
172
|
+
</div>
|
173
|
+
|
174
|
+
<div class="field">
|
175
|
+
<label class="label">Adapter MAC:</label>
|
176
|
+
<div class="control">
|
177
|
+
<% if @errors && @errors[:adapter_mac] %>
|
178
|
+
<input class="input is-danger" type="text" name="adapter_mac" placeholder="XX:XX:XX:XX:XX:XX" value="<%=hattr params[:adapter_mac] %>">
|
179
|
+
|
180
|
+
<% @errors[:adapter_mac].each do |error| %>
|
181
|
+
<p class="help is-danger"><%=h error %></p>
|
182
|
+
<% end %>
|
183
|
+
<% else %>
|
184
|
+
<input class="input" type="text" name="adapter_mac" placeholder="XX:XX:XX:XX:XX:XX" value="<%=hattr params[:adapter_mac] %>">
|
185
|
+
<% end %>
|
186
|
+
</div>
|
187
|
+
</div>
|
188
|
+
|
189
|
+
<div class="field">
|
190
|
+
<label class="label">Adapter VLAN:</label>
|
191
|
+
<div class="control">
|
192
|
+
<% if @errors && @errors[:adapter_vlan] %>
|
193
|
+
<input class="input is-danger" type="text" name="adapter_vlan" placeholder="VLAN ID" value="<%=hattr params[:adapter_vlan] %>">
|
194
|
+
|
195
|
+
<% @errors[:adapter_vlan].each do |error| %>
|
196
|
+
<p class="help is-danger"><%=h error %></p>
|
197
|
+
<% end %>
|
198
|
+
<% else %>
|
199
|
+
<input class="input" type="text" name="adapter_vlan" placeholder="VLAN ID" value="<%=hattr params[:adapter_vlan] %>">
|
200
|
+
<% end %>
|
201
|
+
</div>
|
202
|
+
</div>
|
203
|
+
|
204
|
+
<div class="field">
|
205
|
+
<label class="label">Router MAC:</label>
|
206
|
+
<div class="control">
|
207
|
+
<% if @errors && @errors[:router_mac] %>
|
208
|
+
<input class="input is-danger" type="text" name="router_mac" placeholder="XX:XX:XX:XX:XX:XX" value="<%=hattr params[:router_mac] %>">
|
209
|
+
|
210
|
+
<% @errors[:router_mac].each do |error| %>
|
211
|
+
<p class="help is-danger"><%=h error %></p>
|
212
|
+
<% end %>
|
213
|
+
<% else %>
|
214
|
+
<input class="input" type="text" name="router_mac" placeholder="XX:XX:XX:XX:XX:XX" value="<%=hattr params[:router_mac] %>">
|
215
|
+
<% end %>
|
216
|
+
</div>
|
217
|
+
</div>
|
218
|
+
|
219
|
+
<div class="field">
|
220
|
+
<label class="label">TTL:</label>
|
221
|
+
<div class="control">
|
222
|
+
<% if @errors && @errors[:ttl] %>
|
223
|
+
<input class="input is-danger" type="text" name="ttl" placeholder="NUM" value="<%=hattr params[:ttl] %>">
|
224
|
+
|
225
|
+
<% @errors[:ttl].each do |error| %>
|
226
|
+
<p class="help is-danger"><%=h error %></p>
|
227
|
+
<% end %>
|
228
|
+
<% else %>
|
229
|
+
<input class="input" type="text" name="ttl" placeholder="NUM" value="<%=hattr params[:ttl] %>">
|
230
|
+
<% end %>
|
231
|
+
</div>
|
232
|
+
</div>
|
233
|
+
</div>
|
234
|
+
|
235
|
+
<div id="exclude-include" class="content-tab">
|
236
|
+
<div class="field">
|
237
|
+
<label class="label">Exclude:</label>
|
238
|
+
<div class="control">
|
239
|
+
<% if @errors && @errors[:exclude] %>
|
240
|
+
<input class="input is-danger" type="text" name="exclude" placeholder="IP or IP range" value="<%=hattr params[:exclude] %>">
|
241
|
+
|
242
|
+
<% @errors[:exclude].each do |error| %>
|
243
|
+
<p class="help is-danger"><%=h error %></p>
|
244
|
+
<% end %>
|
245
|
+
<% else %>
|
246
|
+
<input class="input" type="text" name="exclude" placeholder="IP or IP range" value="<%=hattr params[:exclude] %>">
|
247
|
+
<% end %>
|
248
|
+
</div>
|
249
|
+
</div>
|
250
|
+
|
251
|
+
<div class="field">
|
252
|
+
<label class="label">Exclude File:</label>
|
253
|
+
<div class="control">
|
254
|
+
<% if @errors && @errors[:exclude_file] %>
|
255
|
+
<input class="input is-danger" type="text" name="exclude_file" placeholder="/path/to/file" value="<%=hattr params[:exclude_file] %>">
|
256
|
+
|
257
|
+
<% @errors[:exclude_file].each do |error| %>
|
258
|
+
<p class="help is-danger"><%=h error %></p>
|
259
|
+
<% end %>
|
260
|
+
<% else %>
|
261
|
+
<input class="input" type="text" name="exclude_file" placeholder="/path/to/file" value="<%=hattr params[:exclude_file] %>">
|
262
|
+
<% end %>
|
263
|
+
</div>
|
264
|
+
</div>
|
265
|
+
|
266
|
+
<div class="field">
|
267
|
+
<label class="label">Include File:</label>
|
268
|
+
<div class="control">
|
269
|
+
<% if @errors && @errors[:include_file] %>
|
270
|
+
<input class="input is-danger" type="text" name="include_file" placeholder="/path/to/file" value="<%=hattr params[:include_file] %>">
|
271
|
+
|
272
|
+
<% @errors[:include_file].each do |error| %>
|
273
|
+
<p class="help is-danger"><%=h error %></p>
|
274
|
+
<% end %>
|
275
|
+
<% else %>
|
276
|
+
<input class="input" type="text" name="include_file" placeholder="/path/to/file" value="<%=hattr params[:include_file] %>">
|
277
|
+
<% end %>
|
278
|
+
</div>
|
279
|
+
</div>
|
280
|
+
</div>
|
281
|
+
|
282
|
+
<div id="payload-file" class="content-tab">
|
283
|
+
<div class="field">
|
284
|
+
<label class="label">PCAP Payloads:</label>
|
285
|
+
<div class="control">
|
286
|
+
<% if @errors && @errors[:pcap_payloads] %>
|
287
|
+
<input class="input is-danger" type="text" name="pcap_payloads" placeholder="/path/to/file" value="<%=hattr params[:pcap_payloads] %>">
|
288
|
+
|
289
|
+
<% @errors[:pcap_payloads].each do |error| %>
|
290
|
+
<p class="help is-danger"><%=h error %></p>
|
291
|
+
<% end %>
|
292
|
+
<% else %>
|
293
|
+
<input class="input" type="text" name="pcap_payloads" placeholder="/path/to/file" value="<%=hattr params[:pcap_payloads] %>">
|
294
|
+
<% end %>
|
295
|
+
</div>
|
296
|
+
</div>
|
297
|
+
|
298
|
+
<div class="field">
|
299
|
+
<label class="label">Nmap Payloads:</label>
|
300
|
+
<div class="control">
|
301
|
+
<% if @errors && @errors[:nmap_payloads] %>
|
302
|
+
<input class="input is-danger" type="text" name="nmap_payloads" placeholder="/path/to/file" value="<%=hattr params[:nmap_payloads] %>">
|
303
|
+
|
304
|
+
<% @errors[:nmap_payloads].each do |error| %>
|
305
|
+
<p class="help is-danger"><%=h error %></p>
|
306
|
+
<% end %>
|
307
|
+
<% else %>
|
308
|
+
<input class="input" type="text" name="nmap_payloads" placeholder="/path/to/file" value="<%=hattr params[:nmap_payloads] %>">
|
309
|
+
<% end %>
|
310
|
+
</div>
|
311
|
+
</div>
|
312
|
+
</div>
|
313
|
+
|
314
|
+
<div id="http" class="content-tab">
|
315
|
+
<div class="field">
|
316
|
+
<label class="has-text-weight-semibold">HTTP Method:</label>
|
317
|
+
<select class="select" name="http_method">
|
318
|
+
<option value="">
|
319
|
+
<option value="COPY"<%= ' selected' if params[:http_method] == 'COPY' %>>COPY</option>
|
320
|
+
<option value="DELETE"<%= ' selected' if params[:http_method] == 'DELETE' %>>DELETE</option>
|
321
|
+
<option value="GET"<%= ' selected' if params[:http_method] == 'GET' %>>GET</option>
|
322
|
+
<option value="HEAD"<%= ' selected' if params[:http_method] == 'HEAD' %>>HEAD</option>
|
323
|
+
<option value="LOCK"<%= ' selected' if params[:http_method] == 'LOCK' %>>LOCK</option>
|
324
|
+
<option value="MKCOL"<%= ' selected' if params[:http_method] == 'MKCOL' %>>MKCOL</option>
|
325
|
+
<option value="MOVE"<%= ' selected' if params[:http_method] == 'MOVE' %>>MOVE</option>
|
326
|
+
<option value="OPTIONS"<%= ' selected' if params[:http_method] == 'OPTIONS' %>>OPTIONS</option>
|
327
|
+
<option value="PATCH"<%= ' selected' if params[:http_method] == 'PATCH' %>>PATCH</option>
|
328
|
+
<option value="POST"<%= ' selected' if params[:http_method] == 'POST' %>>POST</option>
|
329
|
+
<option value="PROPFIND"<%= ' selected' if params[:http_method] == 'PROPFIND' %>>PROPFIND</option>
|
330
|
+
<option value="PROPPATCH"<%= ' selected' if params[:http_method] == 'PROPPATCH' %>>PROPPATCH</option>
|
331
|
+
<option value="PUT"<%= ' selected' if params[:http_method] == 'PUT' %>>PUT</option>
|
332
|
+
<option value="TRACE"<%= ' selected' if params[:http_method] == 'TRACE' %>>TRACE</option>
|
333
|
+
<option value="UNLOCK"<%= ' selected' if params[:http_method] == 'UNLOCK' %>>UNLOCK</option>
|
334
|
+
</select>
|
335
|
+
</div>
|
336
|
+
|
337
|
+
<div class="field">
|
338
|
+
<label class="label">HTTP User-Agent:</label>
|
339
|
+
<div class="control">
|
340
|
+
<% if @errors && @errors[:http_user_agent] %>
|
341
|
+
<input class="input is-danger" type="text" name="http_user_agent" placeholder="User-Agent string" value="<%=hattr params[:http_user_agent] %>">
|
342
|
+
|
343
|
+
<% @errors[:http_user_agent].each do |error| %>
|
344
|
+
<p class="help is-danger"><%=h error %></p>
|
345
|
+
<% end %>
|
346
|
+
<% else %>
|
347
|
+
<input class="input" type="text" name="http_user_agent" placeholder="User-Agent string" value="<%=hattr params[:http_user_agent] %>">
|
348
|
+
<% end %>
|
349
|
+
</div>
|
350
|
+
</div>
|
351
|
+
|
352
|
+
<div class="field">
|
353
|
+
<label class="label">HTTP Header:</label>
|
354
|
+
<div class="control">
|
355
|
+
<% if @errors && @errors[:http_field] %>
|
356
|
+
<input class="input is-danger" type="text" name="http_field" placeholder="Header:value..." value="<%=hattr params[:http_field] %>">
|
357
|
+
|
358
|
+
<% @errors[:http_field].each do |error| %>
|
359
|
+
<p class="help is-danger"><%=h error %></p>
|
360
|
+
<% end %>
|
361
|
+
<% else %>
|
362
|
+
<input class="input" type="text" name="http_field" placeholder="Header:value..." value="<%=hattr params[:http_field] %>">
|
363
|
+
<% end %>
|
364
|
+
</div>
|
365
|
+
</div>
|
366
|
+
|
367
|
+
<div class="field">
|
368
|
+
<label class="label">HTTP Cookie:</label>
|
369
|
+
<div class="control">
|
370
|
+
<% if @errors && @errors[:http_cookie] %>
|
371
|
+
<input class="input is-danger" type="text" name="http_cookie" placeholder="name=value; ..." value="<%=hattr params[:http_cookie] %>">
|
372
|
+
|
373
|
+
<% @errors[:http_cookie].each do |error| %>
|
374
|
+
<p class="help is-danger"><%=h error %></p>
|
375
|
+
<% end %>
|
376
|
+
<% else %>
|
377
|
+
<input class="input" type="text" name="http_cookie" placeholder="name=value; ..." value="<%=hattr params[:http_cookie] %>">
|
378
|
+
<% end %>
|
379
|
+
</div>
|
380
|
+
</div>
|
381
|
+
|
382
|
+
<div class="field">
|
383
|
+
<label class="label">HTTP Payload:</label>
|
384
|
+
<div class="control">
|
385
|
+
<% if @errors && @errors[:http_payload] %>
|
386
|
+
<input class="input is-danger" type="text" name="http_payload" value="<%=hattr params[:http_payload] %>">
|
387
|
+
|
388
|
+
<% @errors[:http_payload].each do |error| %>
|
389
|
+
<p class="help is-danger"><%=h error %></p>
|
390
|
+
<% end %>
|
391
|
+
<% else %>
|
392
|
+
<input class="input" type="text" name="http_payload" value="<%=hattr params[:http_payload] %>">
|
393
|
+
<% end %>
|
394
|
+
</div>
|
395
|
+
</div>
|
396
|
+
</div>
|
397
|
+
|
398
|
+
<div id="logging" class="content-tab">
|
399
|
+
<div class="field">
|
400
|
+
<label class="has-text-weight-semibold">Packet Trace:</label>
|
401
|
+
<input class="checkbox" type="checkbox" name="packet_trace"<%= " checked" if params[:packet_trace] %>>
|
402
|
+
</div>
|
403
|
+
|
404
|
+
<div class="field">
|
405
|
+
<label class="label">PCAP Output:</label>
|
406
|
+
<div class="control">
|
407
|
+
<% if @errors && @errors[:pcap] %>
|
408
|
+
<input class="input is-danger" type="text" name="pcap" placeholder="/path/to/file.pcap" value="<%=hattr params[:pcap] %>">
|
409
|
+
|
410
|
+
<% @errors[:pcap].each do |error| %>
|
411
|
+
<p class="help is-danger"><%=h error %></p>
|
412
|
+
<% end %>
|
413
|
+
<% else %>
|
414
|
+
<input class="input" type="text" name="pcap" placeholder="/path/to/file.pcap" value="<%=hattr params[:pcap] %>">
|
415
|
+
<% end %>
|
416
|
+
</div>
|
417
|
+
</div>
|
418
|
+
</div>
|
419
|
+
|
420
|
+
<div id="tuning" class="content-tab">
|
421
|
+
<div class="field">
|
422
|
+
<label class="has-text-weight-semibold">PF_RING:</label>
|
423
|
+
<input class="checkbox" type="checkbox" name="pfring"<%= " checked" if params[:pfring] %>>
|
424
|
+
</div>
|
425
|
+
|
426
|
+
<div class="field">
|
427
|
+
<label class="label">Shards:</label>
|
428
|
+
<div class="control">
|
429
|
+
<% if @errors && @errors[:shards] %>
|
430
|
+
<input class="input is-danger" type="text" name="shards" placeholder="X/Y" value="<%=hattr params[:shards] %>">
|
431
|
+
|
432
|
+
<% @errors[:shards].each do |error| %>
|
433
|
+
<p class="help is-danger"><%=h error %></p>
|
434
|
+
<% end %>
|
435
|
+
<% else %>
|
436
|
+
<input class="input" type="text" name="shards" placeholder="/path/to/file.pcap" value="<%=hattr params[:shards] %>">
|
437
|
+
<% end %>
|
438
|
+
</div>
|
439
|
+
</div>
|
440
|
+
</div>
|
441
|
+
|
442
|
+
<div id="randomization" class="content-tab">
|
443
|
+
<div class="field">
|
444
|
+
<label class="label">Seed:</label>
|
445
|
+
<div class="control">
|
446
|
+
<% if @errors && @errors[:seed] %>
|
447
|
+
<input class="input is-danger" type="text" name="seed" placeholder="NUM" value="<%=hattr params[:seed] %>">
|
448
|
+
|
449
|
+
<% @errors[:seed].each do |error| %>
|
450
|
+
<p class="help is-danger"><%=h error %></p>
|
451
|
+
<% end %>
|
452
|
+
<% else %>
|
453
|
+
<input class="input" type="text" name="seed" placeholder="NUM" value="<%=hattr params[:seed] %>">
|
454
|
+
<% end %>
|
455
|
+
</div>
|
456
|
+
</div>
|
457
|
+
</div>
|
458
|
+
</div>
|
459
|
+
</form>
|