This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aws-sdk-securityhub' | |
require 'csv' | |
require 'pry' | |
aws_profile_name = 'your profile name that you want to use on this script' | |
client = Aws::SecurityHub::Client.new(profile: aws_profile_name) | |
filters = { | |
# id: [ | |
# { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const ui = SpreadsheetApp.getUi(); | |
const userProperties = PropertiesService.getUserProperties(); | |
const ACCESS_TOKEN = 'personal access token'; | |
const ALPHABETS = [...Array(26)].map((_, y) => String.fromCharCode(y + 65)); // https://gist.github.com/mreigen/fdeafcc08a9e44d976bd6a8db468c496 | |
function onOpen(){ | |
ui.createMenu('GitHub') | |
.addItem('List GitHub Issues', 'listGitHubIssues') | |
.addItem('Set Personal Access Token', 'setToken') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const ui = SpreadsheetApp.getUi(); | |
const userProperties = PropertiesService.getUserProperties(); | |
const ACCESS_TOKEN = 'access token'; | |
function setToken(){ | |
const scriptValue = ui.prompt('Personal Access Token', ui.ButtonSet.OK); | |
userProperties.setProperty(ACCESS_TOKEN, scriptValue.getResponseText()); | |
} | |
function removeToken(){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"size": 10000, | |
"sort": [ | |
"_doc" | |
], | |
"query": { | |
"bool": { | |
"must" : [ | |
{ "match": { "sports": "baseball" }}, | |
{ "match": { "date": "2020-04-20" }}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'json' | |
require 'octokit' | |
access_token = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' | |
client = Octokit::Client.new(:access_token => access_token) | |
repo = 'toripiyo/xxxxx' | |
# read json file | |
json_file_name = 'sample.json' | |
file = File.open(json_file_name) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/python3 | |
from __future__ import print_function | |
import json | |
import boto3 | |
interfaces = "" | |
cidr_block = "" | |
cidr_block_description = "" | |
ip_protpcol = "" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app | |
logs/*.log* | |
node_modules |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from burp import IBurpExtender | |
from burp import IContextMenuFactory | |
from burp import IHttpRequestResponse | |
from burp import IMessageEditorController | |
from burp import IHttpListener | |
from javax.swing import JMenuItem | |
from java.io import PrintWriter | |
from java.lang import RuntimeException | |
from java.net import URL | |
import string |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.3' | |
services: | |
os: | |
image: "minio/minio" | |
ports: | |
- "9000:9000" | |
volumes: | |
- os:/data | |
command: server /data | |
environment: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from burp import IBurpExtender | |
from burp import IHttpListener | |
class BurpExtender(IBurpExtender, IHttpListener): | |
def registerExtenderCallbacks(self, callbacks): | |
self._callbacks = callbacks | |
self._helpers = callbacks.getHelpers() | |
callbacks.setExtensionName("Homemade Extension") | |
callbacks.registerHttpListener(self) | |
return |
NewerOlder