This file contains hidden or 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 | |
| """ | |
| Script to open TCP connection and send 1 HTTP GET request containing | |
| a specific string, and header | |
| Usage: | |
| ./http.py <IP_of_target> | |
| There is only one mandatory argument, which is the target IP address. |
This file contains hidden or 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
| # *-* coding: utf-8 *-* | |
| import socket, sys | |
| import threading | |
| def tratando_host(host_proxy): | |
| host_proxy = host_proxy.replace("Host: ", "") | |
| index_prota_proxy = host_proxy.find(":") | |
| port_proxy = host_proxy[index_prota_proxy:].replace(":","").replace("\r\n","") if index_prota_proxy != -1 else 80 | |
| port_proxy = int(port_proxy) | |
| return (host_proxy, port_proxy) |
This file contains hidden or 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
| import itertools | |
| import sys | |
| from time import sleep | |
| import mechanize | |
| CHRS = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
| MOZILLA_UAS = 'Mozilla/5.0 (X11; U; Linux i686; en-US) ' \ | |
| 'AppleWebKit/534.7 (KHTML, like Gecko) ' \ |
This file contains hidden or 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
| # -*- coding: utf-8 -*- | |
| #!/usr/bin/env python | |
| # Created By Krzysztof Nowak | |
| # Licensed under MIT (http://opensource.org/licenses/MIT) | |
| # | |
| # Script allows sharing file over LAN. | |
| # It copies file into tmp directory on the computer and then shares the tmp directory | |
| # |
This file contains hidden or 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
| import socket | |
| import random | |
| import time | |
| import sys | |
| log_level = 2 | |
| def log(text, level=1): | |
| if log_level >= level: | |
| print(text) |
This file contains hidden or 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 | |
| # -*- coding: utf-8; mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- | |
| # vim: fileencoding=utf-8 tabstop=4 expandtab shiftwidth=4 | |
| """ | |
| THIS CODE IS OUTDATED! Please use this instead: | |
| https://pypi.org/project/pyuac/ | |
| https://github.com/Preston-Landers/pyuac |
This file contains hidden or 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
| # Constants - taken from dpkt/ssl.py | |
| import struct | |
| # SSLv3/TLS versions | |
| SSL3_V = 0x0300 | |
| TLS1_V = 0x0301 | |
| TLS11_V = 0x0302 | |
| TLS12_V = 0x0303 |
This file contains hidden or 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/python2 | |
| """ | |
| Use scapy to modify packets going through your machine. | |
| Based on nfqueue to block packets in the kernel and pass them to scapy for validation | |
| """ | |
| import nfqueue | |
| from scapy.all import * | |
| import os |
This file contains hidden or 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 os, socket, thread, select | |
| __version__ = '0.1.0 Draft 1' | |
| BUFLEN = 8192 | |
| VERSION = 'Python Proxy/'+__version__ | |
| HTTPVER = 'HTTP/1.1' | |
| class ConnectionHandler: |
This file contains hidden or 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 | |
| # -*- coding: utf-8 -*- | |
| from werkzeug.wrappers import Request, Response | |
| from werkzeug.wsgi import responder | |
| from werkzeug.serving import run_simple | |
| from werkzeug.routing import Map, Rule | |
| from StringIO import StringIO | |
| from httplib import HTTPResponse | |
| import requests |