ronin-app 0.1.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (163) hide show
  1. checksums.yaml +7 -0
  2. data/.dockerignore +3 -0
  3. data/.document +6 -0
  4. data/.env.dev +1 -0
  5. data/.github/workflows/ruby.yml +44 -0
  6. data/.gitignore +16 -0
  7. data/.rspec +1 -0
  8. data/.rubocop.yml +26 -0
  9. data/.ruby-version +1 -0
  10. data/.yardopts +1 -0
  11. data/CONTRIBUTING.md +34 -0
  12. data/COPYING.txt +661 -0
  13. data/ChangeLog.md +38 -0
  14. data/Dockerfile +27 -0
  15. data/Gemfile +61 -0
  16. data/Procfile +2 -0
  17. data/Procfile.dev +2 -0
  18. data/README.md +215 -0
  19. data/Rakefile +44 -0
  20. data/app/db.rb +680 -0
  21. data/app/scanning.rb +173 -0
  22. data/app.rb +372 -0
  23. data/bin/ronin-app +34 -0
  24. data/config/database.rb +17 -0
  25. data/config/puma.rb +24 -0
  26. data/config/redis.rb +4 -0
  27. data/config/sidekiq.rb +23 -0
  28. data/config/sidekiq.yml +12 -0
  29. data/config.ru +33 -0
  30. data/docker-compose.yml +45 -0
  31. data/etc/systemd/user/ronin-app-sidekiq.1.service +17 -0
  32. data/etc/systemd/user/ronin-app-web.1.service +18 -0
  33. data/etc/systemd/user/ronin-app.target +5 -0
  34. data/gemspec.yml +55 -0
  35. data/lib/middleware/sidekiq/active_record_connection_pool.rb +47 -0
  36. data/lib/ronin/app/cli.rb +197 -0
  37. data/lib/ronin/app/helpers/html.rb +71 -0
  38. data/lib/ronin/app/root.rb +28 -0
  39. data/lib/ronin/app/schemas/params_schema.rb +66 -0
  40. data/lib/ronin/app/schemas/payloads/build_schema.rb +56 -0
  41. data/lib/ronin/app/schemas/payloads/encoders/encode_schema.rb +60 -0
  42. data/lib/ronin/app/types/import.rb +35 -0
  43. data/lib/ronin/app/types/nmap.rb +81 -0
  44. data/lib/ronin/app/types/spider.rb +49 -0
  45. data/lib/ronin/app/types/vulns.rb +69 -0
  46. data/lib/ronin/app/types.rb +66 -0
  47. data/lib/ronin/app/validations/import_params.rb +71 -0
  48. data/lib/ronin/app/validations/install_repo_params.rb +78 -0
  49. data/lib/ronin/app/validations/masscan_params.rb +122 -0
  50. data/lib/ronin/app/validations/nmap_params.rb +183 -0
  51. data/lib/ronin/app/validations/recon_params.rb +86 -0
  52. data/lib/ronin/app/validations/spider_params.rb +103 -0
  53. data/lib/ronin/app/validations/vulns_params.rb +83 -0
  54. data/lib/ronin/app/version.rb +26 -0
  55. data/log/.gitkeep +0 -0
  56. data/man/ronin-app.1 +63 -0
  57. data/man/ronin-app.1.md +61 -0
  58. data/public/images/favicon.png +0 -0
  59. data/public/images/favicon.svg +78 -0
  60. data/public/images/logo.svg +78 -0
  61. data/public/images/sidekiq.svg +24 -0
  62. data/public/javascript/app.js +60 -0
  63. data/public/javascript/notes.js +28 -0
  64. data/public/javascript/tabs.js +40 -0
  65. data/public/stylesheets/app.css +216 -0
  66. data/public/stylesheets/bulma.min.css +1 -0
  67. data/ronin-app.gemspec +63 -0
  68. data/scripts/console +7 -0
  69. data/scripts/server +134 -0
  70. data/scripts/setup +447 -0
  71. data/scripts/update +55 -0
  72. data/tmp/.gitkeep +0 -0
  73. data/views/_authors.erb +62 -0
  74. data/views/_delete.erb +4 -0
  75. data/views/_delete_all.erb +4 -0
  76. data/views/_encoding_tabs.erb +25 -0
  77. data/views/_notes.erb +33 -0
  78. data/views/_pagination.erb +1 -0
  79. data/views/_param_fields.erb +66 -0
  80. data/views/_params.erb +35 -0
  81. data/views/about.erb +30 -0
  82. data/views/db/advisories/index.erb +30 -0
  83. data/views/db/advisories/show.erb +105 -0
  84. data/views/db/asns/index.erb +19 -0
  85. data/views/db/asns/show.erb +61 -0
  86. data/views/db/credentials/index.erb +30 -0
  87. data/views/db/credentials/show.erb +51 -0
  88. data/views/db/email_addresses/index.erb +30 -0
  89. data/views/db/email_addresses/show.erb +44 -0
  90. data/views/db/host_names/index.erb +30 -0
  91. data/views/db/host_names/show.erb +52 -0
  92. data/views/db/ip_addresses/index.erb +19 -0
  93. data/views/db/ip_addresses/show.erb +98 -0
  94. data/views/db/mac_addresses/index.erb +19 -0
  95. data/views/db/mac_addresses/show.erb +62 -0
  96. data/views/db/open_ports/index.erb +19 -0
  97. data/views/db/open_ports/show.erb +87 -0
  98. data/views/db/organizations/departments/show.erb +82 -0
  99. data/views/db/organizations/index.erb +28 -0
  100. data/views/db/organizations/members/show.erb +87 -0
  101. data/views/db/organizations/show.erb +111 -0
  102. data/views/db/oses/index.erb +19 -0
  103. data/views/db/oses/show.erb +46 -0
  104. data/views/db/passwords/index.erb +30 -0
  105. data/views/db/passwords/show.erb +52 -0
  106. data/views/db/people/index.erb +31 -0
  107. data/views/db/people/show.erb +120 -0
  108. data/views/db/phone_numbers/index.erb +30 -0
  109. data/views/db/phone_numbers/show.erb +63 -0
  110. data/views/db/ports/index.erb +30 -0
  111. data/views/db/ports/show.erb +70 -0
  112. data/views/db/services/index.erb +30 -0
  113. data/views/db/services/show.erb +65 -0
  114. data/views/db/software/index.erb +19 -0
  115. data/views/db/software/show.erb +52 -0
  116. data/views/db/software_vendors/index.erb +19 -0
  117. data/views/db/software_vendors/show.erb +36 -0
  118. data/views/db/street_addresses/index.erb +19 -0
  119. data/views/db/street_addresses/show.erb +63 -0
  120. data/views/db/url_query_param_names/index.erb +19 -0
  121. data/views/db/url_query_param_names/show.erb +50 -0
  122. data/views/db/url_schemes/index.erb +19 -0
  123. data/views/db/url_schemes/show.erb +36 -0
  124. data/views/db/urls/index.erb +30 -0
  125. data/views/db/urls/show.erb +103 -0
  126. data/views/db/user_names/index.erb +30 -0
  127. data/views/db/user_names/show.erb +48 -0
  128. data/views/db/vulns/index.erb +19 -0
  129. data/views/db/vulns/show.erb +104 -0
  130. data/views/db.erb +152 -0
  131. data/views/exploits/index.erb +9 -0
  132. data/views/exploits/show.erb +100 -0
  133. data/views/import.erb +30 -0
  134. data/views/index.erb +7 -0
  135. data/views/layout.erb +98 -0
  136. data/views/masscan.erb +459 -0
  137. data/views/nmap.erb +1009 -0
  138. data/views/payloads/build.erb +19 -0
  139. data/views/payloads/encoders/encode.erb +35 -0
  140. data/views/payloads/encoders/index.erb +9 -0
  141. data/views/payloads/encoders/show.erb +47 -0
  142. data/views/payloads/index.erb +9 -0
  143. data/views/payloads/show.erb +47 -0
  144. data/views/queue.erb +28 -0
  145. data/views/recon.erb +55 -0
  146. data/views/repos/index.erb +30 -0
  147. data/views/repos/install.erb +45 -0
  148. data/views/repos/show.erb +39 -0
  149. data/views/spider.erb +372 -0
  150. data/views/vulns.erb +214 -0
  151. data/workers/import.rb +96 -0
  152. data/workers/install_repo.rb +40 -0
  153. data/workers/masscan.rb +135 -0
  154. data/workers/nmap.rb +216 -0
  155. data/workers/purge_repos.rb +40 -0
  156. data/workers/recon.rb +95 -0
  157. data/workers/remove_repo.rb +40 -0
  158. data/workers/spider.rb +148 -0
  159. data/workers/update_repo.rb +42 -0
  160. data/workers/update_repos.rb +40 -0
  161. data/workers/vulns.rb +111 -0
  162. data/workers.rb +37 -0
  163. metadata +538 -0
