Skip to content

Commit

Permalink
Fixed bugs in production for linux
Browse files Browse the repository at this point in the history
  • Loading branch information
hash3liZer committed Sep 15, 2021
1 parent 75cfaa5 commit 1756e3a
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 11 deletions.
Empty file modified README-pypi.md
100644 → 100755
Empty file.
Empty file modified proxverter/__init__.py
100644 → 100755
Empty file.
Empty file modified proxverter/certgen.py
100644 → 100755
Empty file.
32 changes: 22 additions & 10 deletions proxverter/installer.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,25 +1,37 @@
import subprocess
import os
import platform

class Installer:

def __init__(self, output=os.devnull):
self.chocoline = 'powershell.exe "Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString(\'https://community.chocolatey.org/install.ps1\'))'
self.chocolime = 'powershell.exe "choco install {} -y"'
self.startupinfo = subprocess.STARTUPINFO()
self.startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW
self.platform = platform.system().lower()
if self.platform == "windows":
self.startupinfo = subprocess.STARTUPINFO()
self.startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW
self.output = output

def activate(self):
fl = open(self.output, 'w')
cmline = subprocess.Popen(
self.chocoline,
shell=True,
stdin=subprocess.PIPE,
stdout=fl,
stderr=fl,
startupinfo=self.startupinfo
)
if hasattr(self, 'startupinfo'):
cmline = subprocess.Popen(
self.chocoline,
shell=True,
stdin=subprocess.PIPE,
stdout=fl,
stderr=fl,
startupinfo=self.startupinfo
)
else:
cmline = subprocess.Popen(
self.chocoline,
shell=True,
stdin=subprocess.PIPE,
stdout=fl,
stderr=fl
)
cmline.communicate()
fl.close()

Expand Down
Empty file modified proxverter/plugins/__init__.py
100644 → 100755
Empty file.
Empty file modified proxverter/plugins/base.py
100644 → 100755
Empty file.
Empty file modified proxverter/sysprox.py
100644 → 100755
Empty file.
Empty file modified proxverter/test/test.py
100644 → 100755
Empty file.
Empty file modified pyproject.toml
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion setup.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="proxverter",
version="0.4.3",
version="0.4.5",
author="hash3liZer",
author_email="admin@shellvoide.com",
description="Cross platform system wide proxy server & TLS Interception library for Python",
Expand Down

0 comments on commit 1756e3a

Please sign in to comment.