Skip to content

Commit

Permalink
Merge pull request #193 from knownsec/dev-rewel
Browse files Browse the repository at this point in the history
Dev rewel
  • Loading branch information
pokejeff authored Jun 22, 2021
2 parents 6b7207c + 6eba1f2 commit e31d1ae
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 10 deletions.
Binary file not shown.
Binary file removed pocsuite3/shellcodes/tools/ld.exe
Binary file not shown.
Binary file removed pocsuite3/shellcodes/tools/ld.gold.exe
Binary file not shown.
Binary file removed pocsuite3/shellcodes/tools/ld64.exe
Binary file not shown.
Binary file removed pocsuite3/shellcodes/tools/libwinpthread-1.dll
Binary file not shown.
Binary file removed pocsuite3/shellcodes/tools/nasm.exe
Binary file not shown.
Binary file removed pocsuite3/shellcodes/tools/objdump.exe
Binary file not shown.
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python
import os
try:
from setuptools import setup, find_packages
Expand Down
20 changes: 10 additions & 10 deletions tests/test_httpserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ def test_ipv4(self):
try:
logger.info('Test http server in ipv4')
PHTTPServer._instance = None
httpd = PHTTPServer(bind_ip='0.0.0.0', bind_port=666, requestHandler=BaseRequestHandler)
httpd = PHTTPServer(bind_ip='0.0.0.0', bind_port=6666, requestHandler=BaseRequestHandler)
httpd.start()
url = '{}://{}:{}/'.format('http', get_host_ip(), 666)
url = '{}://{}:{}/'.format('http', get_host_ip(), 6666)
resp = requests.get(url)
self.assertEqual(resp.status_code, 200)
except Exception:
Expand All @@ -60,9 +60,9 @@ def test_ipv6(self):
try:
logger.info('Test http server in ipv6')
PHTTPServer._instance = None
httpd = PHTTPServer(bind_ip='::', bind_port=666, requestHandler=BaseRequestHandler)
httpd = PHTTPServer(bind_ip='::', bind_port=6666, requestHandler=BaseRequestHandler)
httpd.start()
url = '{}://{}:{}/'.format('http', '[{}]'.format(get_host_ipv6()), 666)
url = '{}://{}:{}/'.format('http', '[{}]'.format(get_host_ipv6()), 6666)
resp = requests.get(url)
self.assertEqual(resp.status_code, 200)
except Exception:
Expand All @@ -74,13 +74,13 @@ def test_ipv4_https(self):
try:
logger.info('Test https server in ipv4')
PHTTPServer._instance = None
httpd = PHTTPServer(bind_ip='0.0.0.0', bind_port=666, use_https=True,
httpd = PHTTPServer(bind_ip='0.0.0.0', bind_port=6666, use_https=True,
requestHandler=BaseRequestHandler)
httpd.start()
url = '{}://{}:{}/'.format('https', get_host_ip(), 666)
url = '{}://{}:{}/'.format('https', get_host_ip(), 6666)
requests.get(url)
except requests.exceptions.SSLError:
url = '{}://{}:{}/'.format('https', get_host_ip(), 666)
url = '{}://{}:{}/'.format('https', get_host_ip(), 6666)
resp = requests.get(url, verify=False)
self.assertEqual(resp.status_code, 200)
except Exception:
Expand All @@ -92,13 +92,13 @@ def test_ipv6_https(self):
try:
logger.info('Test https server in ipv6')
PHTTPServer._instance = None
httpd = PHTTPServer(bind_ip='::', bind_port=666, use_https=True,
httpd = PHTTPServer(bind_ip='::', bind_port=6666, use_https=True,
requestHandler=BaseRequestHandler)
httpd.start()
url = '{}://{}:{}/'.format('https', '[{}]'.format(get_host_ipv6()), 666)
url = '{}://{}:{}/'.format('https', '[{}]'.format(get_host_ipv6()), 6666)
requests.get(url)
except requests.exceptions.SSLError:
url = '{}://{}:{}/'.format('https', '[{}]'.format(get_host_ipv6()), 666)
url = '{}://{}:{}/'.format('https', '[{}]'.format(get_host_ipv6()), 6666)
resp = requests.get(url, verify=False)
self.assertEqual(resp.status_code, 200)
except Exception:
Expand Down

0 comments on commit e31d1ae

Please sign in to comment.