This file contains 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
#!/bin/bash | |
cloudshark_url="https://www.cloudshark.org" | |
api_token=${CLOUDSHARK_API} | |
filename=${1} | |
echo "curl -s -F file="@${filename}" ${cloudshark_url}/api/v1/${api_token}/upload" | |
response=$(curl -s -F file="@${filename}" ${cloudshark_url}/api/v1/${api_token}/upload) | |
json_id=$(echo $response | python -m json.tool | grep id) |
This file contains 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/bin/ruby | |
require 'date' | |
require 'time' | |
require 'json' | |
require 'open-uri' | |
require 'openssl' | |
############################################################################### | |
# |
This file contains 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
#!/bin/bash | |
prompt="n" | |
cloudshark_url="https://www.cloudshark.org" | |
api_token="<INSERT API TOKEN HERE>" | |
dumpcap="/usr/bin/dumpcap" | |
# default values if not prompting | |
tmp_dir="/tmp/" | |
tmp_filename="traffic-$(date +%F-%H%M%S).pcapng" |
This file contains 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/cloudshark/ruby/bin/ruby | |
# | |
# | |
# EXAMPLE CAPTURE PRUNING SCRIPT | |
# | |
# This is example code which must be run AT YOUR OWN RISK | |
# CloudShark is not responsible for any unintended data loss. | |
# This script is not officially supported by CloudShark or QA Cafe. | |
# | |
require 'date' |