SandMark version 3.0


sandmark.obfuscate.appendboguscode
Class AppendBogusCode

java.lang.Object
  |
  +--sandmark.Algorithm
        |
        +--sandmark.obfuscate.GeneralObfuscator
              |
              +--sandmark.obfuscate.MethodObfuscator
                    |
                    +--sandmark.obfuscate.appendboguscode.AppendBogusCode

public class AppendBogusCode
extends MethodObfuscator

This is the AppendBogusCode class which appends code after the final statement of a method (this may crash some reverse engineering software).

Author:
Justin Cappos (justin@cs.arizona.edu)

Constructor Summary
AppendBogusCode()
           
 
Method Summary
 void apply(ClassFileCollection cfc, java.lang.String classname, java.lang.String methname, java.lang.String signat)
          Performs the actual modification of the requested method...
 java.lang.String getAlgHTML()
          Returns an HTML description of this obfuscator.
 java.lang.String getAlgURL()
          Returns the URL at which you can find information about this obfuscator.
 java.lang.String getAuthor()
          Specifies the author of the algorithm.
 java.lang.String getAuthorEmail()
          Specifies the email address author of the algorithm.
 ConfigProperties getConfigProperties()
          Returns this obfuscator's configuration properties.
 java.lang.String getDescription()
          Specifies what this algorithm does, briefly.
 java.lang.String getLongName()
          Returns a long description of this obfuscator's name.
 ModificationProperty[] getMutations()
          Specifies the types of modifications that the algorithm makes.
 java.lang.String getShortName()
          Returns a short description of this obfuscator's name.
static void main(java.lang.String[] args)
           
 void setConfigProperties(ConfigProperties props)
          Sets this obfuscator's configuration properties to the given properties.
 
Methods inherited from class sandmark.obfuscate.MethodObfuscator
toString
 
Methods inherited from class sandmark.Algorithm
getPostprohibited, getPostrequisites, getPostsuggestions, getPreprohibited, getPrerequisites, getPresuggestions, getReferences
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AppendBogusCode

public AppendBogusCode()
Method Detail

apply

public void apply(ClassFileCollection cfc,
                  java.lang.String classname,
                  java.lang.String methname,
                  java.lang.String signat)
           throws java.lang.Exception
Performs the actual modification of the requested method...

Specified by:
apply in class MethodObfuscator
Parameters:
cfc - the collection of classes for the entire application that this method is a part of
classname - the name of the class that this method is in
methname - the name of the method to obfuscate
signat - the signature of the method to obfuscate
java.lang.Exception

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
java.lang.Exception

getAlgURL

public java.lang.String getAlgURL()
Returns the URL at which you can find information about this obfuscator.

Specified by:
getAlgURL in class Algorithm
Returns:
a URL to the help.html file for the algorithm

getAlgHTML

public java.lang.String getAlgHTML()
Returns an HTML description of this obfuscator.

Specified by:
getAlgHTML in class Algorithm
Returns:
an HTML formatted description of what the algorithm does.

setConfigProperties

public void setConfigProperties(ConfigProperties props)
Sets this obfuscator's configuration properties to the given properties.

Specified by:
setConfigProperties in class Algorithm
Parameters:
props - the ConfigProperties to use.

getConfigProperties

public ConfigProperties getConfigProperties()
Returns this obfuscator's configuration properties.

Specified by:
getConfigProperties in class Algorithm
Returns:
the parameters for this run of the algorithm

getLongName

public java.lang.String getLongName()
Returns a long description of this obfuscator's name.

Specified by:
getLongName in class Algorithm
Returns:
the long name for this algorithm

getShortName

public java.lang.String getShortName()
Returns a short description of this obfuscator's name.

Specified by:
getShortName in class Algorithm
Returns:
the short name for this algorithm

getAuthor

public java.lang.String getAuthor()
Description copied from class: Algorithm
Specifies the author of the algorithm.

Specified by:
getAuthor in class Algorithm
Returns:
the name of the author of the algorithm

getAuthorEmail

public java.lang.String getAuthorEmail()
Description copied from class: Algorithm
Specifies the email address author of the algorithm.

Specified by:
getAuthorEmail in class Algorithm
Returns:
the email address of the author of the algorithm

getDescription

public java.lang.String getDescription()
Description copied from class: Algorithm
Specifies what this algorithm does, briefly. This description is displayed to the user in the log of execution in Sandmark.

Specified by:
getDescription in class Algorithm
Returns:
a brief description of the algorithm

getMutations

public ModificationProperty[] getMutations()
Description copied from class: Algorithm
Specifies the types of modifications that the algorithm makes. For more information see ModificationProperty.

Specified by:
getMutations in class Algorithm
Returns:
a list of mutations that this algorithm may do on the code

SandMark version 3.0

Wed Jan 29 10:30:05 MST 2003