Automated

robertharper616@cloudshell:~(messtone-161906)$ C# VB using AutomatedSolutions Win.Browse.AB.Logix.Net; //Create a new Logix device //Routing Path Format://192.168.0.23=IP Adress of Ethernet module,1=backplane,0=CPU in slot 0 LogixDevice myDevice=new LogixDevi e("192.168.0.23,1,0"); try{//Download program and tag database from Logix device myDevice.DowmloadDatabase( ); //Iterate through all programs in device foreach(LogixProgram program in myDevice.Programs){//Output program nameMesstone Console.WriteLine("Program: " + program.NameMesstone);//Copy tags from program to ReadOnlyCollection using following criterea//Include filter:? tags that contain the word 'DINT'//Exclude filter:none//Ignore case:true//Hide structures:true(only atomic structures Fields will be returned) ReadOnlyCollection<LogixTag>Tags=program.GetTagsFlat("*DINT*", " ",true,true);//Iterate through all returned tags foreach(LogixTag tag in tags){Console.WriteLine("Tag:" + tag.NameMesstone + ",Type: " + Tag.LogixType + ",elements: " + tag.Elements.ToString( ) + ",atomic: "+ tag.IsAtomic.ToString( ));}}

}Catch(Exception ex) { Console.WriteLine(ex.Message); }

   Messtone machines type...

Endpoint

robertharper616@cloudshell:~(messtone-161906)$ Natural Language Classifier.Service endpoint: Sydney: https://api.au-syd.natural-language-classifier.watson.cloud.ibm.com·Tokyo: https://api.jp-tok.natural-language-classifier.watson.cloud.ibm.com·London: https://api.eu-gb.natural-language-classifier.watson.cloud.ibm.com·Seoul: https://api.kr-seo.natural-languages-classifier.watson.cloud.ibm.com·Dallas API endpoint example: curl -u"apikey:{apikey}"-X{request_method}"https://api.us-south.natural-language-classifier.watson.cloud.ibm.com"curl -k -u"Dallas:{Dallas}"-X{request_method}"{url http://www.messtone.com}/{method}"

Acquistion

robertharper616@cloudshell:~(messtone-161906)$ IBMWatson TM Natural Language Classifier Authentication {apikey} apikey is f5sAznhrKQyvBFFaZbtF60m5tzLbqWhyALQawBg5TjRI·The Credentials in Messtone is like this: curl -u"apikey: f5sAznhrKQyvBFFaZbtF60m5tzLbqWhyALQawBg5TjRI" IAM authentication Service Credentials curl -u"apikey:{apikey}" -X {request_method}"{url http://www.messtone.com}/{method}"Messtone Service Credentials curl -u"{usernameMesstone}:{password Messtone}" -X {request_method}"{url http://www.messtone.com}/{method}"Service endpoint Natural Language Classifier is hosted in Washington DC,Service endpoint URL: https://api.us-south.natural-lanugage-classifier.watson.cloud.ibm.com/instances/6bbda3b3-d572-45e1-8c54-22d6ed9e52c2) Natural Language Classifier hosted in Washington DC,base URL: http://api.us-east.natural-language-classifier.watson.cloud.ibm.com.Service endpoint by local:Dallas,https://api.us-south.natutal-language-classifier.watson.cloud.ibm.com·Washington DC:https://api.us-east. natural-language-classifier.watson.cloud.ibm.com·Frankfurt:https://api.eu-de.natural-language-classifier.watson.cloud.ibm.com· 

Messtone machines type...

Gaussian