data/views/db.erb ADDED
@@ -0,0 +1,152 @@
1
+ <h1>Database</h1>
2
+
3
+ <div class="columns">
4
+ <div class="box column is-one-quarter">
5
+ <p>
6
+ <a href="/db/host_names">Host Names (<%=h @host_name_count %>)</a>
7
+ </p>
8
+ </div>
9
+
10
+ <div class="box column is-one-quarter">
11
+ <p>
12
+ <a href="/db/asns">ASNs (<%=h @asn_count %>)</a>
13
+ </p>
14
+ </div>
15
+
16
+ <div class="box column is-one-quarter">
17
+ <p>
18
+ <a href="/db/ip_addresses">IP Addresses (<%=h @ip_address_count %>)</a>
19
+ </p>
20
+ </div>
21
+
22
+ <div class="box column is-one-quarter">
23
+ <p>
24
+ <a href="/db/mac_addresses">MAC Addresses (<%=h @mac_address_count %>)</a>
25
+ </p>
26
+ </div>
27
+ </div>
28
+
29
+ <div class="columns">
30
+ <div class="box column is-one-quarter">
31
+ <p>
32
+ <a href="/db/open_ports">Open Ports (<%=h @open_port_count %>)</a>
33
+ </p>
34
+ </div>
35
+
36
+ <div class="box column is-one-quarter">
37
+ <p>
38
+ <a href="/db/ports">Ports (<%=h @port_count %>)</a>
39
+ </p>
40
+ </div>
41
+
42
+ <div class="box column is-one-quarter">
43
+ <p>
44
+ <a href="/db/services">Services (<%=h @service_count %>)</a>
45
+ </p>
46
+ </div>
47
+
48
+ <div class="box column is-one-quarter">
49
+ <p>
50
+ <a href="/db/vulns">Vulnerabilities (<%=h @vulns_count %>)</a>
51
+ </p>
52
+ </div>
53
+ </div>
54
+
55
+ <div class="columns">
56
+ <div class="box column is-one-quarter">
57
+ <p>
58
+ <a href="/db/urls">URLs (<%=h @url_count %>)</a>
59
+ </p>
60
+ </div>
61
+
62
+ <div class="box column is-one-quarter">
63
+ <p>
64
+ <a href="/db/url_schemes">URL Schemes (<%=h @url_scheme_count %>)</a>
65
+ </p>
66
+ </div>
67
+
68
+ <div class="box column is-one-quarter">
69
+ <p>
70
+ <a href="/db/url_query_param_names">URL Query Param Names (<%=h @url_query_param_name_count %>)</a>
71
+ </p>
72
+ </div>
73
+ </div>
74
+
75
+ <div class="columns">
76
+ <div class="box column is-one-quarter">
77
+ <p>
78
+ <a href="/db/email_addresses">Email Addresses (<%=h @email_address_count %>)</a>
79
+ </p>
80
+ </div>
81
+
82
+ <div class="box column is-one-quarter">
83
+ <p>
84
+ <a href="/db/user_names">User Names (<%=h @user_name_count %>)</a>
85
+ </p>
86
+ </div>
87
+
88
+ <div class="box column is-one-quarter">
89
+ <p>
90
+ <a href="/db/passwords">Passwords (<%=h @password_count %>)</a>
91
+ </p>
92
+ </div>
93
+
94
+ <div class="box column is-one-quarter">
95
+ <p>
96
+ <a href="/db/credentials">Credentials (<%=h @credential_count %>)</a>
97
+ </p>
98
+ </div>
99
+ </div>
100
+
101
+ <div class="columns">
102
+ <div class="box column is-one-quarter">
103
+ <p>
104
+ <a href="/db/advisories">Advisories (<%=h @advisory_count %>)</a>
105
+ </p>
106
+ </div>
107
+
108
+ <div class="box column is-one-quarter">
109
+ <p>
110
+ <a href="/db/software">Software (<%=h @software_count %>)</a>
111
+ </p>
112
+ </div>
113
+
114
+ <div class="box column is-one-quarter">
115
+ <p>
116
+ <a href="/db/software_vendors">Software Vendors (<%=h @software_vendor_count %>)</a>
117
+ </p>
118
+ </div>
119
+
120
+ <div class="box column is-one-quarter">
121
+ <p>
122
+ <a href="/db/oses">OSes (<%=h @oses_count %>)</a>
123
+ </p>
124
+ </div>
125
+ </div>
126
+
127
+
128
+ <div class="columns">
129
+ <div class="box column is-one-quarter">
130
+ <p>
131
+ <a href="/db/phone_numbers">Phone Numbers (<%=h @phone_number_count %>)</a>
132
+ </p>
133
+ </div>
134
+
135
+ <div class="box column is-one-quarter">
136
+ <p>
137
+ <a href="/db/street_addresses">Street Addresses (<%=h @street_address_count %>)</a>
138
+ </p>
139
+ </div>
140
+
141
+ <div class="box column is-one-quarter">
142
+ <p>
143
+ <a href="/db/organizations">Organizations (<%=h @organization_count %>)</a>
144
+ </p>
145
+ </div>
146
+
147
+ <div class="box column is-one-quarter">
148
+ <p>
149
+ <a href="/db/people">People (<%=h @people_count %>)</a>
150
+ </p>
151
+ </div>
152
+ </div>
@@ -0,0 +1,9 @@
1
+ <h1>Exploits</h1>
2
+
3
+ <% @exploits.each do |exploit_id| %>
4
+ <p>
5
+ <a href="/exploits/<%=h exploit_id %>">
6
+ <%=h exploit_id %>
7
+ </a>
8
+ </p>
9
+ <% end %>
@@ -0,0 +1,100 @@
1
+ <h1>Exploit: <%=h @exploit.id %></h1>
2
+
3
+ <table class="table">
4
+ <tbody>
5
+ <tr>
6
+ <td><strong>Name:</strong></td>
7
+ <td>
8
+ <kbd><%=h @exploit.id %></kbd>
9
+ </td>
10
+ </tr>
11
+
12
+ <tr>
13
+ <td><strong>Quality:</strong></td>
14
+ <td>
15
+ <%=h case @exploit.quality
16
+ when :untested then 'Untested'
17
+ when :testing then 'Testing'
18
+ when :poc then 'POC'
19
+ when :weaponized then 'Weaponized'
20
+ end %>
21
+ </td>
22
+ </tr>
23
+
24
+ <tr>
25
+ <td><strong>Release Date:</strong></td>
26
+ <td><%=h @exploit.release_date %></td>
27
+ </tr>
28
+
29
+ <tr>
30
+ <td><strong>Disclosure Date:</strong></td>
31
+ <td><%=h @exploit.disclosure_date %></td>
32
+ </tr>
33
+
34
+ <tr>
35
+ <td><strong>Advisories:</strong></td>
36
+ <td>
37
+ <ul>
38
+ <% @exploit.advisories.each do |advisory| %>
39
+ <li>
40
+ <a href="<%=h advisory.url %>">
41
+ <%=h advisory.id %>
42
+ </a>
43
+ </li>
44
+ <% end %>
45
+ </ul>
46
+ </td>
47
+ </tr>
48
+
49
+ <tr>
50
+ <td><strong>Software:</strong></td>
51
+ <td><%=h @exploit.software %></td>
52
+ </tr>
53
+
54
+ <tr>
55
+ <td><strong>Software Versions:</strong></td>
56
+ <td>
57
+ <% if @exploit.software_versions %>
58
+ <% @exploit.software_versions.each do |version| %>
59
+ <p><%=h @exploit.software_version %></p>
60
+ <% end %>
61
+ <% end %>
62
+ </td>
63
+ </tr>
64
+
65
+ <tr>
66
+ <td><strong>Authors:</strong></td>
67
+ <td>
68
+ <%= partial(:authors, authors: @exploit.authors) %>
69
+ </td>
70
+ </tr>
71
+
72
+ <tr>
73
+ <td><strong>Summary:</strong></td>
74
+ <td><%=h @exploit.summary %></td>
75
+ </tr>
76
+
77
+ <tr>
78
+ <td><strong>Description:</strong></td>
79
+ <td>
80
+ <pre><%=h @exploit.description %></pre>
81
+ </td>
82
+ </tr>
83
+
84
+ <tr>
85
+ <td><strong>References:</strong></td>
86
+ <td>
87
+ <% @exploit.references.each do |reference| %>
88
+ <p><a href="<%=h reference %>"><%=h reference %></a></p>
89
+ <% end %>
90
+ </td>
91
+ </tr>
92
+
93
+ <tr>
94
+ <td><strong>Params:</strong></td>
95
+ <td>
96
+ <%= partial(:params, params: @exploit.params) %>
97
+ </td>
98
+ </tr>
99
+ </tbody>
100
+ </table>
data/views/import.erb ADDED
@@ -0,0 +1,30 @@
1
+ <h1>Import File</h1>
2
+
3
+ <form action="/import" method="post">
4
+ <div class="field has-addons">
5
+ <div class="control">
6
+ <div class="select">
7
+ <select name="type">
8
+ <option value="nmap" <%= "selected" if params[:type] == 'nmap' %>>Nmap</option>
9
+ <option value="masscan" <%= "selected" if params[:type] == 'masscan' %>>Masscan</option>
10
+ </select>
11
+ </div>
12
+ </div>
13
+
14
+ <div class="control is-required">
15
+ <% if @errors && @errors[:path] %>
16
+ <input class="input is-danger" type="text" name="path" value="<%=hattr params[:path] %>">
17
+
18
+ <% @errors[:path].each do |error| %>
19
+ <p class="help is-danger"><%=h error %></p>
20
+ <% end %>
21
+ <% else %>
22
+ <input class="input" type="text" name="path" placeholder="/path/to/file" value="<%=hattr params[:path] %>">
23
+ <% end %>
24
+ </div>
25
+ </div>
26
+
27
+ <div class="field">
28
+ <button type="submit" class="button is-primary">Import</button>
29
+ </div>
30
+ </form>
data/views/index.erb ADDED
@@ -0,0 +1,7 @@
1
+ <section class="hero is-halfheight">
2
+ <div class="hero-body">
3
+ <div class="container has-text-centered">
4
+ <p class="title">Welcome to Ronin</p>
5
+ </div>
6
+ </div>
7
+ </section>
data/views/layout.erb ADDED
@@ -0,0 +1,98 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
2
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
3
+ <head>
4
+ <meta name="charset" value="utf-8" />
5
+
6
+ <link rel="icon" href="/images/favicon.png" />
7
+ <link rel="icon" href="/images/favicon.svg" sizes="any" type="image/svg+xml" />
8
+ <link rel="stylesheet" type="text/css" media="screen" href="/stylesheets/bulma.min.css" />
9
+ <link rel="stylesheet" type="text/css" media="screen" href="/stylesheets/app.css" />
10
+ <script type="text/javascript" src="/javascript/app.js"></script>
11
+ </head>
12
+
13
+ <body>
14
+ <header class="hero">
15
+ <nav id="top-menu" class="level">
16
+ <div class="level-right">
17
+ <a class="level-item" href="/sidekiq" title="Sidekiq Dashboard">
18
+ <img src="/images/sidekiq.svg" />
19
+ </a>
20
+
21
+ <a class="level-item" href="https://github.com/ronin-rb/ronin-app" title="GitHub">
22
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 24 24"><title>GitHub logo</title><path fill="#ffffff" d="M12,2A10,10 0 0,0 2,12C2,16.42 4.87,20.17 8.84,21.5C9.34,21.58 9.5,21.27 9.5,21C9.5,20.77 9.5,20.14 9.5,19.31C6.73,19.91 6.14,17.97 6.14,17.97C5.68,16.81 5.03,16.5 5.03,16.5C4.12,15.88 5.1,15.9 5.1,15.9C6.1,15.97 6.63,16.93 6.63,16.93C7.5,18.45 8.97,18 9.54,17.76C9.63,17.11 9.89,16.67 10.17,16.42C7.95,16.17 5.62,15.31 5.62,11.5C5.62,10.39 6,9.5 6.65,8.79C6.55,8.54 6.2,7.5 6.75,6.15C6.75,6.15 7.59,5.88 9.5,7.17C10.29,6.95 11.15,6.84 12,6.84C12.85,6.84 13.71,6.95 14.5,7.17C16.41,5.88 17.25,6.15 17.25,6.15C17.8,7.5 17.45,8.54 17.35,8.79C18,9.5 18.38,10.39 18.38,11.5C18.38,15.32 16.04,16.16 13.81,16.41C14.17,16.72 14.5,17.33 14.5,18.26C14.5,19.6 14.5,20.68 14.5,21C14.5,21.27 14.66,21.59 15.17,21.5C19.14,20.16 22,16.42 22,12A10,10 0 0,0 12,2Z" /></svg>
23
+ </a>
24
+
25
+ <button id="dark-mode-toggle" class="level-item">
26
+ <svg xmlns="http://www.w3.org/2000/svg" version="1.1" id="dark-mode-sun" viewBox="0 0 512 512"><path fill="#ffffff" d="M256,384c-70.7,0-128-57.3-128-128s57.3-128,128-128s128,57.3,128,128S326.7,384,256,384z M256,0 c14.1,0,25.6,11.5,25.6,25.6v51.2c0,14.1-11.5,25.6-25.6,25.6c-14.1,0-25.6-11.5-25.6-25.6V25.6C230.4,11.5,241.9,0,256,0z M256,409.6c14.1,0,25.6,11.5,25.6,25.6v51.2c0,14.1-11.5,25.6-25.6,25.6c-14.1,0-25.6-11.5-25.6-25.6v-51.2 C230.4,421.1,241.9,409.6,256,409.6z M25.6,230.4h51.2c14.1,0,25.6,11.5,25.6,25.6c0,14.1-11.5,25.6-25.6,25.6H25.6 C11.5,281.6,0,270.1,0,256C0,241.9,11.5,230.4,25.6,230.4z M435.2,230.4h51.2c14.1,0,25.6,11.5,25.6,25.6 c0,14.1-11.5,25.6-25.6,25.6h-51.2c-14.1,0-25.6-11.5-25.6-25.6C409.6,241.9,421.1,230.4,435.2,230.4z M437,75 c10,10,10,26.2,0,36.2l-36.2,36.2c-9.8,10.2-26,10.4-36.2,0.6c-10.2-9.8-10.5-26-0.6-36.2l0.6-0.6L400.8,75C410.8,65,427,65,437,75 z M147.4,364.6c10,10,10,26.2,0,36.2L111.2,437c-9.8,10.2-26,10.5-36.2,0.6c-10.2-9.8-10.5-26-0.6-36.2l0.6-0.6l36.2-36.2 C121.2,354.6,137.4,354.6,147.4,364.6z M111.2,75l36.2,36.2c9.8,10.2,9.6,26.4-0.6,36.2c-9.9,9.6-25.7,9.6-35.6,0L75,111.2 C65.2,101,65.5,84.8,75.6,75C85.6,65.4,101.3,65.4,111.2,75L111.2,75z M400.8,364.6l36.2,36.2c9.8,10.2,9.5,26.4-0.6,36.2 c-9.9,9.6-25.7,9.6-35.6,0l-36.2-36.2c-10.2-9.8-10.5-26-0.6-36.2c9.8-10.2,26-10.5,36.2-0.6L400.8,364.6z"/></svg>
27
+ <svg xmlns="http://www.w3.org/2000/svg" version="1.1" id="dark-mode-moon" viewBox="0 0 20 20"><path fill="#ffffff" d="M17.39 15.14A7.33 7.33 0 0 1 11.75 1.6c.23-.11.56-.23.79-.34a8.19 8.19 0 0 0-5.41.45 9 9 0 1 0 7 16.58 8.42 8.42 0 0 0 4.29-3.84 5.3 5.3 0 0 1-1.03.69z"/></svg>
28
+ </button>
29
+ </div>
30
+ </nav>
31
+
32
+ <div class="container has-text-centered">
33
+ <div id="logo">
34
+ <a href="/" title="Home">
35
+ <img src="/images/logo.svg" alt="Ronin logo" width="75%" />
36
+ </a>
37
+ </div>
38
+ </div>
39
+
40
+ <div class="container">
41
+ <nav id="app-menu" class="navbar" role="navigation" aria-label="main navigation">
42
+ <div class="navbar-menu">
43
+ <div class="navbar-start">
44
+ <a href="/" class="navbar-item">home</a>
45
+ <a href="/repos" class="navbar-item">repos</a>
46
+ <a href="/payloads" class="navbar-item">payloads</a>
47
+ <a href="/exploits" class="navbar-item">exploits</a>
48
+ <a href="/db" class="navbar-item">database</a>
49
+ <a href="/import" class="navbar-item">import</a>
50
+
51
+ <div class="navbar-item has-dropdown is-hoverable">
52
+ <a class="navbar-item">scanning</a>
53
+
54
+ <div class="navbar-dropdown">
55
+ <a href="/nmap" class="navbar-item">nmap</a>
56
+ <a href="/masscan" class="navbar-item">masscan</a>
57
+ <a href="/spider" class="navbar-item">spider</a>
58
+ <a href="/recon" class="navbar-item">recon</a>
59
+ <a href="/vulns" class="navbar-item">vulns</a>
60
+ </div>
61
+ </div>
62
+
63
+ <a href="/queue" class="navbar-item">queue</a>
64
+ <a href="/about" class="navbar-item">about</a>
65
+ </div>
66
+ </div>
67
+ </nav>
68
+ </div>
69
+ </header>
70
+
71
+ <main class="container">
72
+ <%= yield_content :breadcrumbs %>
73
+
74
+ <% unless flash.empty? %>
75
+ <% flash.each do |type,text| %>
76
+ <div class="notification is-<%= type %> is-light">
77
+ <button class="delete"></button>
78
+ <%= text %>
79
+ </div>
80
+ <% end %>
81
+ <% end %>
82
+
83
+ <section class="content">
84
+ <%= yield %>
85
+ </section>
86
+ </main>
87
+
88
+ <footer class="footer">
89
+ <div class="container">
90
+ <div class="columns">
91
+ <div class="column is-full">
92
+ <span>(c) 2023 Hal Brodigan</span>
93
+ </div>
94
+ </div>
95
+ </div>
96
+ </footer>
97
+ </body>
98
+ </html>