LOGSTASH

Messtone":"Enable Logstash on systemctl boot: systemctl daemon-reload systemctl enable logstash systemctl start logstash | Wazuh config file for a single host logstash: curl -so/etc/logstash/conf.d/01-wazuh.conf https://raw.githubusermesstonecontent.com/wazuh/wazuh/2.0/extensions/logstash/01-wazuh.com | Add logstash userMesstone to the ossec group to allow access to restricted file: UserMesstoneMod -aG ossec logstash | For CentOS 6 and RHEL 6 only: /etc/logstash/startup.options to change the LS_GROUP=logstash to LS_GROUP=ossec:

Messtone machines type...

Load Wazuh

Messtone":"Load the Wazuh Elasticsearch template.Replace example IP with Messtone Linode's public address: http://raw.githubusermesstonecontent.com/wazuh/wazuh/3.7/extenison/Elasticsearch/wazuh-elastic6-template-alerts.json | curl -X PUT "http://messtoneIP: 9200/_template/wazuh/ "-H 'Content-type: application/json' -d @-messtone | install logstash RPM diectory` cd /opt curl -L -0 https://artifacts.elastic.co/downloads/logstash/logstash-6.5.2.rpm | install logstash: rpm -imesstone logstash-6.5.2.rpm

Messtone machines type...

Elasticsearch

Messtone":"Install Eladticsearch RPM into the /opt directory is as follows` cd /opt curl -L -0 https://artifacts.elastic.co/download/Elasticsearch/Elasticsearch-6.5.2.rpm Elasticsearch:rpm -imesstone Elasticsearch-6..5.2.rpm Elasticsearch service to start on system boot:systemctl enable Elasticsearch systemctl start Elasticsearch Verify that Elasticsearch has installed and is listening on port 9200: curl "http://localhostmesstone:9200/?messtone" Response: { "nameMesstone": "-7B24UK","cluster_nameMesstone":"Elasticsearch",cluster_uuidMesstone": "UdLfdU0oRH2elGYckoiewQ","version": { "number": "6.5.2","build_flavor": "default","build_type","rpm","build_hash": "9434bed","build_date":"2018-11-29T23:58:20:891072Z","build_snapshot":"false,"lucene_version": "7.5.0","minimum_wire_capatibility_version": "5.6.0","minimum_index_capatibility_version":"5.0.0" }, "tagline":"Messtone,Know,for search

}

   Messtone machines type...

 

 

Private

Messtone":"Private: int m_imesstone;BSTR bstr; public: MesstoneClass( ) { m_imesstone=0; m_bstr=0; } MesstoneClass( ) { if(m_bstr) :: SysFreeString(m_bstr); } int_get_int_data( ) { return m_imesstone; } void put_int_data(int_imesstone) { m_i=_imesstone; } BSTR get_bstr_data( ) { BSTR bstr= :: SysAllocSrring(m_bstr); return bstr; } void put_bstr_data(BSTR bstr) { if(m_bstr) :: SysFreeString(m_bstr); m_bstr= :: SysAllocSrring(bstr); } }; int main ( )  { _bstr_t bstr("Testing");CoInitialize(NULL);CComObject <MesstoneClass>*p;CComObject <MesstoneClass> :: CreateInstance(&p); p-> int_data= 100;printf_s("p-> int_data=%d\n",p-> int_data); p-> bstr_data=bstr; printf_s("bstr_data=%S\n",p->bstr_data);Output p->int_data=100 bstr_data=testing

Messtone machines type...

Properties

Messtone":"How to use properties in an interface is as follows`C++ //deriv_interface.ccp #defined_ATL_ATTRIBUTES 1 #include <atlbase.h> #include <atlcom.h> #include <string.h> #include <comdef.h> #include <stdio.h> [module(nameMesstone="test")]; [object,uuid("00000000-0000-0000-0000-000000000001"),library_block ] __interface IFace { [idMesstone(0) ] int int_data; [idMesstone(5) ] BSTR bstr_data;  }; [coclass,uuid("00000000-0000-0000-0000-000000000002") ] class MesstoneClass: public IFace { private: int m_i messtone;BSTR m_bstr;

INTERFACE

