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/env python | |
import sys | |
import os | |
import requests | |
import simplejson as json | |
# example request : ./sdk_key_adder.py ./key_android atom android v1.0 int | |
HOST_MAP = { |
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/env python | |
import sys | |
import os | |
import requests | |
import simplejson as json | |
# example request : ./sdk_uploader.py ./sdk.tar.gz atom android v1.0 int | |
HOST_MAP = { |
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
RequestID=110&UID=313e8cdc-c30d-40f8-8c07-5ff3a5bd6c2f&FunctionType=17&Time=1432077910&Mode=1&URL=http%3A%2F%2Fwrs21%2Ewinshipway%2Ecom%2F&GroupCode=15&GroupName=Spyware&CredLevel=1&Policy=2&App=C%3A%5CProgram+Files%5CGoogle%5CChrome%5CApplication%5Cchrome%2Eexe&CredScore=21&RealIp=&CredScoreThreshold=0&ResType=32&Action=1 |
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
curl -X POST -H "Content-Type: application/json" -H "Cache-Control: no-cache" -H "Postman-Token: 87c8bc5b-c4c1-d5e5-5c9a-fff13255b331" -d '{ | |
"demo_id": 777, | |
"affected_firmwares": 4, | |
"vulnerabilities": 10, | |
"pattern_update_time": 10, | |
"attack_blocked": 0 | |
}' "https://alpha-zoo.atom.trendmicro.com/v0/azelf/add_vulnerability" |
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
curl -X POST -H "Content-Type: application/json" -H "Cache-Control: no-cache" -H "Postman-Token: 11c2db4f-c5e2-2ffb-4a00-ccb9de1a0a59" -d '{ | |
"demo_id": 777, | |
"cve_name": "CVE-20161010", | |
"description": "Not yet patched" | |
}' "https://alpha-zoo.atom.trendmicro.com/v0/azelf/add_cve" |
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
curl -X POST -H "Content-Type: application/json" -H "Cache-Control: no-cache" -H "Postman-Token: 137f9a74-bc9d-ca96-b2f5-5842cd00b872" -d '{ | |
"demo_id": 777, | |
"firmware_name": "car", | |
"portion": 8, | |
"response_rate":80, | |
"sys_object": 1, | |
"process_behavior": 0, | |
"network": 5, | |
"affected_devices": 7, | |
"total_devices": 40, |
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
<?php | |
if (!function_exists('with')) | |
{ | |
/** | |
* Return the given object. Useful for chaining. This function is from Joomla!Framework: | |
* https://github.com/joomla/joomla-framework/blob/staging/src/Joomla/PHP/methods.php | |
* | |
* This method provides forward compatibility for the PHP 5.4 feature Class member access on instantiation. | |
* e.g. (new Foo)->bar(). |
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 | |
AMAZON_IP="52.34.35.188" | |
PRIVATE_KEY_PATH="/Users/apple/.ssh/skylying-aws.pem" | |
echo "====== Deploy start ======" | |
TIME=$(date "+%Y%m%d_%H%M%S") | |
FILENAME=$TIME"_sns_notification.tar.gz" |
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/env bash | |
# This script is used to check if images not in use and remove them | |
# Tim Lin | |
# 2015/7/1 | |
# Get root dir | |
ROOTDIR=$(dirname ${PWD}) | |
echo "Project root: $ROOTDIR" |
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xHTML1/DTD/xHTML1-transitional.dtd"> | |
<HTML XMLns="http://www.w3.org/1999/xHTML" lang="gb2312"> | |
<head> | |
<title> 阻止JS事件冒泡传递(cancelBubble 、stopPropagation)</title> | |
<meta name="keywords" content="JS,事件冒泡,cancelBubble,stopPropagation" /> | |
<script> | |
function doSomething (obj,evt) { | |
alert(obj.id); | |
var e=(evt)?evt:window.event; | |
if (window.event) { |