Skip to content

Instantly share code, notes, and snippets.

View jviveiros's full-sized avatar

Joe Viveiros jviveiros

View GitHub Profile
<!--HTML-->
<form class="form-horizontal2 boxed" method="post" action="https://
<tenantid>.SANDBOX.verygoodproxy.com/post">
<!--CREDIT CART PAYMENT-->
<div class="panel panel-info">
<div class="form-group">
<div class="col-md-12">
<label for="pan_number" id="pan_number_label">Credit Card Number</label>
<input class="form-control" placeholder="Card Number" type="text" name="cc_number" id="pan_number" value="">
</div>
package com.verygoodsecurity.example;
import com.mashape.unirest.http.Unirest;
import com.mashape.unirest.http.exceptions.UnirestException;
import org.apache.http.HttpHost;
import org.apache.http.auth.AuthSchemeProvider;
import org.apache.http.auth.AuthScope;
import org.apache.http.auth.UsernamePasswordCredentials;
import org.apache.http.client.CredentialsProvider;
import org.apache.http.client.config.AuthSchemes;
@jviveiros
jviveiros / ruby_reveal.rb
Last active March 30, 2018 23:00
Ruby Example
require 'faraday_middleware'
require 'faraday'
require 'json'
@username = ENV['FORWARD_HTTP_PROXY_USERNAME']
@password = ENV['FORWARD_HTTP_PROXY_PASSWORD']
@forward_proxy = ENV['FORWARD_HTTP_PROXY_HOST']
@reverse_proxy = ENV['REVERSE_HTTP_PROXY_HOST']
@jviveiros
jviveiros / python_reveal.py
Last active March 30, 2018 22:51
Python Example
import os
import requests
username = os.environ.get('FORWARD_HTTP_PROXY_USERNAME')
password = os.environ.get('FORWARD_HTTP_PROXY_PASSWORD')
forward_proxy = os.environ.get('FORWARD_HTTP_PROXY_HOST')
reverse_proxy = os.environ.get('REVERSE_HTTP_PROXY_HOST')
def reveal_via_forward_proxy(tokenized_data):
r = requests.post(