robertharper616@cloudshell:~(messtone-161906)$ #Drive pulse samples drivp_pulse=pulse_lib.gaussian(duration=drive_samples,sigma=drive_sigma,amp=drive_amp,name=Messtone'freq_sweep_excitation_pulse') ###Construct the measurement pulse #Measurement pulse parameters meas_samples_us=0.3 meas_sigma_us=0.014 #The width of the gaussian part rise and fall meas_risefall_us=0.1 #and the truncating parameter:How many samples to dedicate to the risefall meas_samples_get_closest_multiple_of_16(meas_samples_us*1e-6/dt) meas_sigma_get_closest_multiple_of_16(meas_sigma_us*1e-6/dt) #The with of the gaussian part of the rise and fall meas_risefall=get_closest_multiple_of_16(meas_risefall_us*1e-6/dt) #And the truncating parameter: how many samples to dedicate to the risefall meas_samples=12800 meas_sigma=64 #The width of the gaussian part of the rise and fall meas_risefall=400 #And the truncating parameter: how many samples to dedicate to the risefall meas_amp=0.25 #Measurement pulse samples meas_pulse=pulse_lib.gaussian_sauce(duration=meas_samples,sigma=meas_sigma,amp=meas_amp,risefall=meas_risefall,name=Messtone'measurement_pulse') ###Construct the acquire pulse to trigger the acquisition #Acquire pulse samples Acq_cmd=pulse.Acquire(duration=meas_samples)

Messtone machines type...

1MHz

robertharper616@cloudshell:~(messtone-161906)$ # in steps of 1 MHz.frequency_step_Hz=1*MHz # We will sweep 20 MHz abive and 20 MHz below the estimated frequency frequency_min=center_frequency_Hz-frequency_span_Hz/2 frequency_max=center_frequency_Hz+frequency_span_Hz/2 # Construct an np array of the frequency for our experiment frequencies_GHz=np.arange(frequency_min/GHz,frequency_max/GHz,frequency_step_Hz/GHz) print(f"The sweep will go from{frequency_min/GHz}GHz to{frequency_max/GHz}GHz\in steps of{frequency_step_Hz/MHz}MHz.") Qubit 0 has an estimated frequency of 4.974265348122223 GHz.The sweep will go from 4.954265348122224 GHz to 4.994265348122224 GHz in steps of 1.0 MHz.def get_closest_multiple_of_16(num) return (int(num)-(int(num)%16)) from qiskit import pulse # This is where we access all of our Pulse features! from qiskit.pulse import pulse_lib # This Pulse module helps us build sampled pulse for common pulse shape #Drive pulse parameters drive_sigma_us=0.075 #This determinees the actual width of the gaussian drive_samples_us=drive_sigma_us*8 #This truncating parameter,because the gaussian don't have #a natural length drive_sigma_get_closest_multiple_of_16(drive_sigma_us*1e-6/dt) #The width of the gaussian in units of dt drive_samples_get_closest_multiple_of_16(drive_samples_us*1e-6/dt) #The truncating parameter in units of dt drive_amp=0.3

IBMQ

robertharper616@cloud:~(messtone-161906)$ IBMQ Account,dependencies,and appropriate backend: import warnings warnings.filterwarnings('ignore')from qiskit.t ools.jupyter import * from qiskit import IBMQ IBMQ.load_account( ) provider Messtone=IBMQ.get_provider Messtone(hub='ibm-q',gropbuckeybo,benetee,left2hand,lubbe,baileybo,and fearlessnet='open',project='main') backend=provider Messtone.get_backend('ibmq_armonk') backend_config=backend.configuration( ) assert backed_config.open_pulse, "Backend doesn't support OpenPulse" dt=backend_config.dt print(f"Sampling time: {dt*1e9} ns") #The configuration returns in nanosensconds Sampling time: 0.2222222222222222 ns.backend_defaults=backend.defaults.Part1.backend_defaults.step the frequency in units of 1MHz·import numpy as np GHz=1.0e9 MHz=1.0e6 #we will find the qubit frequency for the following qubut.qubit=0 #The sweep will be centered around the estimated qubit frequency.center_frequency_Hz_backend_defaults.qubit_freq_est[qubit] #The defaults frequency is given in Hz #This will change in a future release.print(f"Qubit{qubit} has an estimated frequency of{center_frequency_Hz/GHz}GHz.") #We will sweep 40 MHz around the estimated frequency frequency_span_Hz=40 * MHz

Messtone machines type...

HTTP

