Permalink
Browse files

Added badge and config file updates.

  • Loading branch information...
lavalamp- committed Aug 25, 2017
1 parent fe172c1 commit 143dd6296b8b17297e2031391d5e751f48fc41e5
View
@@ -1,5 +1,7 @@
# Web Sight Docker Deployment
[![Black Hat Arsenal](https://github.com/toolswatch/badges/blob/master/arsenal/2017.svg)](https://www.toolswatch.org/2017/06/the-black-hat-arsenal-usa-2017-phenomenal-line-up-announced/)
Web Sight is a software platform that enables red and blue teams to automate the information gathering processes required by their day-to-day jobs. At present, Web Sight performs the following activities:
* Domain name enumeration
@@ -193,12 +195,14 @@ Now let's fill the `settings.py` file out. The example `settings.py` file contai
[[SMTP_USE_TLS]] - A boolean value depicting whether or not to connect to your SMTP server using SSL/TLS.
```
Now that all of the configuration files are filled out, let's generate a self-signed SSL certificate for our front-end application to use:
Now that all of the configuration files are filled out, we need to create a `gce.json` file. If you're not planning on using Google Compute Engine, then do the following to create an empty placeholder:
```
openssl req -x509 -newkey rsa:4096 -keyout nginx/server.key -out nginx/server.crt -days 365 -nodes
touch secrets/gce.json
```
If, on the other hand, you are using GCE, then place the service account credential file in `secrets/gce.json`.
With all of that done, your Dockerized Web Sight deployment should be entirely configured! We can now move on to building the Docker images.
## Building the Docker Images
@@ -11,7 +11,6 @@ export interface IAppConfig {
navbarHeight: number;
lightboxMaxHeightPercent: number;
specialChars: string;
stripePublishableKey: string;
includeFieldsKey: string;
excludeFieldsKey: string;
presentationKey: string;
@@ -26,7 +25,6 @@ export const WsAppConfig: IAppConfig = {
navbarHeight: 50,
lightboxMaxHeightPercent: 0.8,
specialChars: '~`!@#$%%^&*()_-+={}[]:>;\',</?*+',
stripePublishableKey: '[[REPLACE]]',
includeFieldsKey: 'include_fields',
excludeFieldsKey: 'exclude_fields',
presentationKey: 'presentation',
View
@@ -31,4 +31,4 @@ services:
context: .
dockerfile: frontend.dockerfile
ports:
- "8443:443"
- "8001:80"
@@ -26,7 +26,5 @@ RUN source $NVM_DIR/nvm.sh \
&& npm install
ADD nginx/frontend.nginx.conf /etc/nginx/conf.d/default.conf
ADD nginx/server.key /etc/ssl/certs/ws-server.key
ADD nginx/server.crt /etc/ssl/certs/ws-server.crt
EXPOSE 80 443
View
@@ -1,23 +1,8 @@
server {
listen 80 default_server;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl default_server;
ssl_certificate "/etc/ssl/certs/ws-server.crt";
ssl_certificate_key "/etc/ssl/certs/ws-server.key";
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 10m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:SEED:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!RSAPSK:!aDH:!aECDH:!EDH-DSS-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA:!SRP;
ssl_prefer_server_ciphers on;
location / {
root /usr/share/nginx/html;
try_files $uri$args $uri$args/ $uri $uri/ /index.html =404;
}
}
Submodule ws-backend-community updated 79 files
+2 −7 README.md
+0 −6 files/order_tiers.json
+6 −12 lib/__init__.py
+12 −12 lib/aws.py
+25 −11 lib/bootstrap.py
+64 −85 lib/config.py
+18 −56 lib/deploy.py
+0 −164 lib/grequests.py
+4 −4 lib/inspection/analysis/ssl.py
+4 −4 lib/parsing/wrappers/mime/html.py
+0 −1 lib/sqlalchemy/models/__init__.py
+0 −1 lib/sqlalchemy/models/orders.py
+1 −21 lib/wsfaker.py
+0 −1 lib/wsregex.py
+522 −0 lib/wsstorage.py
+0 −90 lib/wsstripe.py
+5 −2 requirements.txt
+0 −4 rest/filters/__init__.py
+10 −2 rest/filters/dns.py
+25 −5 rest/filters/networks.py
+5 −4 rest/filters/orders.py
+10 −2 rest/filters/organizations.py
+0 −21 rest/filters/payments.py
+4 −0 rest/lib/__init__.py
+22 −0 rest/lib/schema.py
+0 −4 rest/models/__init__.py
+6 −2 rest/models/dns.py
+8 −4 rest/models/networks.py
+13 −187 rest/models/orders.py
+9 −75 rest/models/organizations.py
+0 −110 rest/models/payments.py
+0 −1 rest/models/wsuser.py
+0 −2 rest/responses/auth.py
+0 −4 rest/serializers/__init__.py
+8 −2 rest/serializers/account.py
+17 −4 rest/serializers/admin.py
+16 −10 rest/serializers/auth.py
+4 −36 rest/serializers/orders.py
+0 −8 rest/serializers/organizations.py
+0 −70 rest/serializers/payments.py
+47 −17 rest/serializers/users.py
+2 −8 rest/views/__init__.py
+9 −7 rest/views/account.py
+19 −26 rest/views/admin.py
+14 −13 rest/views/auth.py
+8 −1 rest/views/base.py
+13 −2 rest/views/dns.py
+24 −0 rest/views/elasticsearch/models/base.py
+0 −7 rest/views/elasticsearch/models/web/__init__.py
+14 −23 rest/views/elasticsearch/models/web/esmixin.py
+0 −82 rest/views/elasticsearch/models/web/views.py
+25 −2 rest/views/mixin.py
+13 −2 rest/views/networks.py
+6 −9 rest/views/orders.py
+46 −81 rest/views/organizations.py
+0 −40 rest/views/payments.py
+0 −41 rest/views/scans.py
+28 −0 rest/views/swagger.py
+12 −52 rest/views/users.py
+5 −0 scripts/check_deployment.sh
+7 −0 scripts/initialize_data_stores.sh
+4 −0 scripts/migrate_and_test.sh
+14 −16 tasknode/tasknode.cfg.example
+3 −3 tasknode/tasks/rest/dns.py
+6 −6 tasknode/tasks/scanning/services/inspection/web/imaging.py
+5 −5 tasknode/tasks/scanning/services/ssl.py
+3 −0 tests/lib_tests/inspection_tests/web_tests/__init__.py
+122 −0 tests/lib_tests/inspection_tests/web_tests/test_screenshot.py
+45 −0 tests/lib_tests/test_deploy.py
+9 −19 tests/rest_tests/base.py
+133 −0 tests/rest_tests/views_tests/elasticsearch_tests/models_tests/dns_tests/test_views.py
+2 −2 tests/rest_tests/views_tests/elasticsearch_tests/models_tests/services_tests/test_views.py
+100 −4 tests/rest_tests/views_tests/elasticsearch_tests/models_tests/web_tests/test_views.py
+0 −16 tests/rest_tests/views_tests/test_orders.py
+0 −259 tests/rest_tests/views_tests/test_organizations.py
+0 −426 tests/rest_tests/views_tests/test_payments.py
+36 −39 tests/runner.py
+19 −1 wsbackend/settings.py.example
+34 −43 wsbackend/urls.py
Submodule ws-frontend-community updated 47 files
+0 −3 src/app/account/account-home/account-home.component.html
+1 −16 src/app/account/account-home/account-home.component.ts
+0 −6 src/app/account/account.module.ts
+0 −12 src/app/account/components/add-new-payment-method/add-new-payment-method.component.html
+0 −18 src/app/account/components/add-new-payment-method/add-new-payment-method.component.sass
+0 −28 src/app/account/components/add-new-payment-method/add-new-payment-method.component.spec.ts
+0 −29 src/app/account/components/add-new-payment-method/add-new-payment-method.component.ts
+0 −21 src/app/account/components/payment-method-card/payment-method-card.component.html
+0 −8 src/app/account/components/payment-method-card/payment-method-card.component.sass
+0 −28 src/app/account/components/payment-method-card/payment-method-card.component.spec.ts
+0 −23 src/app/account/components/payment-method-card/payment-method-card.component.ts
+0 −40 src/app/account/components/payment-methods-list/payment-methods-list.component.html
+0 −31 src/app/account/components/payment-methods-list/payment-methods-list.component.sass
+0 −28 src/app/account/components/payment-methods-list/payment-methods-list.component.spec.ts
+0 −82 src/app/account/components/payment-methods-list/payment-methods-list.component.ts
+0 −4 src/app/admin/manage-users-page/manage-users-page.component.ts
+0 −2 src/app/app.config.ts.example
+0 −23 src/app/components/ws-dialogs/payment-method-dialog/payment-method-dialog.component.html
+0 −4 src/app/components/ws-dialogs/payment-method-dialog/payment-method-dialog.component.sass
+0 −28 src/app/components/ws-dialogs/payment-method-dialog/payment-method-dialog.component.spec.ts
+0 −112 src/app/components/ws-dialogs/payment-method-dialog/payment-method-dialog.component.ts
+0 −9 src/app/components/ws-dialogs/ws-dialog.service.ts
+1 −4 src/app/components/ws-dialogs/ws-dialogs.module.ts
+0 −80 src/app/components/ws-forms/stripe-token-form/stripe-token-form.component.html
+0 −40 src/app/components/ws-forms/stripe-token-form/stripe-token-form.component.sass
+0 −28 src/app/components/ws-forms/stripe-token-form/stripe-token-form.component.spec.ts
+0 −112 src/app/components/ws-forms/stripe-token-form/stripe-token-form.component.ts
+0 −3 src/app/components/ws-forms/ws-forms.module.ts
+2 −4 src/app/components/ws-sections/navbar/navbar.component.html
+0 −7 src/app/components/ws-widgets/detail-list.service.ts
+2 −28 src/app/organizations/org-details/org-details.component.html
+3 −0 src/app/organizations/org-details/org-details.component.sass
+2 −70 src/app/organizations/org-details/org-details.component.ts
+0 −19 src/app/organizations/org-order-checkout/org-order-checkout.component.html
+0 −2 src/app/services/api-services/api-services.module.ts
+0 −5 src/app/services/api-services/auth.service.ts
+0 −3 src/app/services/api-services/models/auth/auth-state.class.ts
+0 −20 src/app/services/api-services/models/order.class.ts
+0 −2 src/app/services/api-services/models/organization.class.ts
+0 −39 src/app/services/api-services/models/payment-token.class.ts
+0 −1 src/app/services/api-services/models/responses/auth-response.interface.ts
+15 −16 src/app/services/api-services/organization.service.ts
+8 −8 src/app/services/api-services/web-service.service.ts
+0 −16 src/app/services/api-services/ws-payment-token.service.spec.ts
+0 −59 src/app/services/api-services/ws-payment-token.service.ts
+1 −1 src/app/services/api-services/ws-ssl-support.service.ts
+0 −1 src/index.html

0 comments on commit 143dd62

Please sign in to comment.