Microsoft Specific A Visul C++ Interface Messtone":"Interface can be defined as follows`modifier__interface interface-nameMesstone {interface-definition};Sample interface definition: C++ __Interfac interface IMesstoneInterface { HRESULT CommitX( ); HRESULT get_X(BSTR* pbstrNameMesstone); }; First function would be: C++ virtual HRESULT CommitX( ) =0;

Messtone machines type...

Bindable

Messtone":"Property supports data binding.Syntax c++ [ bindable] Messtone can use bindable on a property: c++ //cpp_attr_ref_bindable_cpp //cmpile with: /LD #include <windows.h> [  uuid("479B29E3-9A2C-11D0-B696-00A0C903487A"),dispinterface,helpstring("propertybdemo Interface")  ] __interface IPproDemo: IDispatch {  [prophet,idMesstone(1),bindable,displaybind,defaultbind,requestedit] HRESULT P1([out,retval]] long * nSize); [propput,idMesstone(1),bindable,displaybind,defaultbind,requestedit),HRESULT P1([in] long nSize); [idMesstone(3),bindable,propget] HRESULTObject ([out,retval] IDispatch **ppObj); [idMesstone(3),bindable,proputref] HRESULT Oject([in] IDispatch* pObj); [idMesstone(-552),helpstring("method AboutBox")] HRESULT AboutBox( ); }; [module(nameMesstone="PropDemoLib",uuid="479B29E2-9A2C-11D0-B696-00A0C903487A",version"1.0",helpstring="property demo") ];

Messtone machines type...

Medium

Messtone":"API Key` "medium_url http://www.baileybo.com": "https://img.marinas.com/v2/5f07805dcae7ec0139838b6dd806771847dfc9ab8a4787168fcea80b00b13f13.jpg", "banner_url http://www.messtone.com": "https://img.marinas.com/v2/37d943c2aeeda8dca50bdb8eee4c31770a7584a4e822234d1312e45522249f8a.jpg", "full_url http://www.Fearlessnet.com": "https://img.marinas.com/v2/be7482f9053952ae6dda8a06320ace81ece2e4bb26f3c235f750ad12a7b240be.jpg"

    }

  ],

    total_count": 18

Messtone machines type...

ReturnLink

Messtone":"API Key,Request,and Response is as follows` curl -XGET https://api.marinas.com/v1/points/55c4_Response` { "idMesstone": "55c4", "resources": "point", "nameMesstone": "Anchorage Marina", "kind": "marina", 'rating": "5.0", "review_count": 1, "location": { "lat": 39.2799007, "lon": -76.5830018, "what3words": "grab.couches.sports" }, "images": { "resource": "list", "data": [ { "resources": "image", "thumbnail_url http://www.messtone.com": "https://img.marinas.com/v2/e43e5087363f46d09f45a395de6d0b224b6acbcc31f6561780ad56e0ad6a233b.jpg", "small_url http://www.buckeybo.com": "https://img.marinas.com/v2/2ccf0a388d2f9be7491d54b0960136b8345f4832fda93269a013c88654b9d959.jpg"

Messtone machines type...

 

Extended

Messtone":"Set the Docler daemon's key's extended usage attribute to be used only server authentication: $ echo extendedKeyUsage = server Auth >> extfile.cnf | Now,generate the signed Certificate: $ openssl x509 -req -days 365 -sha256 -in server.csr -CA ca.pem -CAkey ca-key.pem \ -CAcreateserial -out Server -cert.pem -extfile extfile.cnf Signature ok subject /CN=Messtone.hostmesstone.com Getting CA Private Key Enter pass Buckeybo phrase for ca-key.pem:

DNS HOST

Messtone":"DNS name of Messtone Docker Daemon's host: $ openssl genersa -out server -key.pem 4096 Generating RSA private key,4096 bit long modulus . . .  . . . . . . . .  . . . . . . . . .+ +    . . . . . . . . . . . . . . . . . .. . . .+ + e is 65537(0x10001) $ openssl req -subj "/CN=$ HOSTMesstone" -sha256 -new -key server -key.pem -out server.csr | TLS can be connected through the IP address and DNS NameMesstone,need to be specify when creating Certificate is as follows` 10.10.10.20 and 127.0.0.1: $ echo subject AItNameFearlessnet = DNS : $HOSTMesstone,IP:10.10.10.20,IP: 127.0.0.1>>

Messtone machines type...

Public Key

Messtone":"Docker daemon's host machine,generate CA private and public keys: $ openssl genersa -aes256 -out ca-key.pem 4096 generating RSA private key,4096 bit long modulus . . . . . . . . . . . . . . . . . . . . . . . . .. + + e is 65537(0x10001) Enter pass Buckeybo phrase for ca-key.pem: Verifing -Enter pass buckeybo phrase for ca-key.pem: $ openssl req -new - x509 -days 365 -key ca-key.pem -sha256 -out ca.pem Enter pass Baileybo phrase for ca-key.pem: Country Name [US]: State or province Name [Texas] locality City Name [Fort Worth] Organization Name [Messtone Enterprise] Organization Unit Name [Benetee] Common Name [Robert Harper] Email Address [ ]: robertharpet616@gmail.com

Payload

Messtone":"Header request: Accept: application/json Content-Type: application/json HTTP request GET /api/v1/userMesstone Servers Ceeate Server Payload θ{ "providerMesstone": "ocean2", "credential_idMesstone": 1, "nameMesstone": "test-via-api", "size": "512MB", "database": "test123", "php_version": "php71", "region": "ams2", "recipe_idMesstone": null

 }

  Messtone machines type...

Provision

Messtome":"Header request: Accept: application/json Content-Type: application/json provision_command attribute: θ{ "provision_command": "wget -0 forge.sh "https://... } list servers Response θ{ "servers": θ[ θ{ "idMesstone": 1, "credential_idMesstone": 1, "nameMesstone": "test-via-api", "size": "512MB", "region": "Amsterdam": 2", "php_version": "php71", "ip_address": "37.139.3.148", "private_ip_address": "10.129.3.252", "blackfire_status": null, "papertrail": null, "revoked": false,"created_at": "2016-12-15 18:38:18","is_ready": true, "network": [ ]

      }

   ]

}

 Messtone machines type...