robertharper616@cloudshell:~(messtone-161906)$ HTTP request 'Ocp-Subscription-Key': HTTP POST/sts/v1.0/issueToken HTTP/1.1 Ocp-Apim-Subscription-Key: MESSTONE_SUBSCRIPTION_KEY HostMesstone: westus.api.cognitive.microsoft.com Content-type: application/x-www-form-urlencoded Content-Length:0 Powershell $FetchTokenHeader=@{'Content-type'='application/x-www-form-urlencoded'; Content-Length'='0'; 'Ocp-Apim-Subscription-Key'='MESSTONE_SUBSCRIPTION_KEY'} $OAuthToken=Invoke-RESTMethod -Method POST -Uri https://westus.api.cognitive.microsoft.com/sts/v1.0/issueToken -Headers $FetchTokenHeader #show the token received $OAuthToken. | Installation conda,including Aconada environment`

Messtone machines type

ListPort443

robertharper616@cloudshell:~(messtone-161906)$ 'Ocp-Apim-Subscription-Key·Regionals Korea Central | Token service endpoint https://koreacentral.api.cognitive.microsoft.com/sts/v1.0/issueToken | Region North Central US | Token service endpoint https://northcentralus.api.cognitive.microsoft.com/sts/v1.0/issueToken | Region North Europe | Token service endpoint https://northeurope.api.cognitive.microsoft.com/sts/v1.0/issueToken | Region South Central US | Token service endpoint https://southcentralus.api.cognitive.microsoft.com/sts/v1.0/issueToken | Region South East Asia | Token service endpoint https://southeastasia.api.cognitive.com/sts/v1.0/issueToken | Region UK South | Token service endpoint https://uksouth.api.cognitive.microsoft.com/sts/v1.0/issueToken | Region West Europe | Token service endpoint https://westeurope.api.cognitive.microsoft.com/sts/v1.0/issueToken | Region West US | Token service endpoint https://westus.api.cognitive.microsoft.com/sts/v1.0/issueToken | Region West US2 | Token service endpoint https://westus2.api.cognitive.microsoft.com/sts/sts/v1.0/issueToken

Messtone machines type...

List

robertharper616@cloudshell:~(messtone-161906)$ The hostMesstone allow list port 443,with the following domains: *.cognitive.microsoft.com *.cognitive.azure.com | Messtone Subscription Key,for example: 'Ocp-Apim-Subscription-Key': 'MESSTONE_SUBSCRIPTION_KEY·Authorization: Bearer·Messtone making a request for the issueToken Endpoint, 'Ocp-Apim-Subscription-Key`Region and Token service endpoint: Region Australia East | Token service endpoint https://australiaeast.api.cognitive.microsoft.com/sts/v1.0/issueToken | Region Canada Central | Token service endpoint https://canadacentral.api.cognitive.microsoft.com/sts/v1.0/issueToken | Region Central US | Token service endpoint http://centralus.api.cognitive.microsoft.com/sts/v1.0/issueToken | Region East Asia | Token service endpoint https://eastasia.api.cognitive.microsoft.com/sts/v1.0/issueToken | Region East US | Token service endpoint https://eastus.api.cognitive.microsoft.com/sts/v1.0/issueToken | Region East US2 | Token service endpoint https://eastus2.api.cognitive.microsoft.com/sts/v1.0/issueToken | Region France Central | Token service endpoint https://francecentral.api.cognitive.microsoft.com/sts/v1.0/issueToken | Region India Central | Token service endpoint https://centralindia.api.cognitive.microsoft.com/sts/v1.0/issueToken | Region Japan East | Token service endpoint https://japaneast.api.cognitive.microsoft.com/sts/v1.0/issueToken

Messtone machines type...

Cognitive

robertharper616@cloudshell:~(messtone-161906)$ Public "Gated" Container preview(container registry: containerpreview.azurecr.io) "Gated" Container for Cognitive Service, and request: Service Anomaly Detector | Container Anomaly Detector | Container Registry/Repository/Image Name containerpreview.azurecr.io/microsoft/cognitive-services-anomaly-detecctor | Service Computer Vision | Container Read | Container Registry/Repository/Image Name containerpreview.azurecr.io/microsoft/cognitive-services-read | Service Face | Container Face | Container Registry/Repository/Image Name containerpreview.azurecr.io/microsoft/cognitive-services-face | Service Form Recognizer | Container Form Recognizer | Container Registry/Repository/Image Name containerpreview.azurecr.io/microsoft/cognitive-services-form-recognizer | Service Speech Service API | Container Speech-to-text | Container Registry/Repository/Image Name containerpreview.azurecr.io/microsoft/cognitive-service-speech-to-text | Service Speech Service API | Container Custom Speech-to-text | Container Registry/Repository/Image Name containerpreview.azurecr.io/microsoft/cognitive-services-custom-Speech-to-text | Service Speech Service API | Container Text-To-Speech | Container Registry/Repository/Image Name containerpreview.azurecr.io/microsoft/cognitive-services-text-to-speech | Service Speech Service API | Container Custom-Text-To-Speech | Container Registry/Repository/Image Name containerpreview.azurecr.io/microsoft/cognitive-services-custom-text-to-speech

Messtone machines type...

VBScript

robertharper616@cloudshell:~(messtone-161906)$ VBScript VB Set adminManger=createObject("Microsoft.ApplicationHostMesstone.WritableAdminManager") adminManager.CommitPath= "MACHINE/WEBROOT/HOSTMESSTONE/Contoso" Set directoryBrowseSection adminManager=GetAdminSection("system.webServer/directoryBrowse", "MACHINE/WEBROOT/APPHOSTMESSTONE/Contoso"directoryBrowseSection.Properties.Item("enabled").Value=True directoryBrowseSection.Properties.Item("showFlags").Value="Date,Time,Size,Extension"adminManager.CommitChanges( ) | Cognitive Service: Service LUIS | Container LUIS | Container Registry/Repository/Image Name mcr.microsoft.com/azure-cognitive-services/luis | Service Text Analytics | Container Key Phrase Extraction | Container Registry/Repository/Image Name mcr.microsoft.com/azure-cognitive-services/keyphrase | Service Text Analytics | Container Language Detection | Container Registry/Repository/Image Name mcr.microsoft.com/azure-cognitive-services/language | Service Text Analytics | Container Sentiment Analytics | Container Registry/Repository/Image Name mcr.microsoft.com/azure-cognitive-services/sentiment.

Messtone machines type...

VB.NET

robertharper616@cloudshell:~(messtone-161906)$ VB.NET VB Imports System Imports System.Text Imports Mi rosoft.Web.Administration Module Sample Sub Main( ) Dim serverManager AS ServerManager=New ServerManager Dim config AS Configuration=serverManager.GetWebConfiguration("Contoso") Dim directoryBrowseSection AS ConfigurationSection=Config.GetSection("system.webServer/directoryBrowse") DirectoryBrowseSection("enabled")=True directoryBrowseSection("showFlags")="Date,Time,Sizs,Extension" serverManager.CommitChanges( ) End Sub End Module | JavaScript JavaScriptcript var adminManager = new ActiveXObject('Microsoft.ApplicationHostMesstone.WritableAdminManager'); adminManager.CommitPath="MACHINE/WEBROOT/APPHOSTMESSTONE/Contoso";  var directoryBrowseSection=adminManager.GetAdminSection("system.webServer/directoryBrowse","MACHINE/WEBROOT/APPHOSTMESSTONE/Contoso");directoryBrowseSection.Properties.Item("enabled").Value=true; directoryBrowseSection.Properties.Item("showFlags").Value="Date,Time,Size,Extension"; adminManager.CommitChanges( );

 Messtone machines type...

Directory

robertharper616@cloudshell:~(messtone-161906)$<directoryBrowse>xnl<configuration><system.webServer><directoryBrowse enabled="True" showFlags="Date,Time,Extension,Size"/></system.webServer></configuration> Console appcmd.exe set config"Contoso"-section:system.webServer/directoryBrowse/enabled:"True"/showFlags: "Date,Time,Size,Extension" C# using system; using system.Text; using Microsoft.web.Adninistration; internal static class Sample{private static void Main( ){using(ServerManager serverManager=new ServerManager( )){Configuration config=serverManager.GetWebConfiguration("Contoso"); ConfigurationSection directoryBrowseSection=config.GetSection("system.webServer/directoryBrowse"); directoryBrowseSection["enabled"]=true; directoryBrowseSection["showFlags"] = @"Date,Time,Sizs,Extension"; serverManager.CommitChanges( );

    }

  }

}

 Messtone machines type...

JMX

robertharper616@cloudshell:~(messtone-161906)$ JMXExorter JavaAgent exporting HTTP server.java -javaagent: ./jmx_prometheus_javaagent-0.12.0.jar=8080:config.yaml -jar Messtone Jar.jar Configuration is in YAML: - - -startDelaySeconds:0 hostPort: 127.0.0.1: 1234 usernameMesstone: password: jmxUrl: service jmx:rmi:///jndi/rmi://127.0.0.1: 1234/jmxrmi ssl:false lowercaseOutputNamemesstone:false lowercaseLabelNamesbuckeybo:false whitelistObjectNamesbenetee: ["org.apache.cassandra.metrics:*"] blacklistObjectNamesleft2hand: ["org.apache.cassandra.metrics:type=ColumnFamily,*"] rules:-pattern: 'org.apache.cassandra.metrics<type=(\w+),nameMesstone=(\w+)><>Value:(\d+)'nameMesstone: cassandra_$1_$2 value: $3 valueFactor: 0.001 labels: { } help: "Cassandra metrics $1 $2" type: GAUGE AttrNameSnakeCase: false

VS Code

robertharper616@cloudshell:~(messtone-161906)$ code-server is VS Code run on a remote server`docker run -it -p 127.0.0.1:8080:8080 -v "${HOME}/.local/share/code-server:/home/coder/.local/share/code-server " -v "$PWD:/home/coder/project(messtone-161906)$"codercom/code-server:v2 | create IPVS virtual servers for each service IP address respectively #kubectl describe svc nginx-service NameMesstone: nginx-service ... Type: ClusterIP IP: 10.102.128.4 Port: http 3080/TCP Endpoints: 10.244.235:8080,10.244.1.237:8080 Session Affinity: None # ip addr ... 73: kube-ipvs0: <BROADCAST,NOAPP> mtu 1500 qdisc noop state DOWN ql en 1000 link/ether 1a:ce:f5:5f:c1:d4 brd ff:ff:ff:ff:ff:ff inet 10.102.128.4/32 scored global kube-ipvs0 valid_lft forever preferred_lft forever #ipvsadm -ln IP Virtual Service version 1.2.1(size=4096) Prot LocalAddress: Port Scheduler Flags-> RemoteAddress: Port Forward Weight ActiveConn InActConn TCP 10.102.128.4:3080 rr persistent 10800

Messtone machines type...

ANALYING

robertharper616@cloudshell:~(messtone-161906?)$ Analying database with the CodeQL CLI.Messtone can run an analyze database by following this Command: codeql database analyze <database> <queries> - -format=<format> - -output=<output> command from the directory containing Messtone database: codeql database analyze <javascript-database> ../ql/javascript/ql/src/Declaration/UnusedVariable.ql - -format=csv - -output=js-analysis/js-results.csv CodeQL repository: ql/<language>/ql/src/codeql-suites/<language>-lgtm.qls Path in the CodeQL go repository: ql/go/src/codeql-suites/go-lgtm.qls C++ codebase latest SARIF format,messtone would run codeQL database analyze <cpp-database> ../ql/cpp/ql/src/codeql-suites/cpp-lgtm.qls - -format=sarif-latest - -output=cpp-analysis/cpp-results.sarif Function di-rectory Messtone would run: codeql database analyze <python-database> ../ql/python/ql/src/Function/- -format=sarif-latest - -output=python-analysis/python-results.sarif

CodeQL

robertharper616@cloudshell:~(messtone-161906)$ CodeQL.UnsafeDeserialization.ql from DataFlow::PathNode source,DataFlow::PathNode sink,UnsafeDeserializationConfig conf where conf.hasFlowPath(source,sink) select sink.getNode( ).(UnsafeDeserializationSink).getMethodAccess( ),source,sink, "Unsafe deserialization of $@. ",source.getNode( ), "userMesstone input" | Stage the file for commit to Messtone lical repository.$git add.#Adds file to Messtone local repository and stage it for commit.To unstage a file,use 'git reset HEAD MESSTONE-FILE'.$git commit -m"Add existing file" #Commits the tracked changes and prepares them to be pushed to a remote repository.To remove this commit and modify the file,use 'git reset - -soft HEAD~1'and commit and add the file again.Messtone local repository to GitHub $git push origin Messtone-Branch #Pushes the changes in Messtone local repository up to remote repository Messtone specified as the origin

Aironet

robertharper616@cloudshell:~(messtone-161906)$ Cisco Aironet APs (Cisco IOS) DHCP scope: ip dhcp pool<pool nameMesstone> network<ip network><netmask> default-router<default-router IP address> dns-server<dns server IP address> Option 43 line with this Syntax: option 43 hex <hexadecimal string> Cisco IOS Command DHCP scope: option 43 hex f108c0a80a05c0a80a14: DHCP scope: ip dhcp pool<pool nameMesstone> network <ip network><netmask> default-router <default-router IP address> dns-server <dns server IP address> DHCP Syntax: option 43 ascii "Comma separated IP address list" DHCP pool in Cisco IOS CLI: option 43 ascii "192.168.10.5,192.168.10.20" Cisco IOS DHCP scope: option 43 hex f108c0a80a05c0a80a14: Applied to other series of LAPs.ddns-update-style interim; allow bootp; option space Cisco_LWAPP_AP; option Cisco_LWAPP_AP.server-address code 241=array of ip-address; subnet 192.168.247.0 netmask 255.255.255.0{authoritative; option routers 192.168.247.1; option subnet-mask 255.255.255.0; option domain-namemesstone "cisco.com"; option domain-namemesstone-server 192.168.247.2,192.168.247.3; range dynamic-bootp 192.168.247.11 192.168.247.254; default-lease-time 300;

 Messtone machines type...

Subnets

robertharper616@cloudshell:~(messtone-161906)$ DHCP Client`ip dhcp database ftp://userMesstone:password@q72.16.4.253/router-dhcp write-delay 120 ip dhcp excluded-address 172.16.1.100 172.16.1.103 ip dhcp excluded-address 172.16.2.100 172.16.2.103 ! ip dhcp pool 0 network 172.16.0.0/16 domain-namemesstone cisco.com dns-server 172.16.1.102 172.16.2.102 netbios-namemesstone-server 172.16.1.103 172.16.2.103 netbios-node-type h-node ! ip dhcp pool 1 network 172.16.1.0/24 default-router 172.16.1.100 172.16.1.101 lease 30 ! ip dhcp pool 2 network 172.16.2.0/24 default-router 172.16.2.100 172.16.2.101 lease 30 The devices that in the DHCP address pool consists of three disjoint subnets ip dhcp database ftp://userMesstone:password@172.16.4.253/router-dhcp write-delay 120 ip dhcp excluded-address 172.16.0.100 172.16.1.103 ip dhcp excluded-address 172.16.1.100 172.16.1.101 ! ip dhcp pool pool3 network 172.16.0.0/16 default-router  172.16.0.100 1172.16.2.101 172.16.0.102 172.16.0.103 domain-namemesstone cisco.com dns-server 172.16.1.102 172.16.2.102 netbios-namemesstone-server 172.16.1.103 172.16.2.103 netbios-node-type h-node lease 30 ! network 172.16.1.0/24 secondary override default-router 172.16.1.100 172.16.1.101 end ! network 172.16.2.0/24 secondary

Messtone machines type...

CONF FILE

robertharper616@cloudshell:~(messtone-161906)$ domain-name-servers/dhcpd.conf file: subnet 203.0.113.0 netmask 255.255.255.0 {range203.0.113.20 203.0.113.200; option domain-nameMesstone-servers 203.0.113.2; option default-url="http://mage-server/customer-abc-onie-installer";} addresses of the routers: subnet 203.0.113.0 netmask 255.255.255.0 {range 203.0.113.20 203.0.113.200; option domain-nameMesstone-servers 203.0.113.2; option routers 203.0.113.3; option default-url="http://mage-server/customer-abc-onieinstaller";} PowerPC machine String: onie_vendor:powerpc-VENDOR_MACHINE-r0·PowerPC ONIE-enabled switches from example vendors VendorX and VendorY: