Skip to content

Instantly share code, notes, and snippets.

Get-OSInventory - WIN-XXXXXXXX - 2016-12-02T02:27:26Z
Schema: 1.0
Publisher: Microsoft Corporation
OSName: Microsoft Windows Server 2012 Standard
OSVersion: 6.2.9200
ExtendedProperties:
Key: ServicePackLevel
Value: null
import re
# Regular Expressions defining some messages from the server.
acceptsyntax = re.compile ("^ACC\s+(.*?)\s*$")
optionsyntax = re.compile ("^(\w+):\s*(.*?)\s*$")
virussyntax = re.compile ("^VIRUS\s+(\S+)\s+(.*)")
typesyntax = re.compile ("^TYPE\s+(\w+)")
donesyntax = re.compile ("^DONE\s+(\w+)\s+(\w+)\s+(.*?)\s*$")
eventsyntax = re.compile ("^([A-Z]+)\s+(\w+)")
#!/usr/bin/python
import os
from os.path import *
import re
import socket
import sys
from sssp_utils import *
@AbeIka
AbeIka / upload.cgi
Last active October 27, 2016 05:42
#!/usr/bin/python
# -*- coding: utf-8 -*-
import cgi
import cgitb; cgitb.enable()
import os, sys
import sssp_name
import subprocess
import boto3
import StringIO
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head><title>Amazon S3 Uploader</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body><h1>Amazon S3 Uploader</h1>
<form action="cgi-bin/upload.cgi" method="POST" enctype="multipart/form-data">
ファイル: <input name="file" type="file"><br>
<input name="submit" type="submit">
</form>
{
"AWSTemplateFormatVersion": "2010-09-09",
"Metadata": {
},
"Resources": {
"VPNGateway": {
"Type": "AWS::EC2::VPNGateway",
"Properties": {
"Type": "ipsec.1"
}
{
"AWSTemplateFormatVersion": "2010-09-09",
"Metadata": {
"AWS::CloudFormation::Designer": {
"388fb0c1-901e-4ad4-ac3d-e8363096f939": {
"size": {
"width": 960,
"height": 760
},
"position": {