Skip to content

Instantly share code, notes, and snippets.

View momansoury's full-sized avatar
❄️
cool

Mohammad Mansoury momansoury

❄️
cool
View GitHub Profile
@momansoury
momansoury / pyuac.py
Created August 24, 2018 19:07 — forked from Preston-Landers/pyuac.py
pyuac - elevate a Python process with UAC on Windows
#!/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
"""User Access Control for Microsoft Windows Vista and higher. This is
only for the Windows platform.
This will relaunch either the current script - with all the same command
line parameters - or else you can provide a different script/program to
run. If the current user doesn't normally have admin rights, he'll be
@momansoury
momansoury / proxy.py
Last active December 6, 2019 08:25 — forked from itsbalamurali/proxy.py
proxy
#!/usr/bin/python
# -*- coding: utf-8 -*-
import os, socket, threading, select
__version__ = '0.1.0 Draft 1'
BUFLEN = 99999999 #max :D
VERSION = 'Python Proxy/'+__version__
HTTPVER = 'HTTP/1.1'