Connecting AWS IoT

Connecting to the AWS IoT MQTT Perform1 AWS__IoT__Client client;2 rc = aws__iot__mqtt__int (& client.&.iot InitParams); 3 rc = aws__iot__mqtt__connect (& client,& iot connectParams); Subscribe to a topic1 AWS__IoT__Client client; 2 rc = aws__iot__mqtt__subscrible (& client, "sdkTest/sub" ,11,QOS,iot__subscribe__callback__handler,NULL); UpdateThingShadow from a device1 rc = aws iot__shadow__Update (& mqttClient,AWS__IoT__MY__THING__NAME MESSTONE, pJsonDocument Buffer.Shadow update status Callback,2 pCallbackContext,TIMEOUT__4SECS,persistenSubscription); Generate by 1.8.10 .

     http://www.messtone.com

 

 

 

Networks Routing AWS

add-ip-routes [:ref:`aws<cli:aws`.:ref:`ds<cli:aws ds>`].._cli:aws ds add-ip-routes:*************add-ip-routes************ 

===========Description=allocate-private-vurtual-interface...tionId":"dxcon-ffirKx17","virtualInterfaceId":"dxvifgy8orxu","authkey":"asdf34messtone","routeFilterPrefixes":[],"location":"TIVIT","customerRouterConfig":"<? xml version=\"1.0\"encoding=\...alloccate-public-virtual-Interface...aceName Messtone=string,vlan=integer,asn=integer,authkey=string,amazonAddress=string,customerAddress=string,addressFamily=string,routeFilterPrefixes=[{cidr=string},{cidr=string}]JSON Syntax:{"VirtualinterfaceName Messtone":"string","vlan...associate-virtual-Interface...yld":"vgw-38e90b51","VirtualInterfaceId":"dxvif-fgputw0j","authkey":"0x123pK5_VBqv.UQ3kJ4123_","routeFilterPrefixes":[],"location":"EqDC2","bgpPeers":[{"bgpSta...Create-Cluster...onfiguration-identifier<value>] [--elastic-ip<value>]--tags<value>] [--enhanced--vpc-routing]--no-enhanced-vpc-routing] [--additional-info<value>] [--iam-roles<value>] [--cli-input-json<value>]...Create-distribution...e default cache behavior or for another cache behavior,

http://www.messtone.com

 

IAM CREATE POLICY

Policy Command To Assume AWS IoT Access to my AWS resource upon assuming the role,passing in the iot-policy.json file : aws iam create-Policy - -policyName Messtone my-iot-Policy - -PolicyDocumentFile : //my-iot-policy-document.json Command contains the ARN of the policy.Need attach rhe policy to a role.

 {

    "policy" : { "Policy name messtone" : my-iot-Policy" , "CreateDate" : "2015-09-30T19 : 31 : 18.620Z" , "ArrachmentCount" : 0, "IsAttachable" : true, "PolicyId" : "ZXR6A36LTYANPAI7NJ5UV" , "Default VersionId" : "v1" , "Path" : "/" , "Arn" :"arn : aws : iam : : 123456789012 : Policy/my-iot-Policy" , "UpdateDate" : "2015-09-30T19 : 31 : 18.620Z"

  }

}

Attach-role-Policy Command : aws iam attach-role-Policy - -role-Name Messtone my-iot-role - -Policy-arn" : aws : iam : : 1123456789012 : policy / my-iot-Policy"

http://www.messtone.com

 

AWS FUNC NEW

func new.func new Client.Config provider.cfgs.*aws.conf://create a ECR Client from just a session svc:=ecr.new (mysession) //create a ECR Client with additional configuration svc:=ecr.new (mysession,aws.new config ( ).with Region ("us-west-2") ) func (*ECR) Batch CheckLayerAvailability func (c*ECR) BatchCheckLayerAvailability (input*BatchCheckLayerAvailability Input) (*BatchCheckLayerAvailabilityOutput errors) Return ErrCodes:*ErrCodeRepositoryNotFoundException"Repository NotFoundException The.Specified repository could not be found.Check the Spelling. Of the Specified repository and ensure that you are performing operations on the connect registry.*ErrCodeInvalidParameterException"The Specifued parameter is invalid.Review the available

