Skip to content

Commit 69d7eea

Browse files
committed
changed setup.py; little fixies
1 parent 01bcaa9 commit 69d7eea

File tree

7 files changed

+14
-10
lines changed

7 files changed

+14
-10
lines changed

MANIFEST.in

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
recursive-include shellen/syscalls *

setup.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
setup(
1313
name='shellen',
14-
version='0.1.1',
14+
version='0.1.6',
1515
description='Interactive environment for crafting shellcodes. Also, it just can be used as a simple assembler/disassembler',
1616
long_description=long_description,
1717
url='https://github.com/merrychap/shellen',
@@ -33,8 +33,10 @@
3333
'License :: OSI Approved :: MIT License',
3434
'Intended Audience :: Information Technology'
3535
],
36-
keywords=['shellcode', 'pwn', 'assembler', 'disassembler'],
36+
keywords=['shellcode', 'pwn', 'assembler', 'disassembler', 'syscalls'],
3737
packages=['shellen', 'shellen/opt', 'shellen/asms', 'shellen/syscalls'],
38+
include_package_data=True,
39+
packge_data={'shellen/syscalls':['linux_tables/*.json']},
3840
install_requires=['keystone-engine', 'capstone', 'colorama', 'termcolor', 'terminaltables'],
3941
python_requires='>=3',
4042
entry_points={

shellen/asms/baseexc.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from archsconf import *
44
from opt.appearance import cprint, make_colors
55

6-
from terminaltables import SingleTable
6+
from terminaltables import SingleTable, AsciiTable, DoubleTable
77

88
from abc import ABC, abstractmethod
99

@@ -107,7 +107,7 @@ def archs(self):
107107
for j in range(len(filtered)):
108108
cur_row.append('' if i >= len(filtered[j]) else make_colors(filtered[j][i]))
109109
table.append(cur_row)
110-
rtable = SingleTable(table)
110+
rtable = DoubleTable(table)
111111
rtable.inner_heading_row_border = False
112112
return rtable.table
113113

shellen/asms/disasm.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,5 @@ def __init__(self, arch):
5050

5151
def print_res(self, res):
5252
for line in res:
53-
cprint("\t<cyan>0x{:08X}</>:\t<yellow,bold>{:<8}</><white,bold>{}</>".format(line.address, line.mnemonic, line.op_str))
53+
cprint("\t<cyan>0x{:08X}</>:\t<yellow,bold>{:<8}</><white,bold>{}</>".format(line.address, line.mnemonic, line.op_str))
54+
cprint('\n')

shellen/fetcher.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
from opt.appearance import cprint, make_colors
77

8-
from terminaltables import SingleTable
8+
from terminaltables import SingleTable, DoubleTable
99

1010

1111
SHELL_URL = 'http://shell-storm.org/api/?s={}'
@@ -73,7 +73,7 @@ def __get_colored_row(self, row):
7373
def fetch_table(self, pattern, os='linux', arch=X86_32, count=0):
7474
cprint('\n<magenta,bold>[*]</> Connecting to shell-storm.org...')
7575
rowtable = self.fetch(pattern, os, arch, count, True)
76-
return SingleTable(rowtable)
76+
return DoubleTable(rowtable)
7777

7878
def sort_rows(self, table, count):
7979
def bytes_len(row):

shellen/shell.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def dsm(self):
181181
cprint('\n<green>[+]</> Changed to <white,underline>dsm</> (disassembly) mode\n')
182182

183183
def archs(self):
184-
cprint(self.pexec.archs())
184+
cprint('\n' + self.pexec.archs() + '\n')
185185

186186
def clear(self):
187187
os.system('cls' if os.name == 'nt' else 'clear')

shellen/syscalls/base_handler.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
from difflib import SequenceMatcher
99

10-
from terminaltables import SingleTable
10+
from terminaltables import SingleTable, DoubleTable
1111

1212

1313
EMPTY_VALUE = '-'
@@ -53,7 +53,7 @@ def get_table(self, arch, pattern, colored=False, verbose=False):
5353
value = command[hd]
5454
cur_tb_field.append(self.__make_colored_field(value, hd, verbose=verbose))
5555
table.append(cur_tb_field)
56-
return SingleTable(table)
56+
return DoubleTable(table)
5757

5858
def __make_colored_field(self, field, hd, verbose=False):
5959
if hd == NAME_FIELD:

0 commit comments

Comments
 (0)