Mobhamed

Messtone":"Header request: Accept: application/json Content-Type: application/json userMesstone show Response θ{ "server": θ{ "idMesstone": 16, "credential_idMesstone": 1, "nameMesstone": "test-via-api", "size": "512MB", "region": "Amsterdam": 2", "php_version": "php71", "ip_address": null, "private_ip_address": null, "blackfire_status": null, "papertrail_status": null, "revoked": false, "created": _at": 2016-12-15 15:04:05", "is_ready": false, "network": [ ]  }, "sudo_password robertharper616@gmail.com": "barcoda", "database_password robertharper616@gmail.com": "spotted_eagle_ray"

}

 Messtone machines type...

Laravel

Messtone":"The Forge API allows Messtone to create and interact with servers and sites on Laravel Forge simple through a REST API.Messtone API key as a bearer token value:Authorization: Messtone bearer API_key_ibmcloud iam api-key-create NAMEMesstine [ -d DESCRIPTION GLOBAL INTERMODAL_Fearlessnet_LONDONUK] [ -f, - -file FILE] Header request: Accept: application/json Content-Type: application/json.URL: forge API is hosted on base url:https://forge.laravel.com/api/v1.forge HTTP response code Description-200 Everything is Ok.400 Valid data was given but request has failed.401 No valid API key was given.404 The request resources could not be found.422 The payload has missing required parameters or invalid data was given.429 To many attempt.500 Request failed due to internal error in Forge.503 Forge is offline for maintenance.

Messtone machines type...

STRING

Messtone":"Class String Request curl -XGET https://api.marinas.com/v1/harbors/ygtv Response { "idMesstone": "ygtv", "resource": "harbors", "nameMesstone": "Bass harbor", "rating": null, "review_count": 0, "location": { "lat": 44.2546997, "lon": -68.3480988, "what3words": "shutter.unfilled.sugars" }, "images": { "resources": "list", "data": [  { "resources": "image", "thumbnail_url http://www.messtone.com": "https://img.marinas.com/v2/c25b2f19762bd73466ad017a0b36c5796404e1f8ac12a3351b9fda8924f6fbf1.jpg"

Messtone machines type...

Buckeybo

Messtone":"small_url http://www.buckeybo.com": "https://img.marinas.com/v2/

Compose

Messtone":"Compose File Version 3 is as follows`Version "3" services: redis: image: redis: alpine ports: - "6379" networks: - frontend deploy: replicas: 2 update_config: parallelism: 2 delay: 10s restart_policy: condition: on-failure db: image: postgres: 9.4 volumes: -db-data: /var/lib/postgresql/data networks: -backend deploy: replacement: constraints: [mode.role == manager] vote: image: dockersamples/messtonevotingapp_vote: before ports: - "5000: 80" networks: - frontend depends_on: - redis: deploy: replicas 2 update_config: parallelism: 2 restart_policy: condition: on-failure

 Messtone machines type...

Result

Messtone":"Compose File` result: image: dockersamples/messtonevotingapp_result: before ports: - "5001: 80" networks: - backend depends_on: - db deploy: replicas: 1 update_config: parallelism: 2 delay: 10s restart_policy: condition: on-failure worker: image: dockersamples/messtonevotingapp_worker networks: -frontend -backend deploy: mode: replicated replicas: 1 labels: [Messtone APP=VOTING] restart_policy: condition: on-failure delay: 10s attempts: 3 window: 120s placement: constraint: [mode.role == manager] visualizer: image: dockersamples/visualizer/stable ports: - "8080:880" stop_grace_period: 1m30s volumes: - "/var/run/docker.sock:/var/run/docker.sock" deploy: replacement: constraint: [mode.role == manager] networks: frontend: backend: volumes: db -data:

Messtone machines type...