-
Notifications
You must be signed in to change notification settings - Fork 784
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
1 changed file
with
18 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import unittest | ||
|
||
from pocsuite3.lib.core.enums import OS, OS_ARCH | ||
from pocsuite3.lib.utils import generate_shellcode_list | ||
|
||
|
||
class TestCase(unittest.TestCase): | ||
def setUp(self): | ||
pass | ||
|
||
def test_windows_shellcode(self): | ||
_list = generate_shellcode_list(listener_ip='127.0.0.1', listener_port=8088) | ||
self.assertTrue(len(_list) > 0) | ||
|
||
def test_linux_shellcode(self): | ||
_list = generate_shellcode_list(listener_ip='127.0.0.1', listener_port=8088, os_target=OS.LINUX, | ||
os_target_arch=OS_ARCH.X86) | ||
self.assertTrue(len(_list) > 0) |