NodeJS proxy with JS intrumentation
modules:
- python mitmproxy
- esprima
- cheerio
rm(list=ls()) | |
data = read.csv('weisberg_fuel.csv',header=TRUE) | |
X1 <- data$TAX # Tax | |
X2 <- data$DLIC | |
X3 <- data$INC | |
X4 <- data$ROAD | |
Y <- data$FUEL |
import datetime | |
from dateutil import relativedelta | |
def daterange(start, end, freq="daily"): | |
if freq == "daily": | |
number_of_days = int ((end_date - start_date).days) +1 | |
for n in range(number_of_days): | |
yield start_date + datetime.timedelta(n) | |
return |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>XSS Reflected - Jquery 1.4.2 </title> | |
<script src="http://www.tcs.com.vn/mysite/javascript/jquery-1.4.2.min.js"></script> | |
<script> | |
$(function() { | |
$('#users').each(function() { | |
var select = $(this); | |
var option = select.children('option').first(); |
var robot = require("robotjs"); | |
var mouse = robot.getMousePos(); | |
function click(loc){ | |
var mouse = robot.getMousePos(); | |
robot.moveMouse(loc.x,loc.y); | |
//Left click! | |
robot.mouseClick(); |
package a10vulnerability; | |
import java.io.BufferedReader; | |
import java.io.InputStreamReader; | |
import java.net.HttpURLConnection; | |
import java.net.URL; | |
import java.io.FileNotFoundException; | |
import org.json.JSONArray; | |
import org.json.JSONTokener; |
import binascii | |
from optparse import OptionParser | |
watermark_char = "".join("34 39 30 39 20 30 20 52".split()) | |
unchar_watermark = "".join("00 00 00 00 20 30 20 52".split()) | |
watermark_link = "".join("2F 52 65 63 74 5B 32 36 36 20 35 39 20 33 37 31 20 37 33 5D 20 2F 42 53 20 3C 3C 2F 54 79 70 65 2F 42 6F 72 64 65 72 20 3E 3E 20 2F 42 6F 72 64 65 72 5B 30 20 30 20 30 5D 20 2F 43 5B 30 20 30 20 30 5D 20 2F 41 3C 3C 2F 53 2F 55 52 49 2F 55 52 49 28 68 74 74 70 3A 2F 2F 77 77 77 2E 61 6C 6C 69 74 65 62 6F 6F 6B 73 2E 6F 72 67 29".split()) | |
def remove_watermark(path): | |
bin_pdf = "" |
from StringIO import StringIO | |
import requests | |
import urllib2 | |
import gzip | |
headers = { | |
'Host':'pkget.com', | |
'Connection':'keep-alive', | |
'Accept':'application/json, text/javascript, */*; q=0.01', | |
'X-Requested-With':'XMLHttpRequest', |
Building Tensorflow from source on Linux for maximum performance:
TensorFlow is now distributed under an Apache v2 open source license on GitHub.
Step 1. Install NVIDIA CUDA:
To use TensorFlow with NVIDIA GPUs, the first step is to install the CUDA Toolkit.
Step 2. Install NVIDIA cuDNN:
#!/bin/bash | |
TENSORFLOW_COMMIT=bef67104a0da34b6cac0d801168f2e42a1ab7921 # July 7, 2017 | |
TENSORFLOW_SERVING_COMMIT=15cb2ace25493161d47b0d76047b3997d371e59c # July 14, 2017 | |
MODELS_COMMIT=3d97b007cdb2c73f23daf9141437796095436c22 # July 7, 2017 | |
if [ -z $TENSORFLOW_SERVING_REPO_PATH ]; then | |
TENSORFLOW_SERVING_REPO_PATH="serving" | |
fi |