Space Change

AAmazon Ip space change,The payload contain information:

{

  "Create-time":"2013-09-11Thh:12:19+00:00.00", "synctoken":"0123456789", "md5":"6a453l6e8bc9463c9e926d5b37836d33", "url":"https://ip-ranges.Amazonaws.com/ranges.json"

 }

http://www.messtone.com

 

 

IAM POLICY

{"Version" : "2012-10-17", "Statement" : [ {"Sid"allow", "Effect" : "Allow", "Resource" : ["*"], "Action" : ["ec2 : *", "elasticloadbalancing : *" ,"autoScaling : *", "rds : *", "CloudWatch : *". "Logs : *, "route53 : *", "acm:*", "iam : * instanceProfile*", "iam ; * Role *"] }, {"Sid" : "s3 Allow Bucket", "Effect" : "Allow" : "Action" : ["s3 : Create Bucket", "s3 : list All myBuckets", "s3: Get BucketLocation"], " Resource": ["ARN:AWS:s3: : :*"] }, {"Sid":"S3 Allow Object", "Effect":"Allow","Action": ["s3:*"Resource":["arn:aws:s3: : :boxfuse-*"] }, {"Sid":"ec2 Deny", "Effect":"Deny","Action":["ec2:*"],"Resoure":["*"],"Condition":{"StringEquals": { "ec2:Resource Tag/boxfuse:ignore":"true" } } }, { "Sid";"rds Deny", "Effect":"Deny", "Action: ["rds;*"],Resource":["*"], "Condition": {"StringEquals": {"rds:db-tag/boxfuse:ignore":"true" } } } ] } DirectoryPathboxfuse Deploy it unchanged AWS boxfuse-Run-env=prod hello:1.0

http://www.messtone.com

 

 

 

 

 

 

AWS SCT.JDBC

Operating File Name Messtone System Fedora Linux AWS-schema-conversion-tool-1.0.build-number.x86_64.rpm macOS AWS Schema conversion Tool-1.0.build-number.dmg Microsoft Windows AWS schema conversion Tool-1.0.build-number.msi ubuntu linux AWS schema-conversion-tool-1.0.build-number.deb file download commands: sudo yum install aws-schema-conversion-tool-1.0.build-number.x86_64.rpm Finder,open AWS schema conversion Tool-1.0.build-number.dmg.Drag.AWS schema conversion1.0.build-number.dmg to the Application folder.Sudo dpkg - i aws-schema-consion-1.0.build-number.deb,JDBC drivers linux system use with AWS SCT. PROMPT>sudo mkdir-p/usr/local/jdbc-drivers base Commanfs.Amazon Aurora (Postgresql compatible) PROMPT>cd/usr/local/jdbc-drivers PROMPT>sudo tar xzvf/tmp/mysql-connector-java-X.X.X.tar.gz .Oracle PROMPT>cd/usr/local/jdbc-drivers PROMPT>sudo mkdir oracle-jdbc PROMPT>cd oracle -jdbc PROMPT>sudo cp-a/tmp/ojdbc 7.jar.PostgreSQL PROMPT>cd/usr/local/jdbc-drivers PROMPT>sudo cp-a/tmp/PostgreSQL-X.X.X.JRE 7.TAR.

http://www.messtone.com

 

ExploitDataBases

ExploitDataBases-bin-Sploits repository hoid binary root@Kali : ~ # Search exploit afd Windows-W-t Exploit Title URL http://www.messtone.com

Microsoft Windows(x86)-'afd.Sys'local privilege Escalation(MS11-046) | https://www.exploit-db.com/exploits/40564/Microsoft Windows-'afdjoinLeaf'local Privilege Escalation(MS11-080) (Metasploits) | https://www.exploit-db.com/exploits/21844/Microsoft Windows-'afd.sys local kernel (PoC) (MS11-046)  |  http://www.exploit-db.com/exploits/18755/Microsoft Windows 7 (x86)-'afd.Sys'Dangling Pointer Privilege Escalation (MS14-040) | https://www.exploit-db.com/exploits/39525/Microsoft Windows 7.(x86)-'afd.SyS'Dangling Pointer,

http://www.messtone.com

 

AWS IoT Policy

A Policy to send and received messages

{

  "Version" : "2017-10-18" , 'Statement" : [

 {

 "Effect" : [

   {

 "Effect" : "Allow" , "Action" : [ "iot : Publish" , "iot Subscribers" , "iot : Connection" ,"iot : Receive"

    ],

 Resource" : [

 " * "

       ]

    }

}

     http://www.messtone.com

 

Protocol.     Authentication,and port Mapping

Protocol         Automation.     Port

MQTT.            Client .              8883

                     Certification .       443

        HTTP                Client .        843

                     Certification          

HTTP.              SigV4.                   443

HTTP

MQTT+            GigV4.                  443

WebSocket

           http://www.messtone.com

 

DescribeScalingPlan: 

 

{

  "Application Source" :

[

   {

     Application Sources" : [

  {

    "CloudFormationSkackARN" : "String"

 }

],

  MaxResults" : number, "NextToken"  : "String" , "String ScalingPlanNames Messtone" : ["String"], "ScalingPlanVersion" : Number

  }

Command s3 bucket listing; $ aws s3 ls s3 :  // mybucket last WriteTime LengthName messtone PRE myfolder/2013-09-03 10 : 00 : 00 1234 myfile.txt. AWS CLI RUN TRANSFERS $ aws s3 cp myfolder s3 : // mybucket/myfolder - - recursive upload : myfolder/Subfolder/file1.txt to s3 : //mybucket/myfolder/Subfolder/File1.txt sync local Folder with copy in s3 bucket $ aws s3 SYNC myfolder s3 : //mybucket/myfolder - -Exclude*.tmp uoload : myfolder/NewFile.TXT to s3 : //mybucket/myfolder/newfile.TXT

http://www.messtone.com

 

 

  

    

 

 

 

 

 

Application Layer

Internet Engineering Task Force (IETF)S.Friedl Request for comments .7301 Cisco System,Inc.Category: Standards Track A.Popov ISSN: 2017-1721Microsoft Corp.A.Langley Google Inc.E.Stephan Orange July 2014 Transport Layer Security (TLS) Application-layer protocol negotiation Extension AbstractThis document describe Transport layer Security (TLS) Extension for Application-layer protocol negotiation in theTLS handShake.For instance in which. Muliples Applications protocols are support on the sameTCP or UDP port, this extension allows the application layer to negotiate which protocol will be used within the TLS Connection.Status of This Memo This an Internet Standards Track document.This document.This document is a product of the Internet Engineering Task. Force (IETF).It represents the Consensus of the IETF Cmmunity.has received public review and has been approved for publications by the Internet Engineering Steering group (TESG).

http://www.messtone.com

 

 

Repository Update

ubuntu-Run echo"deb http://archive.ubuntu.com/ubuntu trusty main universe">/etc/apt/sources.list.repository for use later in the process.Run DEBIAN_PROTEND=noninteractive apt-get install- y -qpythnon-software-properties software-properties-common Oracle java 8 Env JAVA_HOME MESSTONE/usr/lib/jvm/java-8-oracle Run echo'deb http://ppa.launch pad.net/webupd8 team/java/ubuntu trusty main">>/etc/apt/sources.list &&\apt-key adv - -key server key server.ubuntu.com - -recv-keys C2518248EEA14886&&\apt-get update&&\echo oracle-java $ { JAVA_VER } - installer shared/accepted-oracle-license-1Select true | sudo/usr/bin/deb conf-Sections&&\apt-getinstall-y- -force-yes - -no-install-recommends oracle-java$ { JAVA_VER } - installer oracle-java$ { JAVA_VER } - set - default&&\apt-get clean&&\rm-rf/var/cache/oracle-jdk$ { JAVA_VER } - installerOracle default java:Run update-java-alternatives-java-8-oracle Run echo"export JAVA_HOME=MESSTONE/usr/lib/jvm/java-8-Oracle">>-/.hashr cleanuo apt Run apt-get clean&&\rm-rf/varlib/apt/lists/*/var/tmp/*docker init System CMD ["/sbin/my_init"]

http://www.messtone.com

 

AdvertisingIdCollection

The Method; on the Tracker. //Enable Advertising Feature.mTracker.enable AdvertisingId Collection (true);

 

Inherited. Methods [Extend All] Class public final Class class Extend Object implements Serial izable,Generic DeClaration,Type,AnnotatedElement java.lang.Object java.lang.Class< T> To Print the class name of an Object:  void print Class name (object obj) { System.out.println ("The Class of" + obj + " is " + obj.get class ( ).get name ( ) ); "java.lang.Specification.java.lang.String" "java.Swing.Spinner $ Default Editor" "java.Security.keyStore $ Builder $ File Builder $ 1" "java.net.URL" http://www.messtone.com Class Loader $ 3 $1"java lanuage Specification.To Link the Excution is Class: The Class to link

 

 

 

 

 

 

CfnCluster

Python Script: C:\python27;C:\Python27\script Command Window: C:\>easy_install CfnCluster Upgrading $ sudo pip install- -upgrade CfnCluster ! CfnCluster Configure logic Cluster Template [myCluster]: messtone aws CLI Config.AWS Access key. ID [ ]:AWS Secret Access key ID [ ]: Region: Acceptable Value for AWS Region ID: us-east-1 cn-north-1 ap-northeast-eu-west-1 ap-southeast-1 ap-southeast-2 us-west-2 us-gov-west-1 us-gov-west-1 us-1 us-west1 eu'Central-1 sa-easy-1 SWS Region ID [ ]: production Test VPC Name Messtone [Myvpc]:

http://www.messtone.com

 

 

 

 

AWS POLICY

"AWS Policy

arn iam { "AWS Policy Format Version" : "2015-10-01" , "Record Type" : "A" , "StartEndpoint" : "endpoint" , "Engpoints" : { "endpoint" : { "Type" : "Value" , "Value" : "192.0.2.235"} } } External ID:757972810156/External ID MESSTONE.

Build Tag,and push Docker Image Successfully Created Reprository"578501943935.dKr.er.us-west-2.amazonaws.com/messtone"https://docs.docker.com/enterprise/17.06/This "Allow default to be applied inside the Manager#33284;Docker inspect Now Shows default "Value" user Messtone #32284;move docker service logs out of experimental#32462;Add support for Credentials spec and SELinux to service to the API#32339;Add- -ENTRYPOINT FLAG TO. . .

12

Exploit DataBase

privilege Escalation MS14-40) | https://www.exploit.db.com/exploits/39446/Microsoft Windows 7 kernel-Pool-of-Bounds Reads Due to Bind ( ) Implementation Bugs in afd. S| https://www.exploil-db.com/exploits/420009/Microsoft Windows XP-'AFD.Sys'local kernel Denial of Services |  https://www.exploit-db.com/exploits/17133/Microsoft Windows XP/2003-'afd. sys local privilege Escalation K-plugin) (M S 08-066)   http://www.exploit-db.com/exploits/6757) Microsoft Windows XP/2003-'afd.Sys local Privilege Escalation(MS11-080) | https://www.exploit-db.com/exploits/18176/ ROOT@Kali~#

http://www.messtone.com

 

 

 

 

 

WebHook

(stealthy@spark.bot.io)

{

  "id":"Y2lz111111112222222233333333","Name messtone":"BotDomoProjectROOMNAME MESSTONE","target Url":"http://ec2-10-20-30-40.us-west-2.compute.amazonaws.com:10010","resource":"messages","event":"created","filter":"roomId=Y2lz12345678901234567890"

}

  http://www.messtone.com