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
"""This module provides functions for dumping information about responses.""" | |
""" | |
This is a fork of dump.py from requests_toolbelt. | |
https://github.com/requests/toolbelt/blob/master/requests_toolbelt/utils/dump.py | |
""" | |
import collections | |
from requests import compat |
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 python2 | |
import SimpleHTTPServer | |
import SocketServer | |
import logging | |
PORT = 8000 | |
class GetHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): |
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
const char* pattern = "\r\n\r\n"; | |
const char* patp = pattern; | |
while ((numbytes = recv(socket_file_descriptor, buf, MAXDATASIZE - 1, 0)) > 0) { | |
for (int i = 0; i < numbytes; i++) { | |
if (*patp == 0) { | |
fwrite(buf + i, 1, numbytes - i, fp); | |
break; | |
} | |
else if (buf[i] == *patp) ++patp; | |
else patp = pattern; |
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
import socks | |
import socket | |
host = 'ifconfig.me' | |
host = 'libraryqtlpitkix.onion' | |
socks.setdefaultproxy(socks.PROXY_TYPE_SOCKS5, "127.0.0.1", 9050, True) | |
s = socks.socksocket() | |
s.connect((host, 80)) | |
message = "GET / HTTP/1.1\r\nHost: {0}\r\n\r\n".format(host) |
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/python | |
import socks | |
import socket | |
################################################################################ | |
# title: Proxy Client Socket | |
# author: Bryan Angelo Pedrosa | |
# date: 12/15/2021 | |
################################################################################ |
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 socket | |
import threading | |
import select | |
import sys | |
terminateAll = False | |
class ClientThread(threading.Thread): |
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
''' | |
Establish a socket connection through an HTTP proxy. | |
Author: Fredrik Østrem <[email protected]> | |
License: | |
Copyright 2013 Fredrik Østrem | |
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated | |
documentation files (the "Software"), to deal in the Software without restriction, including without |
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
import sys | |
import time | |
import thread | |
import urllib | |
global sent, error | |
sent = error = 0 | |
def _send(tgt, msg): | |
global sent, error |
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/python | |
# Automated WiFi Network Attaxx0r. | |
# For TikTok demonstration by @sherl0ck__ | |
# usage: [sudo ] python shutd0wn.py <Target MAC AP> <Target AP Channel> <Interface> | |
# created: 9/18/21 | |
import time | |
import sys | |
import os |
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
# sigmoid.py | |
# A purely pythonic implementation of Sigmoid function | |
# without external module. | |
e=2.7182818284590452 | |
def sigmoid(x): | |
return (1 / (1 + (e**-x))) |