Example #1
0
def op(shellcode,os):
	if os == 'linux_x86': #for linux_x86 os
		from lib.opcoder.linux_x86 import convert
		return convert(shellcode)
	if os == 'windows': #for windows os
		from lib.opcoder.windows import convert
		return convert(shellcode)
	#add os opcoder here
	return shellcode
Example #2
0
def op(shellcode, os):
    if os == 'linux_x86':  #for linux_x86 os
        from lib.opcoder.linux_x86 import convert
        return convert(shellcode)
    if os == 'windows':  #for windows os
        from lib.opcoder.windows import convert
        return convert(shellcode)
    #add os opcoder here
    return shellcode
Example #3
0
def generator(shellcode, os):
    if os == 'linux_x86':
        from lib.opcoder import linux_x86
        shellcode = linux_x86.convert(shellcode)
    if os == 'linux_x64':
        from lib.opcoder import linux_x64
        shellcode = linux_x64.convert(shellcode)
    if os == 'linux_arm':
        from lib.opcoder import linux_arm
        shellcode = linux_arm.convert(shellcode)
    if os == 'linux_mips':
        from lib.opcoder import linux_mips
        shellcode = linux_mips.convert(shellcode)
    if os == 'freebsd_x86':
        from lib.opcoder import freebsd_x86
        shellcode = freebsd_x86.convert(shellcode)
    if os == 'freebsd_x64':
        from lib.opcoder import freebsd_x64
        shellcode = freebsd_x64.convert(shellcode)
    if os == 'windows_x86':
        from lib.opcoder import windows_x86
        shellcode = windows_x86.convert(shellcode)
    if os == 'windows_x64':
        from lib.opcoder import windows_x64
        shellcode = windows_x64.convert(shellcode)
    if os == 'osx':
        from lib.opcoder import osx
        shellcode = osx.convert(shellcode)
    if os == 'solaris_x86':
        from lib.opcoder import solaris_x86
        shellcode = solaris_x86.convert(shellcode)
    if os == 'solaris_x64':
        from lib.opcoder import solaris_x64
        shellcode = solaris_x64.convert(shellcode)
    return shellcode
Example #4
0
def generator(shellcode,os):
	if os == 'linux_x86':
		from lib.opcoder import linux_x86
		shellcode = linux_x86.convert(shellcode)
	if os == 'linux_x64':
		from lib.opcoder import linux_x64
		shellcode = linux_x64.convert(shellcode)
	if os == 'linux_arm':
		from lib.opcoder import linux_arm
		shellcode = linux_arm.convert(shellcode)
	if os == 'linux_mips':
		from lib.opcoder import linux_mips
		shellcode = linux_mips.convert(shellcode)
	if os == 'freebsd_x86':
		from lib.opcoder import freebsd_x86
		shellcode = freebsd_x86.convert(shellcode)
	if os == 'freebsd_x64':
		from lib.opcoder import freebsd_x64
		shellcode = freebsd_x64.convert(shellcode)
	if os == 'windows_x86':
		from lib.opcoder import windows_x86
		shellcode = windows_x86.convert(shellcode)
	if os == 'windows_x64':
		from lib.opcoder import windows_x64
		shellcode = windows_x64.convert(shellcode)
	if os == 'osx':
		from lib.opcoder import osx
		shellcode = osx.convert(shellcode)
	if os == 'solaris_x86':
		from lib.opcoder import solaris_x86
		shellcode = solaris_x86.convert(shellcode)
	if os == 'solaris_x64':
		from lib.opcoder import solaris_x64
		shellcode = solaris_x64.convert(shellcode)
	return shellcode