Skip to content

Commit

Permalink
generate_shellcode unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
boy-hack committed Apr 22, 2019
1 parent b85ee16 commit 6507473
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/test_generate_shellcode_list.py
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)

0 comments on commit 6507473

Please sign in to comment.