-
-
Notifications
You must be signed in to change notification settings - Fork 463
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
202 additions
and
130 deletions.
There are no files selected for viewing
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 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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import random | ||
import requests | ||
import urllib.parse | ||
|
||
from django.conf import settings | ||
|
||
|
||
def get_exegen_url() -> str: | ||
urls: list[str] = settings.EXE_GEN_URLS | ||
for url in urls: | ||
try: | ||
r = requests.get(url, timeout=10) | ||
except: | ||
continue | ||
|
||
if r.status_code == 200: | ||
return url | ||
|
||
return random.choice(urls) | ||
|
||
|
||
def get_winagent_url(arch: str) -> str: | ||
from core.models import CodeSignToken | ||
|
||
try: | ||
codetoken = CodeSignToken.objects.first().token | ||
base_url = get_exegen_url() + "/api/v1/winagents/?" | ||
params = { | ||
"version": settings.LATEST_AGENT_VER, | ||
"arch": arch, | ||
"token": codetoken, | ||
} | ||
dl_url = base_url + urllib.parse.urlencode(params) | ||
except: | ||
dl_url = settings.DL_64 if arch == "64" else settings.DL_32 | ||
|
||
return dl_url |
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 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 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 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 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 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 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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#CVE-2020-16898 | Windows TCP/IP Remote Code Execution Vulnerability | ||
#https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2020-16898 | ||
|
||
#Disable IPv6 on All Adapers | ||
Disable-NetAdapterBinding -Name "*" -ComponentID ms_tcpip6 | ||
|
||
#Confirm That all NIC's no longer have IPv6 Enabled | ||
(Get-NetAdapterBinding -Name '*' -ComponentID ms_tcpip6).Enabled |
File renamed without changes.
Oops, something went wrong.