    package exploitpack;

import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author jsacco
 */
public class Connect {

    public static void main(String[] args, String ShellcodeHost, String ShellCodePort) {
        try {
            String cmd = "python data/agent/agentclient.py" + " "
                    + ShellcodeHost + " " + ShellCodePort;
            Runtime.getRuntime().exec(cmd);
        } catch (IOException ex) {
            Logger.getLogger(Connect.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
    
    
       public static void mainReverse(String[] args, String ShellcodeHost, String ShellCodePort) {
        try {
            String cmd = "python data/agent/agentserver.py" + " "
                    + ShellcodeHost + " " + ShellCodePort;
            Runtime.getRuntime().exec(cmd);
        } catch (IOException ex) {
            Logger.getLogger(Connect.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
}
