metasploit-framework/external/source/unixasm
Ramon de C Valle 5b225cea89 Updated unixasm on external source tree
git-svn-id: file:///home/svn/framework3/trunk@5942 4d416f70-5f16-0410-b530-b9f4589650da
2008-11-17 10:34:26 +00:00
..
COPYING Added unixasm sources to the external source tree 2008-10-10 18:23:18 +00:00
README Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
aix-power-bndsockcode.S Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
aix-power-bndsockcode.c Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
aix-power-bndsockcode64.S Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
aix-power-bndsockcode64.c Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
aix-power-cntsockcode.S Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
aix-power-cntsockcode.c Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
aix-power-cntsockcode64.S Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
aix-power-cntsockcode64.c Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
aix-power-fndsockcode.S Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
aix-power-fndsockcode.c Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
aix-power-fndsockcode64.S Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
aix-power-fndsockcode64.c Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
aix-power-shellcode.S Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
aix-power-shellcode.c Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
aix-power-shellcode64.S Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
aix-power-shellcode64.c Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
aix-power.h Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
bsd-x86-bndsockcode.c Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
bsd-x86-bndsockcode.s Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
bsd-x86-cntsockcode.c Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
bsd-x86-cntsockcode.s Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
bsd-x86-fndsockcode.c Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
bsd-x86-fndsockcode.s Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
bsd-x86-shellcode.c Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
bsd-x86-shellcode.s Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
fndsockclient.c Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
fndsockserver.c Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
lin-power-bndsockcode.S Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
lin-power-bndsockcode.c Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
lin-power-bndsockcode64.S Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
lin-power-bndsockcode64.c Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
lin-power-cntsockcode.S Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
lin-power-cntsockcode.c Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
lin-power-cntsockcode64.S Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
lin-power-cntsockcode64.c Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
lin-power-fndsockcode.S Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
lin-power-fndsockcode.c Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
lin-power-fndsockcode64.S Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
lin-power-fndsockcode64.c Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
lin-power-shellcode.S Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
lin-power-shellcode.c Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
lin-power-shellcode64.S Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
lin-power-shellcode64.c Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
lin-x86-bndsockcode.c Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
lin-x86-bndsockcode.s Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
lin-x86-cntsockcode.c Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
lin-x86-cntsockcode.s Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
lin-x86-fndsockcode.c Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
lin-x86-fndsockcode.s Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
lin-x86-shellcode.c Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
lin-x86-shellcode.s Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
linux-power.h Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
objdumptoc.rb Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
osx-x86-bndsockcode.c Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
osx-x86-bndsockcode.s Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
osx-x86-cntsockcode.c Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
osx-x86-cntsockcode.s Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
osx-x86-fndsockcode.c Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
osx-x86-fndsockcode.s Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
osx-x86-shellcode.c Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
osx-x86-shellcode.s Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
sco-x86-shellcode.c Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
sco-x86-shellcode.s Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
sol-sparc-shellcode.c Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
sol-sparc-shellcode.s Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
sol-x86-bndsockcode.c Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
sol-x86-bndsockcode.s Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
sol-x86-cntsockcode.c Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
sol-x86-cntsockcode.s Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
sol-x86-fndsockcode.c Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
sol-x86-fndsockcode.s Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
sol-x86-shellcode.c Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00
sol-x86-shellcode.s Updated unixasm on external source tree 2008-11-17 10:34:26 +00:00

README

UNIX Assembly Components for Proof of Concept Codes
------------------------------------------------------------------------------

Introduction

This project contains a set of assembly components for proof of concept codes
on different operating systems and architectures. These components were
carefully designed and implemented for maximum reliability, following strict
coding standards and requirements, such as system call invocation standards,
position independent, register independent and zero free code. A special
attention was put on code length when designing and implementing them,
resulting in the most reliable and shortest codes for such purpose available
today.


Code length

Operating System    bndsockcode         cntsockcode         fndsockcode
and Architecture

AIX Power           264                 204                 220
BSD x86             73                  64                  60
Linux x86           78                  71                  62
Linux Power/CBEA    223                 183                 171
Mac OS X x86        74                  65                  61
Solaris x86         95                  91                  86


Code functionality

These components are differentiated by their actual functionality and impact
of practical application. Here follows a brief description of the
functionality of some of them.

Network server code (bndsockcode)

This code creates a listening TCP socket on a port defined at BNDSOCKPORT
offset of bndsockcode routine (its value is set to 1234 by default). Upon
accepting a connection, it duplicates the socket descriptor of the remote TCP
endpoint to the process standard descriptors (stdin, stdout and stderr) and
executes an interactive shell.

Network connect code (cntsockcode)

This code establishes a TCP connection with a remote IP address and port
defined at CNTSOCKADDR and CNTSOCKPORT offsets of cntsockcode routine (its
values are set to 127.0.0.1 and 1234 by default respectively). Upon
establishing a connection, it duplicates the socket descriptor of the remote
TCP endpoint to the process standard descriptors (stdin, stdout and stderr)
and executes an interactive shell.

Find socket code (fndsockcode)

This code walks the process descriptor table in a search for a socket
descriptor of the remote TCP endpoint identified by a port number defined at
FNDSOCKPORT offset of the fndsockcode. In a case such a endpoint is located,
the loop is terminated and found socket descriptor is duplicated on the
process standard descriptors (stdin, stdout and stderr).

Prior to executing the fndsockcode, a client software should establish a TCP
connection with a process in which context the code is to be executed.
Appropriate setting of the code data at FNDSOCKPORT offset of fndsockcode
should be also made to assure proper identification of the client's
connection.


Get the latest development version

The latest development version is available in our Subversion repository. Get
it with the following command, which requires Subversion.

svn co http://risesecurity.org/svn/unixasm/trunk