Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Add new command to OWASP ZSC Project
commands = { #commands section
'shellcode' : #shellcode main command
['generate shellcode',
{ 'generate': #shellcode sub command - to generate
{
'linux_x86' : #generate sub command - os name
{
'chmod' : {'file_to_perm&&perm_number':['none','xor_random','xor_yourvalue','add_random','add_yourvalue','sub_random','sub_yourvalue','inc','inc_timesyouwant','dec','dec_timesyouwant','mix_all']}, #function of shellcode
'dir_create' : {'directory_to_create':['none','xor_random','xor_yourvalue','add_random','add_yourvalue','sub_random','sub_yourvalue','inc','inc_timesyouwant','dec','dec_timesyouwant','mix_all']}, #function of shellcode
'download' : {'download_url':['none','xor_random','xor_yourvalue','add_random','add_yourvalue','sub_random','sub_yourvalue','inc','inc_timesyouwant','dec','dec_timesyouwant','mix_all']}, #function of shellcode
'download_execute' : {'download_url&&filename&&command_to_execute':['none','xor_random','xor_yourvalue','add_random','add_yourvalue','sub_random','sub_yourvalue','inc','inc_timesyouwant','dec','dec_timesyouwant','mix_all']}, #function of shellcode
'exec' : {'file_to_execute':['none','xor_random','xor_yourvalue','add_random','add_yourvalue','sub_random','sub_yourvalue','inc','inc_timesyouwant','dec','dec_timesyouwant','mix_all']}, #function of shellcode
'file_create' : {'filename&&content':['none','xor_random','xor_yourvalue','add_random','add_yourvalue','sub_random','sub_yourvalue','inc','inc_timesyouwant','dec','dec_timesyouwant','mix_all']}, #function of shellcode
'script_executor' : {'name_of_script&&name_of_your_script_in_your_pc&&execute_to_command':['none','xor_random','xor_yourvalue','add_random','add_yourvalue','sub_random','sub_yourvalue','inc','inc_timesyouwant','dec','dec_timesyouwant','mix_all']}, #function of shellcode
'system' : {'command_to_execute':['none','xor_random','xor_yourvalue','add_random','add_yourvalue','sub_random','sub_yourvalue','inc','inc_timesyouwant','dec','dec_timesyouwant','mix_all']}, #function of shellcode
'write' : {'file_to_write&&content':['none','xor_random','xor_yourvalue','add_random','add_yourvalue','sub_random','sub_yourvalue','inc','inc_timesyouwant','dec','dec_timesyouwant','mix_all']}, #function of shellcode
},
'linux_x64' : # new command added here
{
'chmod':{'file_to_perm&&perm_number':['none']},
'exec':{'file_to_execute':['none','dec']},
},
#add generate sub command - os name
},
'search': ['search for shellcode in shellstorm','keyword_to_search'], #shellcode sub command
'download': ['download shellcodes from shellstorm','id_to_download']
#add shellcode sub command
}
] ,
'obfuscate' : #obfuscate main command
[
'generate obfuscate code', #description of obfuscate command
{
'javascript': #langauge name
['simple_hex'], #encode types
}
],
'help' : ['show help menu',''],
'update' : ['check for update',''],
'restart': ['restart the software',''],
'about': ['about owasp zsc',''],
'version':['software version',''],
'exit': ['to exit the software',''],
#add main command here
}
''' command added success
In [2]: commands['shellcode'][1]['generate']['linux_x64']
Out[2]:
{'chmod': {'file_to_perm&&perm_number': ['none']},
'exec': {'file_to_execute': ['none', 'dec']}}
'''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment